office-viewer-react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +390 -0
- package/dist/client/assets/DocxViewer-NgAiZAEg.css +1 -0
- package/dist/client/assets/DocxViewer-gwdjm0mw.js +60 -0
- package/dist/client/assets/LogoIcon-BcnkueZW.js +1 -0
- package/dist/client/assets/PptxViewer-CLNaZa_4.js +59 -0
- package/dist/client/assets/PptxViewer-CYMXzyIj.css +1 -0
- package/dist/client/assets/XlsxViewer-BNso6L-X.css +1 -0
- package/dist/client/assets/XlsxViewer-C2ErMokS.js +64 -0
- package/dist/client/assets/_commonjs-dynamic-modules-DaXrHM_S.js +1 -0
- package/dist/client/assets/form-C1byQJR4.js +1 -0
- package/dist/client/assets/index-BDMLGHcR.js +2 -0
- package/dist/client/assets/index-CKjGwz9R.js +12 -0
- package/dist/client/assets/jszip.min-BwIaN_vk.js +2 -0
- package/dist/client/assets/login-DEy3R1iD.js +1 -0
- package/dist/client/assets/register-CUUVGLJE.js +1 -0
- package/dist/client/assets/styles-3a3CPFIV.css +1 -0
- package/dist/client/robots.txt +2 -0
- package/dist/index.cjs +1806 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1769 -0
- package/dist/server/assets/DocxViewer-Bm8UJY-7.js +469 -0
- package/dist/server/assets/LogoIcon-Dx0LU3or.js +26 -0
- package/dist/server/assets/PptxViewer-DS7Atucw.js +213 -0
- package/dist/server/assets/XlsxViewer-jzIgKmN2.js +841 -0
- package/dist/server/assets/_tanstack-start-manifest_v-CpFqMvFH.js +4 -0
- package/dist/server/assets/empty-plugin-adapters-BFgPZ6_d.js +6 -0
- package/dist/server/assets/form-CD9otjw-.js +236 -0
- package/dist/server/assets/index-gQHSGxNv.js +365 -0
- package/dist/server/assets/login-DvbAXNSQ.js +81 -0
- package/dist/server/assets/register-C2G9K9kP.js +102 -0
- package/dist/server/assets/router-F5YKPXkV.js +229 -0
- package/dist/server/assets/server-6Sfy37dh.js +1523 -0
- package/dist/server/assets/start-dMGD6DUy.js +56 -0
- package/dist/server/server.js +94 -0
- package/package.json +120 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import{c as Bf,r as mr,j as Cr}from"./index-CKjGwz9R.js";import{o as J4}from"./jszip.min-BwIaN_vk.js";import{L as tH}from"./LogoIcon-BcnkueZW.js";import{C as eH,a as rH}from"./_commonjs-dynamic-modules-DaXrHM_S.js";var V0=function(r,e){return V0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},V0(r,e)};function Sh(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");V0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var pt=function(){return pt=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pt.apply(this,arguments)};function nr(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(n.next(c))}catch(h){o(h)}}function l(c){try{u(n.throw(c))}catch(h){o(h)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((n=n.apply(r,e||[])).next())})}function ar(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Dc(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}var gc={exports:{}};var nH=gc.exports,_2;function aH(){return _2||(_2=1,(function(r,e){(function(){var t,n="4.18.1",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,h="__lodash_placeholder__",v=1,p=2,d=4,m=1,x=2,y=1,f=2,_=4,S=8,b=16,A=32,C=64,M=128,L=256,D=512,P=30,E="...",O=800,N=16,z=1,G=2,U=3,W=1/0,Y=9007199254740991,q=17976931348623157e292,Q=NaN,rt=4294967295,ct=rt-1,vt=rt>>>1,_t=[["ary",M],["bind",y],["bindKey",f],["curry",S],["curryRight",b],["flip",D],["partial",A],["partialRight",C],["rearg",L]],Nt="[object Arguments]",Jt="[object Array]",Mt="[object AsyncFunction]",mt="[object Boolean]",Pt="[object Date]",gt="[object DOMException]",St="[object Error]",se="[object Function]",te="[object GeneratorFunction]",Zt="[object Map]",ue="[object Number]",ke="[object Null]",De="[object Object]",Ue="[object Promise]",sn="[object Proxy]",cr="[object RegExp]",hr="[object Set]",ln="[object String]",Ai="[object Symbol]",wu="[object Undefined]",Ua="[object WeakMap]",Su="[object WeakSet]",Ya="[object ArrayBuffer]",pa="[object DataView]",mo="[object Float32Array]",_o="[object Float64Array]",xo="[object Int8Array]",wo="[object Int16Array]",So="[object Int32Array]",bo="[object Uint8Array]",Ao="[object Uint8ClampedArray]",To="[object Uint16Array]",Co="[object Uint32Array]",ve=/\b__p \+= '';/g,Je=/\b(__p \+=) '' \+/g,AB=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hw=/&(?:amp|lt|gt|quot|#39);/g,Ww=/[&<>"']/g,TB=RegExp(Hw.source),CB=RegExp(Ww.source),MB=/<%-([\s\S]+?)%>/g,LB=/<%([\s\S]+?)%>/g,Uw=/<%=([\s\S]+?)%>/g,DB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IB=/^\w*$/,PB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jd=/[\\^$.*+?()[\]{}|]/g,RB=RegExp(jd.source),qd=/^\s+/,EB=/\s/,kB=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,OB=/\{\n\/\* \[wrapped with (.+)\] \*/,NB=/,? & /,BB=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yw=/[()=,{}\[\]\/\s]/,zB=/\\(\\)?/g,VB=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zw=/\w*$/,FB=/^[-+]0x[0-9a-f]+$/i,GB=/^0b[01]+$/i,HB=/^\[object .+?Constructor\]$/,WB=/^0o[0-7]+$/i,UB=/^(?:0|[1-9]\d*)$/,YB=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jh=/($^)/,ZB=/['\n\r\u2028\u2029\\]/g,qh="\\ud800-\\udfff",XB="\\u0300-\\u036f",$B="\\ufe20-\\ufe2f",jB="\\u20d0-\\u20ff",Xw=XB+$B+jB,$w="\\u2700-\\u27bf",jw="a-z\\xdf-\\xf6\\xf8-\\xff",qB="\\xac\\xb1\\xd7\\xf7",KB="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",QB="\\u2000-\\u206f",JB=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qw="A-Z\\xc0-\\xd6\\xd8-\\xde",Kw="\\ufe0e\\ufe0f",Qw=qB+KB+QB+JB,Kd="['’]",t5="["+qh+"]",Jw="["+Qw+"]",Kh="["+Xw+"]",tS="\\d+",e5="["+$w+"]",eS="["+jw+"]",rS="[^"+qh+Qw+tS+$w+jw+qw+"]",Qd="\\ud83c[\\udffb-\\udfff]",r5="(?:"+Kh+"|"+Qd+")",nS="[^"+qh+"]",Jd="(?:\\ud83c[\\udde6-\\uddff]){2}",tg="[\\ud800-\\udbff][\\udc00-\\udfff]",js="["+qw+"]",aS="\\u200d",iS="(?:"+eS+"|"+rS+")",n5="(?:"+js+"|"+rS+")",oS="(?:"+Kd+"(?:d|ll|m|re|s|t|ve))?",sS="(?:"+Kd+"(?:D|LL|M|RE|S|T|VE))?",lS=r5+"?",uS="["+Kw+"]?",a5="(?:"+aS+"(?:"+[nS,Jd,tg].join("|")+")"+uS+lS+")*",i5="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cS=uS+lS+a5,s5="(?:"+[e5,Jd,tg].join("|")+")"+cS,l5="(?:"+[nS+Kh+"?",Kh,Jd,tg,t5].join("|")+")",u5=RegExp(Kd,"g"),c5=RegExp(Kh,"g"),eg=RegExp(Qd+"(?="+Qd+")|"+l5+cS,"g"),h5=RegExp([js+"?"+eS+"+"+oS+"(?="+[Jw,js,"$"].join("|")+")",n5+"+"+sS+"(?="+[Jw,js+iS,"$"].join("|")+")",js+"?"+iS+"+"+oS,js+"+"+sS,o5,i5,tS,s5].join("|"),"g"),f5=RegExp("["+aS+qh+Xw+Kw+"]"),v5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,p5=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],d5=-1,Oe={};Oe[mo]=Oe[_o]=Oe[xo]=Oe[wo]=Oe[So]=Oe[bo]=Oe[Ao]=Oe[To]=Oe[Co]=!0,Oe[Nt]=Oe[Jt]=Oe[Ya]=Oe[mt]=Oe[pa]=Oe[Pt]=Oe[St]=Oe[se]=Oe[Zt]=Oe[ue]=Oe[De]=Oe[cr]=Oe[hr]=Oe[ln]=Oe[Ua]=!1;var Re={};Re[Nt]=Re[Jt]=Re[Ya]=Re[pa]=Re[mt]=Re[Pt]=Re[mo]=Re[_o]=Re[xo]=Re[wo]=Re[So]=Re[Zt]=Re[ue]=Re[De]=Re[cr]=Re[hr]=Re[ln]=Re[Ai]=Re[bo]=Re[Ao]=Re[To]=Re[Co]=!0,Re[St]=Re[se]=Re[Ua]=!1;var g5={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},y5={"&":"&","<":"<",">":">",'"':""","'":"'"},m5={"&":"&","<":"<",">":">",""":'"',"'":"'"},_5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},x5=parseFloat,w5=parseInt,hS=typeof Bf=="object"&&Bf&&Bf.Object===Object&&Bf,S5=typeof self=="object"&&self&&self.Object===Object&&self,gr=hS||S5||Function("return this")(),rg=e&&!e.nodeType&&e,Mo=rg&&!0&&r&&!r.nodeType&&r,fS=Mo&&Mo.exports===rg,ng=fS&&hS.process,Sn=(function(){try{var X=Mo&&Mo.require&&Mo.require("util").types;return X||ng&&ng.binding&&ng.binding("util")}catch{}})(),vS=Sn&&Sn.isArrayBuffer,pS=Sn&&Sn.isDate,dS=Sn&&Sn.isMap,gS=Sn&&Sn.isRegExp,yS=Sn&&Sn.isSet,mS=Sn&&Sn.isTypedArray;function un(X,nt,J){switch(J.length){case 0:return X.call(nt);case 1:return X.call(nt,J[0]);case 2:return X.call(nt,J[0],J[1]);case 3:return X.call(nt,J[0],J[1],J[2])}return X.apply(nt,J)}function b5(X,nt,J,At){for(var Xt=-1,_e=X==null?0:X.length;++Xt<_e;){var tr=X[Xt];nt(At,tr,J(tr),X)}return At}function cn(X,nt){for(var J=-1,At=X==null?0:X.length;++J<At&&nt(X[J],J,X)!==!1;);return X}function A5(X,nt){for(var J=X==null?0:X.length;J--&&nt(X[J],J,X)!==!1;);return X}function _S(X,nt){for(var J=-1,At=X==null?0:X.length;++J<At;)if(!nt(X[J],J,X))return!1;return!0}function Ti(X,nt){for(var J=-1,At=X==null?0:X.length,Xt=0,_e=[];++J<At;){var tr=X[J];nt(tr,J,X)&&(_e[Xt++]=tr)}return _e}function Qh(X,nt){var J=X==null?0:X.length;return!!J&&qs(X,nt,0)>-1}function ag(X,nt,J){for(var At=-1,Xt=X==null?0:X.length;++At<Xt;)if(J(nt,X[At]))return!0;return!1}function Be(X,nt){for(var J=-1,At=X==null?0:X.length,Xt=Array(At);++J<At;)Xt[J]=nt(X[J],J,X);return Xt}function Ci(X,nt){for(var J=-1,At=nt.length,Xt=X.length;++J<At;)X[Xt+J]=nt[J];return X}function ig(X,nt,J,At){var Xt=-1,_e=X==null?0:X.length;for(At&&_e&&(J=X[++Xt]);++Xt<_e;)J=nt(J,X[Xt],Xt,X);return J}function T5(X,nt,J,At){var Xt=X==null?0:X.length;for(At&&Xt&&(J=X[--Xt]);Xt--;)J=nt(J,X[Xt],Xt,X);return J}function og(X,nt){for(var J=-1,At=X==null?0:X.length;++J<At;)if(nt(X[J],J,X))return!0;return!1}var C5=sg("length");function M5(X){return X.split("")}function L5(X){return X.match(BB)||[]}function xS(X,nt,J){var At;return J(X,function(Xt,_e,tr){if(nt(Xt,_e,tr))return At=_e,!1}),At}function Jh(X,nt,J,At){for(var Xt=X.length,_e=J+(At?1:-1);At?_e--:++_e<Xt;)if(nt(X[_e],_e,X))return _e;return-1}function qs(X,nt,J){return nt===nt?F5(X,nt,J):Jh(X,wS,J)}function D5(X,nt,J,At){for(var Xt=J-1,_e=X.length;++Xt<_e;)if(At(X[Xt],nt))return Xt;return-1}function wS(X){return X!==X}function SS(X,nt){var J=X==null?0:X.length;return J?ug(X,nt)/J:Q}function sg(X){return function(nt){return nt==null?t:nt[X]}}function lg(X){return function(nt){return X==null?t:X[nt]}}function bS(X,nt,J,At,Xt){return Xt(X,function(_e,tr,Ie){J=At?(At=!1,_e):nt(J,_e,tr,Ie)}),J}function I5(X,nt){var J=X.length;for(X.sort(nt);J--;)X[J]=X[J].value;return X}function ug(X,nt){for(var J,At=-1,Xt=X.length;++At<Xt;){var _e=nt(X[At]);_e!==t&&(J=J===t?_e:J+_e)}return J}function cg(X,nt){for(var J=-1,At=Array(X);++J<X;)At[J]=nt(J);return At}function P5(X,nt){return Be(nt,function(J){return[J,X[J]]})}function AS(X){return X&&X.slice(0,LS(X)+1).replace(qd,"")}function hn(X){return function(nt){return X(nt)}}function hg(X,nt){return Be(nt,function(J){return X[J]})}function bu(X,nt){return X.has(nt)}function TS(X,nt){for(var J=-1,At=X.length;++J<At&&qs(nt,X[J],0)>-1;);return J}function CS(X,nt){for(var J=X.length;J--&&qs(nt,X[J],0)>-1;);return J}function R5(X,nt){for(var J=X.length,At=0;J--;)X[J]===nt&&++At;return At}var E5=lg(g5),k5=lg(y5);function O5(X){return"\\"+_5[X]}function N5(X,nt){return X==null?t:X[nt]}function Ks(X){return f5.test(X)}function B5(X){return v5.test(X)}function z5(X){for(var nt,J=[];!(nt=X.next()).done;)J.push(nt.value);return J}function fg(X){var nt=-1,J=Array(X.size);return X.forEach(function(At,Xt){J[++nt]=[Xt,At]}),J}function MS(X,nt){return function(J){return X(nt(J))}}function Mi(X,nt){for(var J=-1,At=X.length,Xt=0,_e=[];++J<At;){var tr=X[J];(tr===nt||tr===h)&&(X[J]=h,_e[Xt++]=J)}return _e}function tf(X){var nt=-1,J=Array(X.size);return X.forEach(function(At){J[++nt]=At}),J}function V5(X){var nt=-1,J=Array(X.size);return X.forEach(function(At){J[++nt]=[At,At]}),J}function F5(X,nt,J){for(var At=J-1,Xt=X.length;++At<Xt;)if(X[At]===nt)return At;return-1}function G5(X,nt,J){for(var At=J+1;At--;)if(X[At]===nt)return At;return At}function Qs(X){return Ks(X)?W5(X):C5(X)}function $n(X){return Ks(X)?U5(X):M5(X)}function LS(X){for(var nt=X.length;nt--&&EB.test(X.charAt(nt)););return nt}var H5=lg(m5);function W5(X){for(var nt=eg.lastIndex=0;eg.test(X);)++nt;return nt}function U5(X){return X.match(eg)||[]}function Y5(X){return X.match(h5)||[]}var Z5=(function X(nt){nt=nt==null?gr:Js.defaults(gr.Object(),nt,Js.pick(gr,p5));var J=nt.Array,At=nt.Date,Xt=nt.Error,_e=nt.Function,tr=nt.Math,Ie=nt.Object,vg=nt.RegExp,X5=nt.String,bn=nt.TypeError,ef=J.prototype,$5=_e.prototype,tl=Ie.prototype,rf=nt["__core-js_shared__"],nf=$5.toString,Se=tl.hasOwnProperty,j5=0,DS=(function(){var g=/[^.]+$/.exec(rf&&rf.keys&&rf.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""})(),af=tl.toString,q5=nf.call(Ie),K5=gr._,Q5=vg("^"+nf.call(Se).replace(jd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),of=fS?nt.Buffer:t,Li=nt.Symbol,sf=nt.Uint8Array,IS=of?of.allocUnsafe:t,lf=MS(Ie.getPrototypeOf,Ie),PS=Ie.create,RS=tl.propertyIsEnumerable,uf=ef.splice,ES=Li?Li.isConcatSpreadable:t,Au=Li?Li.iterator:t,Lo=Li?Li.toStringTag:t,cf=(function(){try{var g=Eo(Ie,"defineProperty");return g({},"",{}),g}catch{}})(),J5=nt.clearTimeout!==gr.clearTimeout&&nt.clearTimeout,t3=At&&At.now!==gr.Date.now&&At.now,e3=nt.setTimeout!==gr.setTimeout&&nt.setTimeout,hf=tr.ceil,ff=tr.floor,pg=Ie.getOwnPropertySymbols,r3=of?of.isBuffer:t,kS=nt.isFinite,n3=ef.join,a3=MS(Ie.keys,Ie),er=tr.max,Ar=tr.min,i3=At.now,o3=nt.parseInt,OS=tr.random,s3=ef.reverse,dg=Eo(nt,"DataView"),Tu=Eo(nt,"Map"),gg=Eo(nt,"Promise"),el=Eo(nt,"Set"),Cu=Eo(nt,"WeakMap"),Mu=Eo(Ie,"create"),vf=Cu&&new Cu,rl={},l3=ko(dg),u3=ko(Tu),c3=ko(gg),h3=ko(el),f3=ko(Cu),pf=Li?Li.prototype:t,Lu=pf?pf.valueOf:t,NS=pf?pf.toString:t;function B(g){if(Ge(g)&&!qt(g)&&!(g instanceof ce)){if(g instanceof An)return g;if(Se.call(g,"__wrapped__"))return Bb(g)}return new An(g)}var nl=(function(){function g(){}return function(w){if(!ze(w))return{};if(PS)return PS(w);g.prototype=w;var T=new g;return g.prototype=t,T}})();function df(){}function An(g,w){this.__wrapped__=g,this.__actions__=[],this.__chain__=!!w,this.__index__=0,this.__values__=t}B.templateSettings={escape:MB,evaluate:LB,interpolate:Uw,variable:"",imports:{_:B}},B.prototype=df.prototype,B.prototype.constructor=B,An.prototype=nl(df.prototype),An.prototype.constructor=An;function ce(g){this.__wrapped__=g,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rt,this.__views__=[]}function v3(){var g=new ce(this.__wrapped__);return g.__actions__=jr(this.__actions__),g.__dir__=this.__dir__,g.__filtered__=this.__filtered__,g.__iteratees__=jr(this.__iteratees__),g.__takeCount__=this.__takeCount__,g.__views__=jr(this.__views__),g}function p3(){if(this.__filtered__){var g=new ce(this);g.__dir__=-1,g.__filtered__=!0}else g=this.clone(),g.__dir__*=-1;return g}function d3(){var g=this.__wrapped__.value(),w=this.__dir__,T=qt(g),I=w<0,k=T?g.length:0,V=Mz(0,k,this.__views__),H=V.start,Z=V.end,$=Z-H,it=I?Z:H-1,ot=this.__iteratees__,lt=ot.length,xt=0,It=Ar($,this.__takeCount__);if(!T||!I&&k==$&&It==$)return ob(g,this.__actions__);var Ht=[];t:for(;$--&&xt<It;){it+=w;for(var ne=-1,Vt=g[it];++ne<lt;){var le=ot[ne],pe=le.iteratee,pn=le.type,Nr=pe(Vt);if(pn==G)Vt=Nr;else if(!Nr){if(pn==z)continue t;break t}}Ht[xt++]=Vt}return Ht}ce.prototype=nl(df.prototype),ce.prototype.constructor=ce;function Do(g){var w=-1,T=g==null?0:g.length;for(this.clear();++w<T;){var I=g[w];this.set(I[0],I[1])}}function g3(){this.__data__=Mu?Mu(null):{},this.size=0}function y3(g){var w=this.has(g)&&delete this.__data__[g];return this.size-=w?1:0,w}function m3(g){var w=this.__data__;if(Mu){var T=w[g];return T===u?t:T}return Se.call(w,g)?w[g]:t}function _3(g){var w=this.__data__;return Mu?w[g]!==t:Se.call(w,g)}function x3(g,w){var T=this.__data__;return this.size+=this.has(g)?0:1,T[g]=Mu&&w===t?u:w,this}Do.prototype.clear=g3,Do.prototype.delete=y3,Do.prototype.get=m3,Do.prototype.has=_3,Do.prototype.set=x3;function Za(g){var w=-1,T=g==null?0:g.length;for(this.clear();++w<T;){var I=g[w];this.set(I[0],I[1])}}function w3(){this.__data__=[],this.size=0}function S3(g){var w=this.__data__,T=gf(w,g);if(T<0)return!1;var I=w.length-1;return T==I?w.pop():uf.call(w,T,1),--this.size,!0}function b3(g){var w=this.__data__,T=gf(w,g);return T<0?t:w[T][1]}function A3(g){return gf(this.__data__,g)>-1}function T3(g,w){var T=this.__data__,I=gf(T,g);return I<0?(++this.size,T.push([g,w])):T[I][1]=w,this}Za.prototype.clear=w3,Za.prototype.delete=S3,Za.prototype.get=b3,Za.prototype.has=A3,Za.prototype.set=T3;function Xa(g){var w=-1,T=g==null?0:g.length;for(this.clear();++w<T;){var I=g[w];this.set(I[0],I[1])}}function C3(){this.size=0,this.__data__={hash:new Do,map:new(Tu||Za),string:new Do}}function M3(g){var w=Lf(this,g).delete(g);return this.size-=w?1:0,w}function L3(g){return Lf(this,g).get(g)}function D3(g){return Lf(this,g).has(g)}function I3(g,w){var T=Lf(this,g),I=T.size;return T.set(g,w),this.size+=T.size==I?0:1,this}Xa.prototype.clear=C3,Xa.prototype.delete=M3,Xa.prototype.get=L3,Xa.prototype.has=D3,Xa.prototype.set=I3;function Io(g){var w=-1,T=g==null?0:g.length;for(this.__data__=new Xa;++w<T;)this.add(g[w])}function P3(g){return this.__data__.set(g,u),this}function R3(g){return this.__data__.has(g)}Io.prototype.add=Io.prototype.push=P3,Io.prototype.has=R3;function jn(g){var w=this.__data__=new Za(g);this.size=w.size}function E3(){this.__data__=new Za,this.size=0}function k3(g){var w=this.__data__,T=w.delete(g);return this.size=w.size,T}function O3(g){return this.__data__.get(g)}function N3(g){return this.__data__.has(g)}function B3(g,w){var T=this.__data__;if(T instanceof Za){var I=T.__data__;if(!Tu||I.length<a-1)return I.push([g,w]),this.size=++T.size,this;T=this.__data__=new Xa(I)}return T.set(g,w),this.size=T.size,this}jn.prototype.clear=E3,jn.prototype.delete=k3,jn.prototype.get=O3,jn.prototype.has=N3,jn.prototype.set=B3;function BS(g,w){var T=qt(g),I=!T&&Oo(g),k=!T&&!I&&Ei(g),V=!T&&!I&&!k&&sl(g),H=T||I||k||V,Z=H?cg(g.length,X5):[],$=Z.length;for(var it in g)(w||Se.call(g,it))&&!(H&&(it=="length"||k&&(it=="offset"||it=="parent")||V&&(it=="buffer"||it=="byteLength"||it=="byteOffset")||qa(it,$)))&&Z.push(it);return Z}function zS(g){var w=g.length;return w?g[Mg(0,w-1)]:t}function z3(g,w){return Df(jr(g),Po(w,0,g.length))}function V3(g){return Df(jr(g))}function yg(g,w,T){(T!==t&&!Kn(g[w],T)||T===t&&!(w in g))&&da(g,w,T)}function Du(g,w,T){var I=g[w];(!(Se.call(g,w)&&Kn(I,T))||T===t&&!(w in g))&&da(g,w,T)}function gf(g,w){for(var T=g.length;T--;)if(Kn(g[T][0],w))return T;return-1}function F3(g,w,T,I){return Di(g,function(k,V,H){w(I,k,T(k),H)}),I}function VS(g,w){return g&&ya(w,fr(w),g)}function G3(g,w){return g&&ya(w,Kr(w),g)}function da(g,w,T){w=="__proto__"&&cf?cf(g,w,{configurable:!0,enumerable:!0,value:T,writable:!0}):g[w]=T}function mg(g,w){for(var T=-1,I=w.length,k=J(I),V=g==null;++T<I;)k[T]=V?t:Jg(g,w[T]);return k}function Po(g,w,T){return g===g&&(T!==t&&(g=g<=T?g:T),w!==t&&(g=g>=w?g:w)),g}function Tn(g,w,T,I,k,V){var H,Z=w&v,$=w&p,it=w&d;if(T&&(H=k?T(g,I,k,V):T(g)),H!==t)return H;if(!ze(g))return g;var ot=qt(g);if(ot){if(H=Dz(g),!Z)return jr(g,H)}else{var lt=Tr(g),xt=lt==se||lt==te;if(Ei(g))return ub(g,Z);if(lt==De||lt==Nt||xt&&!k){if(H=$||xt?{}:Lb(g),!Z)return $?mz(g,G3(H,g)):yz(g,VS(H,g))}else{if(!Re[lt])return k?g:{};H=Iz(g,lt,Z)}}V||(V=new jn);var It=V.get(g);if(It)return It;V.set(g,H),n2(g)?g.forEach(function(Vt){H.add(Tn(Vt,w,T,Vt,g,V))}):e2(g)&&g.forEach(function(Vt,le){H.set(le,Tn(Vt,w,T,le,g,V))});var Ht=it?$?zg:Bg:$?Kr:fr,ne=ot?t:Ht(g);return cn(ne||g,function(Vt,le){ne&&(le=Vt,Vt=g[le]),Du(H,le,Tn(Vt,w,T,le,g,V))}),H}function H3(g){var w=fr(g);return function(T){return FS(T,g,w)}}function FS(g,w,T){var I=T.length;if(g==null)return!I;for(g=Ie(g);I--;){var k=T[I],V=w[k],H=g[k];if(H===t&&!(k in g)||!V(H))return!1}return!0}function GS(g,w,T){if(typeof g!="function")throw new bn(o);return Nu(function(){g.apply(t,T)},w)}function Iu(g,w,T,I){var k=-1,V=Qh,H=!0,Z=g.length,$=[],it=w.length;if(!Z)return $;T&&(w=Be(w,hn(T))),I?(V=ag,H=!1):w.length>=a&&(V=bu,H=!1,w=new Io(w));t:for(;++k<Z;){var ot=g[k],lt=T==null?ot:T(ot);if(ot=I||ot!==0?ot:0,H&<===lt){for(var xt=it;xt--;)if(w[xt]===lt)continue t;$.push(ot)}else V(w,lt,I)||$.push(ot)}return $}var Di=pb(ga),HS=pb(xg,!0);function W3(g,w){var T=!0;return Di(g,function(I,k,V){return T=!!w(I,k,V),T}),T}function yf(g,w,T){for(var I=-1,k=g.length;++I<k;){var V=g[I],H=w(V);if(H!=null&&(Z===t?H===H&&!vn(H):T(H,Z)))var Z=H,$=V}return $}function U3(g,w,T,I){var k=g.length;for(T=ee(T),T<0&&(T=-T>k?0:k+T),I=I===t||I>k?k:ee(I),I<0&&(I+=k),I=T>I?0:i2(I);T<I;)g[T++]=w;return g}function WS(g,w){var T=[];return Di(g,function(I,k,V){w(I,k,V)&&T.push(I)}),T}function yr(g,w,T,I,k){var V=-1,H=g.length;for(T||(T=Rz),k||(k=[]);++V<H;){var Z=g[V];w>0&&T(Z)?w>1?yr(Z,w-1,T,I,k):Ci(k,Z):I||(k[k.length]=Z)}return k}var _g=db(),US=db(!0);function ga(g,w){return g&&_g(g,w,fr)}function xg(g,w){return g&&US(g,w,fr)}function mf(g,w){return Ti(w,function(T){return Ka(g[T])})}function Ro(g,w){w=Pi(w,g);for(var T=0,I=w.length;g!=null&&T<I;)g=g[qn(w[T++])];return T&&T==I?g:t}function YS(g,w,T){var I=w(g);return qt(g)?I:Ci(I,T(g))}function kr(g){return g==null?g===t?wu:ke:Lo&&Lo in Ie(g)?Cz(g):Vz(g)}function wg(g,w){return g>w}function Y3(g,w){return g!=null&&Se.call(g,w)}function Z3(g,w){return g!=null&&w in Ie(g)}function X3(g,w,T){return g>=Ar(w,T)&&g<er(w,T)}function Sg(g,w,T){for(var I=T?ag:Qh,k=g[0].length,V=g.length,H=V,Z=J(V),$=1/0,it=[];H--;){var ot=g[H];H&&w&&(ot=Be(ot,hn(w))),$=Ar(ot.length,$),Z[H]=!T&&(w||k>=120&&ot.length>=120)?new Io(H&&ot):t}ot=g[0];var lt=-1,xt=Z[0];t:for(;++lt<k&&it.length<$;){var It=ot[lt],Ht=w?w(It):It;if(It=T||It!==0?It:0,!(xt?bu(xt,Ht):I(it,Ht,T))){for(H=V;--H;){var ne=Z[H];if(!(ne?bu(ne,Ht):I(g[H],Ht,T)))continue t}xt&&xt.push(Ht),it.push(It)}}return it}function $3(g,w,T,I){return ga(g,function(k,V,H){w(I,T(k),V,H)}),I}function Pu(g,w,T){w=Pi(w,g),g=Rb(g,w);var I=g==null?g:g[qn(Mn(w))];return I==null?t:un(I,g,T)}function ZS(g){return Ge(g)&&kr(g)==Nt}function j3(g){return Ge(g)&&kr(g)==Ya}function q3(g){return Ge(g)&&kr(g)==Pt}function Ru(g,w,T,I,k){return g===w?!0:g==null||w==null||!Ge(g)&&!Ge(w)?g!==g&&w!==w:K3(g,w,T,I,Ru,k)}function K3(g,w,T,I,k,V){var H=qt(g),Z=qt(w),$=H?Jt:Tr(g),it=Z?Jt:Tr(w);$=$==Nt?De:$,it=it==Nt?De:it;var ot=$==De,lt=it==De,xt=$==it;if(xt&&Ei(g)){if(!Ei(w))return!1;H=!0,ot=!1}if(xt&&!ot)return V||(V=new jn),H||sl(g)?Tb(g,w,T,I,k,V):Az(g,w,$,T,I,k,V);if(!(T&m)){var It=ot&&Se.call(g,"__wrapped__"),Ht=lt&&Se.call(w,"__wrapped__");if(It||Ht){var ne=It?g.value():g,Vt=Ht?w.value():w;return V||(V=new jn),k(ne,Vt,T,I,V)}}return xt?(V||(V=new jn),Tz(g,w,T,I,k,V)):!1}function Q3(g){return Ge(g)&&Tr(g)==Zt}function bg(g,w,T,I){var k=T.length,V=k,H=!I;if(g==null)return!V;for(g=Ie(g);k--;){var Z=T[k];if(H&&Z[2]?Z[1]!==g[Z[0]]:!(Z[0]in g))return!1}for(;++k<V;){Z=T[k];var $=Z[0],it=g[$],ot=Z[1];if(H&&Z[2]){if(it===t&&!($ in g))return!1}else{var lt=new jn;if(I)var xt=I(it,ot,$,g,w,lt);if(!(xt===t?Ru(ot,it,m|x,I,lt):xt))return!1}}return!0}function XS(g){if(!ze(g)||kz(g))return!1;var w=Ka(g)?Q5:HB;return w.test(ko(g))}function J3(g){return Ge(g)&&kr(g)==cr}function tz(g){return Ge(g)&&Tr(g)==hr}function ez(g){return Ge(g)&&Of(g.length)&&!!Oe[kr(g)]}function $S(g){return typeof g=="function"?g:g==null?Qr:typeof g=="object"?qt(g)?KS(g[0],g[1]):qS(g):y2(g)}function Ag(g){if(!Ou(g))return a3(g);var w=[];for(var T in Ie(g))Se.call(g,T)&&T!="constructor"&&w.push(T);return w}function rz(g){if(!ze(g))return zz(g);var w=Ou(g),T=[];for(var I in g)I=="constructor"&&(w||!Se.call(g,I))||T.push(I);return T}function Tg(g,w){return g<w}function jS(g,w){var T=-1,I=qr(g)?J(g.length):[];return Di(g,function(k,V,H){I[++T]=w(k,V,H)}),I}function qS(g){var w=Fg(g);return w.length==1&&w[0][2]?Ib(w[0][0],w[0][1]):function(T){return T===g||bg(T,g,w)}}function KS(g,w){return Hg(g)&&Db(w)?Ib(qn(g),w):function(T){var I=Jg(T,g);return I===t&&I===w?ty(T,g):Ru(w,I,m|x)}}function _f(g,w,T,I,k){g!==w&&_g(w,function(V,H){if(k||(k=new jn),ze(V))nz(g,w,H,T,_f,I,k);else{var Z=I?I(Ug(g,H),V,H+"",g,w,k):t;Z===t&&(Z=V),yg(g,H,Z)}},Kr)}function nz(g,w,T,I,k,V,H){var Z=Ug(g,T),$=Ug(w,T),it=H.get($);if(it){yg(g,T,it);return}var ot=V?V(Z,$,T+"",g,w,H):t,lt=ot===t;if(lt){var xt=qt($),It=!xt&&Ei($),Ht=!xt&&!It&&sl($);ot=$,xt||It||Ht?qt(Z)?ot=Z:Ye(Z)?ot=jr(Z):It?(lt=!1,ot=ub($,!0)):Ht?(lt=!1,ot=cb($,!0)):ot=[]:Bu($)||Oo($)?(ot=Z,Oo(Z)?ot=o2(Z):(!ze(Z)||Ka(Z))&&(ot=Lb($))):lt=!1}lt&&(H.set($,ot),k(ot,$,I,V,H),H.delete($)),yg(g,T,ot)}function QS(g,w){var T=g.length;if(T)return w+=w<0?T:0,qa(w,T)?g[w]:t}function JS(g,w,T){w.length?w=Be(w,function(V){return qt(V)?function(H){return Ro(H,V.length===1?V[0]:V)}:V}):w=[Qr];var I=-1;w=Be(w,hn(Ft()));var k=jS(g,function(V,H,Z){var $=Be(w,function(it){return it(V)});return{criteria:$,index:++I,value:V}});return I5(k,function(V,H){return gz(V,H,T)})}function az(g,w){return tb(g,w,function(T,I){return ty(g,I)})}function tb(g,w,T){for(var I=-1,k=w.length,V={};++I<k;){var H=w[I],Z=Ro(g,H);T(Z,H)&&Eu(V,Pi(H,g),Z)}return V}function iz(g){return function(w){return Ro(w,g)}}function Cg(g,w,T,I){var k=I?D5:qs,V=-1,H=w.length,Z=g;for(g===w&&(w=jr(w)),T&&(Z=Be(g,hn(T)));++V<H;)for(var $=0,it=w[V],ot=T?T(it):it;($=k(Z,ot,$,I))>-1;)Z!==g&&uf.call(Z,$,1),uf.call(g,$,1);return g}function eb(g,w){for(var T=g?w.length:0,I=T-1;T--;){var k=w[T];if(T==I||k!==V){var V=k;qa(k)?uf.call(g,k,1):Ig(g,k)}}return g}function Mg(g,w){return g+ff(OS()*(w-g+1))}function oz(g,w,T,I){for(var k=-1,V=er(hf((w-g)/(T||1)),0),H=J(V);V--;)H[I?V:++k]=g,g+=T;return H}function Lg(g,w){var T="";if(!g||w<1||w>Y)return T;do w%2&&(T+=g),w=ff(w/2),w&&(g+=g);while(w);return T}function ie(g,w){return Yg(Pb(g,w,Qr),g+"")}function sz(g){return zS(ll(g))}function lz(g,w){var T=ll(g);return Df(T,Po(w,0,T.length))}function Eu(g,w,T,I){if(!ze(g))return g;w=Pi(w,g);for(var k=-1,V=w.length,H=V-1,Z=g;Z!=null&&++k<V;){var $=qn(w[k]),it=T;if($==="__proto__"||$==="constructor"||$==="prototype")return g;if(k!=H){var ot=Z[$];it=I?I(ot,$,Z):t,it===t&&(it=ze(ot)?ot:qa(w[k+1])?[]:{})}Du(Z,$,it),Z=Z[$]}return g}var rb=vf?function(g,w){return vf.set(g,w),g}:Qr,uz=cf?function(g,w){return cf(g,"toString",{configurable:!0,enumerable:!1,value:ry(w),writable:!0})}:Qr;function cz(g){return Df(ll(g))}function Cn(g,w,T){var I=-1,k=g.length;w<0&&(w=-w>k?0:k+w),T=T>k?k:T,T<0&&(T+=k),k=w>T?0:T-w>>>0,w>>>=0;for(var V=J(k);++I<k;)V[I]=g[I+w];return V}function hz(g,w){var T;return Di(g,function(I,k,V){return T=w(I,k,V),!T}),!!T}function xf(g,w,T){var I=0,k=g==null?I:g.length;if(typeof w=="number"&&w===w&&k<=vt){for(;I<k;){var V=I+k>>>1,H=g[V];H!==null&&!vn(H)&&(T?H<=w:H<w)?I=V+1:k=V}return k}return Dg(g,w,Qr,T)}function Dg(g,w,T,I){var k=0,V=g==null?0:g.length;if(V===0)return 0;w=T(w);for(var H=w!==w,Z=w===null,$=vn(w),it=w===t;k<V;){var ot=ff((k+V)/2),lt=T(g[ot]),xt=lt!==t,It=lt===null,Ht=lt===lt,ne=vn(lt);if(H)var Vt=I||Ht;else it?Vt=Ht&&(I||xt):Z?Vt=Ht&&xt&&(I||!It):$?Vt=Ht&&xt&&!It&&(I||!ne):It||ne?Vt=!1:Vt=I?lt<=w:lt<w;Vt?k=ot+1:V=ot}return Ar(V,ct)}function nb(g,w){for(var T=-1,I=g.length,k=0,V=[];++T<I;){var H=g[T],Z=w?w(H):H;if(!T||!Kn(Z,$)){var $=Z;V[k++]=H===0?0:H}}return V}function ab(g){return typeof g=="number"?g:vn(g)?Q:+g}function fn(g){if(typeof g=="string")return g;if(qt(g))return Be(g,fn)+"";if(vn(g))return NS?NS.call(g):"";var w=g+"";return w=="0"&&1/g==-W?"-0":w}function Ii(g,w,T){var I=-1,k=Qh,V=g.length,H=!0,Z=[],$=Z;if(T)H=!1,k=ag;else if(V>=a){var it=w?null:Sz(g);if(it)return tf(it);H=!1,k=bu,$=new Io}else $=w?[]:Z;t:for(;++I<V;){var ot=g[I],lt=w?w(ot):ot;if(ot=T||ot!==0?ot:0,H&<===lt){for(var xt=$.length;xt--;)if($[xt]===lt)continue t;w&&$.push(lt),Z.push(ot)}else k($,lt,T)||($!==Z&&$.push(lt),Z.push(ot))}return Z}function Ig(g,w){w=Pi(w,g);var T=-1,I=w.length;if(!I)return!0;for(;++T<I;){var k=qn(w[T]);if(k==="__proto__"&&!Se.call(g,"__proto__")||(k==="constructor"||k==="prototype")&&T<I-1)return!1}var V=Rb(g,w);return V==null||delete V[qn(Mn(w))]}function ib(g,w,T,I){return Eu(g,w,T(Ro(g,w)),I)}function wf(g,w,T,I){for(var k=g.length,V=I?k:-1;(I?V--:++V<k)&&w(g[V],V,g););return T?Cn(g,I?0:V,I?V+1:k):Cn(g,I?V+1:0,I?k:V)}function ob(g,w){var T=g;return T instanceof ce&&(T=T.value()),ig(w,function(I,k){return k.func.apply(k.thisArg,Ci([I],k.args))},T)}function Pg(g,w,T){var I=g.length;if(I<2)return I?Ii(g[0]):[];for(var k=-1,V=J(I);++k<I;)for(var H=g[k],Z=-1;++Z<I;)Z!=k&&(V[k]=Iu(V[k]||H,g[Z],w,T));return Ii(yr(V,1),w,T)}function sb(g,w,T){for(var I=-1,k=g.length,V=w.length,H={};++I<k;){var Z=I<V?w[I]:t;T(H,g[I],Z)}return H}function Rg(g){return Ye(g)?g:[]}function Eg(g){return typeof g=="function"?g:Qr}function Pi(g,w){return qt(g)?g:Hg(g,w)?[g]:Nb(be(g))}var fz=ie;function Ri(g,w,T){var I=g.length;return T=T===t?I:T,!w&&T>=I?g:Cn(g,w,T)}var lb=J5||function(g){return gr.clearTimeout(g)};function ub(g,w){if(w)return g.slice();var T=g.length,I=IS?IS(T):new g.constructor(T);return g.copy(I),I}function kg(g){var w=new g.constructor(g.byteLength);return new sf(w).set(new sf(g)),w}function vz(g,w){var T=w?kg(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.byteLength)}function pz(g){var w=new g.constructor(g.source,Zw.exec(g));return w.lastIndex=g.lastIndex,w}function dz(g){return Lu?Ie(Lu.call(g)):{}}function cb(g,w){var T=w?kg(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.length)}function hb(g,w){if(g!==w){var T=g!==t,I=g===null,k=g===g,V=vn(g),H=w!==t,Z=w===null,$=w===w,it=vn(w);if(!Z&&!it&&!V&&g>w||V&&H&&$&&!Z&&!it||I&&H&&$||!T&&$||!k)return 1;if(!I&&!V&&!it&&g<w||it&&T&&k&&!I&&!V||Z&&T&&k||!H&&k||!$)return-1}return 0}function gz(g,w,T){for(var I=-1,k=g.criteria,V=w.criteria,H=k.length,Z=T.length;++I<H;){var $=hb(k[I],V[I]);if($){if(I>=Z)return $;var it=T[I];return $*(it=="desc"?-1:1)}}return g.index-w.index}function fb(g,w,T,I){for(var k=-1,V=g.length,H=T.length,Z=-1,$=w.length,it=er(V-H,0),ot=J($+it),lt=!I;++Z<$;)ot[Z]=w[Z];for(;++k<H;)(lt||k<V)&&(ot[T[k]]=g[k]);for(;it--;)ot[Z++]=g[k++];return ot}function vb(g,w,T,I){for(var k=-1,V=g.length,H=-1,Z=T.length,$=-1,it=w.length,ot=er(V-Z,0),lt=J(ot+it),xt=!I;++k<ot;)lt[k]=g[k];for(var It=k;++$<it;)lt[It+$]=w[$];for(;++H<Z;)(xt||k<V)&&(lt[It+T[H]]=g[k++]);return lt}function jr(g,w){var T=-1,I=g.length;for(w||(w=J(I));++T<I;)w[T]=g[T];return w}function ya(g,w,T,I){var k=!T;T||(T={});for(var V=-1,H=w.length;++V<H;){var Z=w[V],$=I?I(T[Z],g[Z],Z,T,g):t;$===t&&($=g[Z]),k?da(T,Z,$):Du(T,Z,$)}return T}function yz(g,w){return ya(g,Gg(g),w)}function mz(g,w){return ya(g,Cb(g),w)}function Sf(g,w){return function(T,I){var k=qt(T)?b5:F3,V=w?w():{};return k(T,g,Ft(I,2),V)}}function al(g){return ie(function(w,T){var I=-1,k=T.length,V=k>1?T[k-1]:t,H=k>2?T[2]:t;for(V=g.length>3&&typeof V=="function"?(k--,V):t,H&&Or(T[0],T[1],H)&&(V=k<3?t:V,k=1),w=Ie(w);++I<k;){var Z=T[I];Z&&g(w,Z,I,V)}return w})}function pb(g,w){return function(T,I){if(T==null)return T;if(!qr(T))return g(T,I);for(var k=T.length,V=w?k:-1,H=Ie(T);(w?V--:++V<k)&&I(H[V],V,H)!==!1;);return T}}function db(g){return function(w,T,I){for(var k=-1,V=Ie(w),H=I(w),Z=H.length;Z--;){var $=H[g?Z:++k];if(T(V[$],$,V)===!1)break}return w}}function _z(g,w,T){var I=w&y,k=ku(g);function V(){var H=this&&this!==gr&&this instanceof V?k:g;return H.apply(I?T:this,arguments)}return V}function gb(g){return function(w){w=be(w);var T=Ks(w)?$n(w):t,I=T?T[0]:w.charAt(0),k=T?Ri(T,1).join(""):w.slice(1);return I[g]()+k}}function il(g){return function(w){return ig(d2(p2(w).replace(u5,"")),g,"")}}function ku(g){return function(){var w=arguments;switch(w.length){case 0:return new g;case 1:return new g(w[0]);case 2:return new g(w[0],w[1]);case 3:return new g(w[0],w[1],w[2]);case 4:return new g(w[0],w[1],w[2],w[3]);case 5:return new g(w[0],w[1],w[2],w[3],w[4]);case 6:return new g(w[0],w[1],w[2],w[3],w[4],w[5]);case 7:return new g(w[0],w[1],w[2],w[3],w[4],w[5],w[6])}var T=nl(g.prototype),I=g.apply(T,w);return ze(I)?I:T}}function xz(g,w,T){var I=ku(g);function k(){for(var V=arguments.length,H=J(V),Z=V,$=ol(k);Z--;)H[Z]=arguments[Z];var it=V<3&&H[0]!==$&&H[V-1]!==$?[]:Mi(H,$);if(V-=it.length,V<T)return wb(g,w,bf,k.placeholder,t,H,it,t,t,T-V);var ot=this&&this!==gr&&this instanceof k?I:g;return un(ot,this,H)}return k}function yb(g){return function(w,T,I){var k=Ie(w);if(!qr(w)){var V=Ft(T,3);w=fr(w),T=function(Z){return V(k[Z],Z,k)}}var H=g(w,T,I);return H>-1?k[V?w[H]:H]:t}}function mb(g){return ja(function(w){var T=w.length,I=T,k=An.prototype.thru;for(g&&w.reverse();I--;){var V=w[I];if(typeof V!="function")throw new bn(o);if(k&&!H&&Mf(V)=="wrapper")var H=new An([],!0)}for(I=H?I:T;++I<T;){V=w[I];var Z=Mf(V),$=Z=="wrapper"?Vg(V):t;$&&Wg($[0])&&$[1]==(M|S|A|L)&&!$[4].length&&$[9]==1?H=H[Mf($[0])].apply(H,$[3]):H=V.length==1&&Wg(V)?H[Z]():H.thru(V)}return function(){var it=arguments,ot=it[0];if(H&&it.length==1&&qt(ot))return H.plant(ot).value();for(var lt=0,xt=T?w[lt].apply(this,it):ot;++lt<T;)xt=w[lt].call(this,xt);return xt}})}function bf(g,w,T,I,k,V,H,Z,$,it){var ot=w&M,lt=w&y,xt=w&f,It=w&(S|b),Ht=w&D,ne=xt?t:ku(g);function Vt(){for(var le=arguments.length,pe=J(le),pn=le;pn--;)pe[pn]=arguments[pn];if(It)var Nr=ol(Vt),dn=R5(pe,Nr);if(I&&(pe=fb(pe,I,k,It)),V&&(pe=vb(pe,V,H,It)),le-=dn,It&&le<it){var Ze=Mi(pe,Nr);return wb(g,w,bf,Vt.placeholder,T,pe,Ze,Z,$,it-le)}var Qn=lt?T:this,Ja=xt?Qn[g]:g;return le=pe.length,Z?pe=Fz(pe,Z):Ht&&le>1&&pe.reverse(),ot&&$<le&&(pe.length=$),this&&this!==gr&&this instanceof Vt&&(Ja=ne||ku(Ja)),Ja.apply(Qn,pe)}return Vt}function _b(g,w){return function(T,I){return $3(T,g,w(I),{})}}function Af(g,w){return function(T,I){var k;if(T===t&&I===t)return w;if(T!==t&&(k=T),I!==t){if(k===t)return I;typeof T=="string"||typeof I=="string"?(T=fn(T),I=fn(I)):(T=ab(T),I=ab(I)),k=g(T,I)}return k}}function Og(g){return ja(function(w){return w=Be(w,hn(Ft())),ie(function(T){var I=this;return g(w,function(k){return un(k,I,T)})})})}function Tf(g,w){w=w===t?" ":fn(w);var T=w.length;if(T<2)return T?Lg(w,g):w;var I=Lg(w,hf(g/Qs(w)));return Ks(w)?Ri($n(I),0,g).join(""):I.slice(0,g)}function wz(g,w,T,I){var k=w&y,V=ku(g);function H(){for(var Z=-1,$=arguments.length,it=-1,ot=I.length,lt=J(ot+$),xt=this&&this!==gr&&this instanceof H?V:g;++it<ot;)lt[it]=I[it];for(;$--;)lt[it++]=arguments[++Z];return un(xt,k?T:this,lt)}return H}function xb(g){return function(w,T,I){return I&&typeof I!="number"&&Or(w,T,I)&&(T=I=t),w=Qa(w),T===t?(T=w,w=0):T=Qa(T),I=I===t?w<T?1:-1:Qa(I),oz(w,T,I,g)}}function Cf(g){return function(w,T){return typeof w=="string"&&typeof T=="string"||(w=Ln(w),T=Ln(T)),g(w,T)}}function wb(g,w,T,I,k,V,H,Z,$,it){var ot=w&S,lt=ot?H:t,xt=ot?t:H,It=ot?V:t,Ht=ot?t:V;w|=ot?A:C,w&=~(ot?C:A),w&_||(w&=-4);var ne=[g,w,k,It,lt,Ht,xt,Z,$,it],Vt=T.apply(t,ne);return Wg(g)&&Eb(Vt,ne),Vt.placeholder=I,kb(Vt,g,w)}function Ng(g){var w=tr[g];return function(T,I){if(T=Ln(T),I=I==null?0:Ar(ee(I),292),I&&kS(T)){var k=(be(T)+"e").split("e"),V=w(k[0]+"e"+(+k[1]+I));return k=(be(V)+"e").split("e"),+(k[0]+"e"+(+k[1]-I))}return w(T)}}var Sz=el&&1/tf(new el([,-0]))[1]==W?function(g){return new el(g)}:iy;function Sb(g){return function(w){var T=Tr(w);return T==Zt?fg(w):T==hr?V5(w):P5(w,g(w))}}function $a(g,w,T,I,k,V,H,Z){var $=w&f;if(!$&&typeof g!="function")throw new bn(o);var it=I?I.length:0;if(it||(w&=-97,I=k=t),H=H===t?H:er(ee(H),0),Z=Z===t?Z:ee(Z),it-=k?k.length:0,w&C){var ot=I,lt=k;I=k=t}var xt=$?t:Vg(g),It=[g,w,T,I,k,ot,lt,V,H,Z];if(xt&&Bz(It,xt),g=It[0],w=It[1],T=It[2],I=It[3],k=It[4],Z=It[9]=It[9]===t?$?0:g.length:er(It[9]-it,0),!Z&&w&(S|b)&&(w&=-25),!w||w==y)var Ht=_z(g,w,T);else w==S||w==b?Ht=xz(g,w,Z):(w==A||w==(y|A))&&!k.length?Ht=wz(g,w,T,I):Ht=bf.apply(t,It);var ne=xt?rb:Eb;return kb(ne(Ht,It),g,w)}function bb(g,w,T,I){return g===t||Kn(g,tl[T])&&!Se.call(I,T)?w:g}function Ab(g,w,T,I,k,V){return ze(g)&&ze(w)&&(V.set(w,g),_f(g,w,t,Ab,V),V.delete(w)),g}function bz(g){return Bu(g)?t:g}function Tb(g,w,T,I,k,V){var H=T&m,Z=g.length,$=w.length;if(Z!=$&&!(H&&$>Z))return!1;var it=V.get(g),ot=V.get(w);if(it&&ot)return it==w&&ot==g;var lt=-1,xt=!0,It=T&x?new Io:t;for(V.set(g,w),V.set(w,g);++lt<Z;){var Ht=g[lt],ne=w[lt];if(I)var Vt=H?I(ne,Ht,lt,w,g,V):I(Ht,ne,lt,g,w,V);if(Vt!==t){if(Vt)continue;xt=!1;break}if(It){if(!og(w,function(le,pe){if(!bu(It,pe)&&(Ht===le||k(Ht,le,T,I,V)))return It.push(pe)})){xt=!1;break}}else if(!(Ht===ne||k(Ht,ne,T,I,V))){xt=!1;break}}return V.delete(g),V.delete(w),xt}function Az(g,w,T,I,k,V,H){switch(T){case pa:if(g.byteLength!=w.byteLength||g.byteOffset!=w.byteOffset)return!1;g=g.buffer,w=w.buffer;case Ya:return!(g.byteLength!=w.byteLength||!V(new sf(g),new sf(w)));case mt:case Pt:case ue:return Kn(+g,+w);case St:return g.name==w.name&&g.message==w.message;case cr:case ln:return g==w+"";case Zt:var Z=fg;case hr:var $=I&m;if(Z||(Z=tf),g.size!=w.size&&!$)return!1;var it=H.get(g);if(it)return it==w;I|=x,H.set(g,w);var ot=Tb(Z(g),Z(w),I,k,V,H);return H.delete(g),ot;case Ai:if(Lu)return Lu.call(g)==Lu.call(w)}return!1}function Tz(g,w,T,I,k,V){var H=T&m,Z=Bg(g),$=Z.length,it=Bg(w),ot=it.length;if($!=ot&&!H)return!1;for(var lt=$;lt--;){var xt=Z[lt];if(!(H?xt in w:Se.call(w,xt)))return!1}var It=V.get(g),Ht=V.get(w);if(It&&Ht)return It==w&&Ht==g;var ne=!0;V.set(g,w),V.set(w,g);for(var Vt=H;++lt<$;){xt=Z[lt];var le=g[xt],pe=w[xt];if(I)var pn=H?I(pe,le,xt,w,g,V):I(le,pe,xt,g,w,V);if(!(pn===t?le===pe||k(le,pe,T,I,V):pn)){ne=!1;break}Vt||(Vt=xt=="constructor")}if(ne&&!Vt){var Nr=g.constructor,dn=w.constructor;Nr!=dn&&"constructor"in g&&"constructor"in w&&!(typeof Nr=="function"&&Nr instanceof Nr&&typeof dn=="function"&&dn instanceof dn)&&(ne=!1)}return V.delete(g),V.delete(w),ne}function ja(g){return Yg(Pb(g,t,Fb),g+"")}function Bg(g){return YS(g,fr,Gg)}function zg(g){return YS(g,Kr,Cb)}var Vg=vf?function(g){return vf.get(g)}:iy;function Mf(g){for(var w=g.name+"",T=rl[w],I=Se.call(rl,w)?T.length:0;I--;){var k=T[I],V=k.func;if(V==null||V==g)return k.name}return w}function ol(g){var w=Se.call(B,"placeholder")?B:g;return w.placeholder}function Ft(){var g=B.iteratee||ny;return g=g===ny?$S:g,arguments.length?g(arguments[0],arguments[1]):g}function Lf(g,w){var T=g.__data__;return Ez(w)?T[typeof w=="string"?"string":"hash"]:T.map}function Fg(g){for(var w=fr(g),T=w.length;T--;){var I=w[T],k=g[I];w[T]=[I,k,Db(k)]}return w}function Eo(g,w){var T=N5(g,w);return XS(T)?T:t}function Cz(g){var w=Se.call(g,Lo),T=g[Lo];try{g[Lo]=t;var I=!0}catch{}var k=af.call(g);return I&&(w?g[Lo]=T:delete g[Lo]),k}var Gg=pg?function(g){return g==null?[]:(g=Ie(g),Ti(pg(g),function(w){return RS.call(g,w)}))}:oy,Cb=pg?function(g){for(var w=[];g;)Ci(w,Gg(g)),g=lf(g);return w}:oy,Tr=kr;(dg&&Tr(new dg(new ArrayBuffer(1)))!=pa||Tu&&Tr(new Tu)!=Zt||gg&&Tr(gg.resolve())!=Ue||el&&Tr(new el)!=hr||Cu&&Tr(new Cu)!=Ua)&&(Tr=function(g){var w=kr(g),T=w==De?g.constructor:t,I=T?ko(T):"";if(I)switch(I){case l3:return pa;case u3:return Zt;case c3:return Ue;case h3:return hr;case f3:return Ua}return w});function Mz(g,w,T){for(var I=-1,k=T.length;++I<k;){var V=T[I],H=V.size;switch(V.type){case"drop":g+=H;break;case"dropRight":w-=H;break;case"take":w=Ar(w,g+H);break;case"takeRight":g=er(g,w-H);break}}return{start:g,end:w}}function Lz(g){var w=g.match(OB);return w?w[1].split(NB):[]}function Mb(g,w,T){w=Pi(w,g);for(var I=-1,k=w.length,V=!1;++I<k;){var H=qn(w[I]);if(!(V=g!=null&&T(g,H)))break;g=g[H]}return V||++I!=k?V:(k=g==null?0:g.length,!!k&&Of(k)&&qa(H,k)&&(qt(g)||Oo(g)))}function Dz(g){var w=g.length,T=new g.constructor(w);return w&&typeof g[0]=="string"&&Se.call(g,"index")&&(T.index=g.index,T.input=g.input),T}function Lb(g){return typeof g.constructor=="function"&&!Ou(g)?nl(lf(g)):{}}function Iz(g,w,T){var I=g.constructor;switch(w){case Ya:return kg(g);case mt:case Pt:return new I(+g);case pa:return vz(g,T);case mo:case _o:case xo:case wo:case So:case bo:case Ao:case To:case Co:return cb(g,T);case Zt:return new I;case ue:case ln:return new I(g);case cr:return pz(g);case hr:return new I;case Ai:return dz(g)}}function Pz(g,w){var T=w.length;if(!T)return g;var I=T-1;return w[I]=(T>1?"& ":"")+w[I],w=w.join(T>2?", ":" "),g.replace(kB,`{
|
|
2
|
+
/* [wrapped with `+w+`] */
|
|
3
|
+
`)}function Rz(g){return qt(g)||Oo(g)||!!(ES&&g&&g[ES])}function qa(g,w){var T=typeof g;return w=w??Y,!!w&&(T=="number"||T!="symbol"&&UB.test(g))&&g>-1&&g%1==0&&g<w}function Or(g,w,T){if(!ze(T))return!1;var I=typeof w;return(I=="number"?qr(T)&&qa(w,T.length):I=="string"&&w in T)?Kn(T[w],g):!1}function Hg(g,w){if(qt(g))return!1;var T=typeof g;return T=="number"||T=="symbol"||T=="boolean"||g==null||vn(g)?!0:IB.test(g)||!DB.test(g)||w!=null&&g in Ie(w)}function Ez(g){var w=typeof g;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?g!=="__proto__":g===null}function Wg(g){var w=Mf(g),T=B[w];if(typeof T!="function"||!(w in ce.prototype))return!1;if(g===T)return!0;var I=Vg(T);return!!I&&g===I[0]}function kz(g){return!!DS&&DS in g}var Oz=rf?Ka:sy;function Ou(g){var w=g&&g.constructor,T=typeof w=="function"&&w.prototype||tl;return g===T}function Db(g){return g===g&&!ze(g)}function Ib(g,w){return function(T){return T==null?!1:T[g]===w&&(w!==t||g in Ie(T))}}function Nz(g){var w=Ef(g,function(I){return T.size===c&&T.clear(),I}),T=w.cache;return w}function Bz(g,w){var T=g[1],I=w[1],k=T|I,V=k<(y|f|M),H=I==M&&T==S||I==M&&T==L&&g[7].length<=w[8]||I==(M|L)&&w[7].length<=w[8]&&T==S;if(!(V||H))return g;I&y&&(g[2]=w[2],k|=T&y?0:_);var Z=w[3];if(Z){var $=g[3];g[3]=$?fb($,Z,w[4]):Z,g[4]=$?Mi(g[3],h):w[4]}return Z=w[5],Z&&($=g[5],g[5]=$?vb($,Z,w[6]):Z,g[6]=$?Mi(g[5],h):w[6]),Z=w[7],Z&&(g[7]=Z),I&M&&(g[8]=g[8]==null?w[8]:Ar(g[8],w[8])),g[9]==null&&(g[9]=w[9]),g[0]=w[0],g[1]=k,g}function zz(g){var w=[];if(g!=null)for(var T in Ie(g))w.push(T);return w}function Vz(g){return af.call(g)}function Pb(g,w,T){return w=er(w===t?g.length-1:w,0),function(){for(var I=arguments,k=-1,V=er(I.length-w,0),H=J(V);++k<V;)H[k]=I[w+k];k=-1;for(var Z=J(w+1);++k<w;)Z[k]=I[k];return Z[w]=T(H),un(g,this,Z)}}function Rb(g,w){return w.length<2?g:Ro(g,Cn(w,0,-1))}function Fz(g,w){for(var T=g.length,I=Ar(w.length,T),k=jr(g);I--;){var V=w[I];g[I]=qa(V,T)?k[V]:t}return g}function Ug(g,w){if(!(w==="constructor"&&typeof g[w]=="function")&&w!="__proto__")return g[w]}var Eb=Ob(rb),Nu=e3||function(g,w){return gr.setTimeout(g,w)},Yg=Ob(uz);function kb(g,w,T){var I=w+"";return Yg(g,Pz(I,Gz(Lz(I),T)))}function Ob(g){var w=0,T=0;return function(){var I=i3(),k=N-(I-T);if(T=I,k>0){if(++w>=O)return arguments[0]}else w=0;return g.apply(t,arguments)}}function Df(g,w){var T=-1,I=g.length,k=I-1;for(w=w===t?I:w;++T<w;){var V=Mg(T,k),H=g[V];g[V]=g[T],g[T]=H}return g.length=w,g}var Nb=Nz(function(g){var w=[];return g.charCodeAt(0)===46&&w.push(""),g.replace(PB,function(T,I,k,V){w.push(k?V.replace(zB,"$1"):I||T)}),w});function qn(g){if(typeof g=="string"||vn(g))return g;var w=g+"";return w=="0"&&1/g==-W?"-0":w}function ko(g){if(g!=null){try{return nf.call(g)}catch{}try{return g+""}catch{}}return""}function Gz(g,w){return cn(_t,function(T){var I="_."+T[0];w&T[1]&&!Qh(g,I)&&g.push(I)}),g.sort()}function Bb(g){if(g instanceof ce)return g.clone();var w=new An(g.__wrapped__,g.__chain__);return w.__actions__=jr(g.__actions__),w.__index__=g.__index__,w.__values__=g.__values__,w}function Hz(g,w,T){(T?Or(g,w,T):w===t)?w=1:w=er(ee(w),0);var I=g==null?0:g.length;if(!I||w<1)return[];for(var k=0,V=0,H=J(hf(I/w));k<I;)H[V++]=Cn(g,k,k+=w);return H}function Wz(g){for(var w=-1,T=g==null?0:g.length,I=0,k=[];++w<T;){var V=g[w];V&&(k[I++]=V)}return k}function Uz(){var g=arguments.length;if(!g)return[];for(var w=J(g-1),T=arguments[0],I=g;I--;)w[I-1]=arguments[I];return Ci(qt(T)?jr(T):[T],yr(w,1))}var Yz=ie(function(g,w){return Ye(g)?Iu(g,yr(w,1,Ye,!0)):[]}),Zz=ie(function(g,w){var T=Mn(w);return Ye(T)&&(T=t),Ye(g)?Iu(g,yr(w,1,Ye,!0),Ft(T,2)):[]}),Xz=ie(function(g,w){var T=Mn(w);return Ye(T)&&(T=t),Ye(g)?Iu(g,yr(w,1,Ye,!0),t,T):[]});function $z(g,w,T){var I=g==null?0:g.length;return I?(w=T||w===t?1:ee(w),Cn(g,w<0?0:w,I)):[]}function jz(g,w,T){var I=g==null?0:g.length;return I?(w=T||w===t?1:ee(w),w=I-w,Cn(g,0,w<0?0:w)):[]}function qz(g,w){return g&&g.length?wf(g,Ft(w,3),!0,!0):[]}function Kz(g,w){return g&&g.length?wf(g,Ft(w,3),!0):[]}function Qz(g,w,T,I){var k=g==null?0:g.length;return k?(T&&typeof T!="number"&&Or(g,w,T)&&(T=0,I=k),U3(g,w,T,I)):[]}function zb(g,w,T){var I=g==null?0:g.length;if(!I)return-1;var k=T==null?0:ee(T);return k<0&&(k=er(I+k,0)),Jh(g,Ft(w,3),k)}function Vb(g,w,T){var I=g==null?0:g.length;if(!I)return-1;var k=I-1;return T!==t&&(k=ee(T),k=T<0?er(I+k,0):Ar(k,I-1)),Jh(g,Ft(w,3),k,!0)}function Fb(g){var w=g==null?0:g.length;return w?yr(g,1):[]}function Jz(g){var w=g==null?0:g.length;return w?yr(g,W):[]}function tV(g,w){var T=g==null?0:g.length;return T?(w=w===t?1:ee(w),yr(g,w)):[]}function eV(g){for(var w=-1,T=g==null?0:g.length,I={};++w<T;){var k=g[w];da(I,k[0],k[1])}return I}function Gb(g){return g&&g.length?g[0]:t}function rV(g,w,T){var I=g==null?0:g.length;if(!I)return-1;var k=T==null?0:ee(T);return k<0&&(k=er(I+k,0)),qs(g,w,k)}function nV(g){var w=g==null?0:g.length;return w?Cn(g,0,-1):[]}var aV=ie(function(g){var w=Be(g,Rg);return w.length&&w[0]===g[0]?Sg(w):[]}),iV=ie(function(g){var w=Mn(g),T=Be(g,Rg);return w===Mn(T)?w=t:T.pop(),T.length&&T[0]===g[0]?Sg(T,Ft(w,2)):[]}),oV=ie(function(g){var w=Mn(g),T=Be(g,Rg);return w=typeof w=="function"?w:t,w&&T.pop(),T.length&&T[0]===g[0]?Sg(T,t,w):[]});function sV(g,w){return g==null?"":n3.call(g,w)}function Mn(g){var w=g==null?0:g.length;return w?g[w-1]:t}function lV(g,w,T){var I=g==null?0:g.length;if(!I)return-1;var k=I;return T!==t&&(k=ee(T),k=k<0?er(I+k,0):Ar(k,I-1)),w===w?G5(g,w,k):Jh(g,wS,k,!0)}function uV(g,w){return g&&g.length?QS(g,ee(w)):t}var cV=ie(Hb);function Hb(g,w){return g&&g.length&&w&&w.length?Cg(g,w):g}function hV(g,w,T){return g&&g.length&&w&&w.length?Cg(g,w,Ft(T,2)):g}function fV(g,w,T){return g&&g.length&&w&&w.length?Cg(g,w,t,T):g}var vV=ja(function(g,w){var T=g==null?0:g.length,I=mg(g,w);return eb(g,Be(w,function(k){return qa(k,T)?+k:k}).sort(hb)),I});function pV(g,w){var T=[];if(!(g&&g.length))return T;var I=-1,k=[],V=g.length;for(w=Ft(w,3);++I<V;){var H=g[I];w(H,I,g)&&(T.push(H),k.push(I))}return eb(g,k),T}function Zg(g){return g==null?g:s3.call(g)}function dV(g,w,T){var I=g==null?0:g.length;return I?(T&&typeof T!="number"&&Or(g,w,T)?(w=0,T=I):(w=w==null?0:ee(w),T=T===t?I:ee(T)),Cn(g,w,T)):[]}function gV(g,w){return xf(g,w)}function yV(g,w,T){return Dg(g,w,Ft(T,2))}function mV(g,w){var T=g==null?0:g.length;if(T){var I=xf(g,w);if(I<T&&Kn(g[I],w))return I}return-1}function _V(g,w){return xf(g,w,!0)}function xV(g,w,T){return Dg(g,w,Ft(T,2),!0)}function wV(g,w){var T=g==null?0:g.length;if(T){var I=xf(g,w,!0)-1;if(Kn(g[I],w))return I}return-1}function SV(g){return g&&g.length?nb(g):[]}function bV(g,w){return g&&g.length?nb(g,Ft(w,2)):[]}function AV(g){var w=g==null?0:g.length;return w?Cn(g,1,w):[]}function TV(g,w,T){return g&&g.length?(w=T||w===t?1:ee(w),Cn(g,0,w<0?0:w)):[]}function CV(g,w,T){var I=g==null?0:g.length;return I?(w=T||w===t?1:ee(w),w=I-w,Cn(g,w<0?0:w,I)):[]}function MV(g,w){return g&&g.length?wf(g,Ft(w,3),!1,!0):[]}function LV(g,w){return g&&g.length?wf(g,Ft(w,3)):[]}var DV=ie(function(g){return Ii(yr(g,1,Ye,!0))}),IV=ie(function(g){var w=Mn(g);return Ye(w)&&(w=t),Ii(yr(g,1,Ye,!0),Ft(w,2))}),PV=ie(function(g){var w=Mn(g);return w=typeof w=="function"?w:t,Ii(yr(g,1,Ye,!0),t,w)});function RV(g){return g&&g.length?Ii(g):[]}function EV(g,w){return g&&g.length?Ii(g,Ft(w,2)):[]}function kV(g,w){return w=typeof w=="function"?w:t,g&&g.length?Ii(g,t,w):[]}function Xg(g){if(!(g&&g.length))return[];var w=0;return g=Ti(g,function(T){if(Ye(T))return w=er(T.length,w),!0}),cg(w,function(T){return Be(g,sg(T))})}function Wb(g,w){if(!(g&&g.length))return[];var T=Xg(g);return w==null?T:Be(T,function(I){return un(w,t,I)})}var OV=ie(function(g,w){return Ye(g)?Iu(g,w):[]}),NV=ie(function(g){return Pg(Ti(g,Ye))}),BV=ie(function(g){var w=Mn(g);return Ye(w)&&(w=t),Pg(Ti(g,Ye),Ft(w,2))}),zV=ie(function(g){var w=Mn(g);return w=typeof w=="function"?w:t,Pg(Ti(g,Ye),t,w)}),VV=ie(Xg);function FV(g,w){return sb(g||[],w||[],Du)}function GV(g,w){return sb(g||[],w||[],Eu)}var HV=ie(function(g){var w=g.length,T=w>1?g[w-1]:t;return T=typeof T=="function"?(g.pop(),T):t,Wb(g,T)});function Ub(g){var w=B(g);return w.__chain__=!0,w}function WV(g,w){return w(g),g}function If(g,w){return w(g)}var UV=ja(function(g){var w=g.length,T=w?g[0]:0,I=this.__wrapped__,k=function(V){return mg(V,g)};return w>1||this.__actions__.length||!(I instanceof ce)||!qa(T)?this.thru(k):(I=I.slice(T,+T+(w?1:0)),I.__actions__.push({func:If,args:[k],thisArg:t}),new An(I,this.__chain__).thru(function(V){return w&&!V.length&&V.push(t),V}))});function YV(){return Ub(this)}function ZV(){return new An(this.value(),this.__chain__)}function XV(){this.__values__===t&&(this.__values__=a2(this.value()));var g=this.__index__>=this.__values__.length,w=g?t:this.__values__[this.__index__++];return{done:g,value:w}}function $V(){return this}function jV(g){for(var w,T=this;T instanceof df;){var I=Bb(T);I.__index__=0,I.__values__=t,w?k.__wrapped__=I:w=I;var k=I;T=T.__wrapped__}return k.__wrapped__=g,w}function qV(){var g=this.__wrapped__;if(g instanceof ce){var w=g;return this.__actions__.length&&(w=new ce(this)),w=w.reverse(),w.__actions__.push({func:If,args:[Zg],thisArg:t}),new An(w,this.__chain__)}return this.thru(Zg)}function KV(){return ob(this.__wrapped__,this.__actions__)}var QV=Sf(function(g,w,T){Se.call(g,T)?++g[T]:da(g,T,1)});function JV(g,w,T){var I=qt(g)?_S:W3;return T&&Or(g,w,T)&&(w=t),I(g,Ft(w,3))}function tF(g,w){var T=qt(g)?Ti:WS;return T(g,Ft(w,3))}var eF=yb(zb),rF=yb(Vb);function nF(g,w){return yr(Pf(g,w),1)}function aF(g,w){return yr(Pf(g,w),W)}function iF(g,w,T){return T=T===t?1:ee(T),yr(Pf(g,w),T)}function Yb(g,w){var T=qt(g)?cn:Di;return T(g,Ft(w,3))}function Zb(g,w){var T=qt(g)?A5:HS;return T(g,Ft(w,3))}var oF=Sf(function(g,w,T){Se.call(g,T)?g[T].push(w):da(g,T,[w])});function sF(g,w,T,I){g=qr(g)?g:ll(g),T=T&&!I?ee(T):0;var k=g.length;return T<0&&(T=er(k+T,0)),Nf(g)?T<=k&&g.indexOf(w,T)>-1:!!k&&qs(g,w,T)>-1}var lF=ie(function(g,w,T){var I=-1,k=typeof w=="function",V=qr(g)?J(g.length):[];return Di(g,function(H){V[++I]=k?un(w,H,T):Pu(H,w,T)}),V}),uF=Sf(function(g,w,T){da(g,T,w)});function Pf(g,w){var T=qt(g)?Be:jS;return T(g,Ft(w,3))}function cF(g,w,T,I){return g==null?[]:(qt(w)||(w=w==null?[]:[w]),T=I?t:T,qt(T)||(T=T==null?[]:[T]),JS(g,w,T))}var hF=Sf(function(g,w,T){g[T?0:1].push(w)},function(){return[[],[]]});function fF(g,w,T){var I=qt(g)?ig:bS,k=arguments.length<3;return I(g,Ft(w,4),T,k,Di)}function vF(g,w,T){var I=qt(g)?T5:bS,k=arguments.length<3;return I(g,Ft(w,4),T,k,HS)}function pF(g,w){var T=qt(g)?Ti:WS;return T(g,kf(Ft(w,3)))}function dF(g){var w=qt(g)?zS:sz;return w(g)}function gF(g,w,T){(T?Or(g,w,T):w===t)?w=1:w=ee(w);var I=qt(g)?z3:lz;return I(g,w)}function yF(g){var w=qt(g)?V3:cz;return w(g)}function mF(g){if(g==null)return 0;if(qr(g))return Nf(g)?Qs(g):g.length;var w=Tr(g);return w==Zt||w==hr?g.size:Ag(g).length}function _F(g,w,T){var I=qt(g)?og:hz;return T&&Or(g,w,T)&&(w=t),I(g,Ft(w,3))}var xF=ie(function(g,w){if(g==null)return[];var T=w.length;return T>1&&Or(g,w[0],w[1])?w=[]:T>2&&Or(w[0],w[1],w[2])&&(w=[w[0]]),JS(g,yr(w,1),[])}),Rf=t3||function(){return gr.Date.now()};function wF(g,w){if(typeof w!="function")throw new bn(o);return g=ee(g),function(){if(--g<1)return w.apply(this,arguments)}}function Xb(g,w,T){return w=T?t:w,w=g&&w==null?g.length:w,$a(g,M,t,t,t,t,w)}function $b(g,w){var T;if(typeof w!="function")throw new bn(o);return g=ee(g),function(){return--g>0&&(T=w.apply(this,arguments)),g<=1&&(w=t),T}}var $g=ie(function(g,w,T){var I=y;if(T.length){var k=Mi(T,ol($g));I|=A}return $a(g,I,w,T,k)}),jb=ie(function(g,w,T){var I=y|f;if(T.length){var k=Mi(T,ol(jb));I|=A}return $a(w,I,g,T,k)});function qb(g,w,T){w=T?t:w;var I=$a(g,S,t,t,t,t,t,w);return I.placeholder=qb.placeholder,I}function Kb(g,w,T){w=T?t:w;var I=$a(g,b,t,t,t,t,t,w);return I.placeholder=Kb.placeholder,I}function Qb(g,w,T){var I,k,V,H,Z,$,it=0,ot=!1,lt=!1,xt=!0;if(typeof g!="function")throw new bn(o);w=Ln(w)||0,ze(T)&&(ot=!!T.leading,lt="maxWait"in T,V=lt?er(Ln(T.maxWait)||0,w):V,xt="trailing"in T?!!T.trailing:xt);function It(Ze){var Qn=I,Ja=k;return I=k=t,it=Ze,H=g.apply(Ja,Qn),H}function Ht(Ze){return it=Ze,Z=Nu(le,w),ot?It(Ze):H}function ne(Ze){var Qn=Ze-$,Ja=Ze-it,m2=w-Qn;return lt?Ar(m2,V-Ja):m2}function Vt(Ze){var Qn=Ze-$,Ja=Ze-it;return $===t||Qn>=w||Qn<0||lt&&Ja>=V}function le(){var Ze=Rf();if(Vt(Ze))return pe(Ze);Z=Nu(le,ne(Ze))}function pe(Ze){return Z=t,xt&&I?It(Ze):(I=k=t,H)}function pn(){Z!==t&&lb(Z),it=0,I=$=k=Z=t}function Nr(){return Z===t?H:pe(Rf())}function dn(){var Ze=Rf(),Qn=Vt(Ze);if(I=arguments,k=this,$=Ze,Qn){if(Z===t)return Ht($);if(lt)return lb(Z),Z=Nu(le,w),It($)}return Z===t&&(Z=Nu(le,w)),H}return dn.cancel=pn,dn.flush=Nr,dn}var SF=ie(function(g,w){return GS(g,1,w)}),bF=ie(function(g,w,T){return GS(g,Ln(w)||0,T)});function AF(g){return $a(g,D)}function Ef(g,w){if(typeof g!="function"||w!=null&&typeof w!="function")throw new bn(o);var T=function(){var I=arguments,k=w?w.apply(this,I):I[0],V=T.cache;if(V.has(k))return V.get(k);var H=g.apply(this,I);return T.cache=V.set(k,H)||V,H};return T.cache=new(Ef.Cache||Xa),T}Ef.Cache=Xa;function kf(g){if(typeof g!="function")throw new bn(o);return function(){var w=arguments;switch(w.length){case 0:return!g.call(this);case 1:return!g.call(this,w[0]);case 2:return!g.call(this,w[0],w[1]);case 3:return!g.call(this,w[0],w[1],w[2])}return!g.apply(this,w)}}function TF(g){return $b(2,g)}var CF=fz(function(g,w){w=w.length==1&&qt(w[0])?Be(w[0],hn(Ft())):Be(yr(w,1),hn(Ft()));var T=w.length;return ie(function(I){for(var k=-1,V=Ar(I.length,T);++k<V;)I[k]=w[k].call(this,I[k]);return un(g,this,I)})}),jg=ie(function(g,w){var T=Mi(w,ol(jg));return $a(g,A,t,w,T)}),Jb=ie(function(g,w){var T=Mi(w,ol(Jb));return $a(g,C,t,w,T)}),MF=ja(function(g,w){return $a(g,L,t,t,t,w)});function LF(g,w){if(typeof g!="function")throw new bn(o);return w=w===t?w:ee(w),ie(g,w)}function DF(g,w){if(typeof g!="function")throw new bn(o);return w=w==null?0:er(ee(w),0),ie(function(T){var I=T[w],k=Ri(T,0,w);return I&&Ci(k,I),un(g,this,k)})}function IF(g,w,T){var I=!0,k=!0;if(typeof g!="function")throw new bn(o);return ze(T)&&(I="leading"in T?!!T.leading:I,k="trailing"in T?!!T.trailing:k),Qb(g,w,{leading:I,maxWait:w,trailing:k})}function PF(g){return Xb(g,1)}function RF(g,w){return jg(Eg(w),g)}function EF(){if(!arguments.length)return[];var g=arguments[0];return qt(g)?g:[g]}function kF(g){return Tn(g,d)}function OF(g,w){return w=typeof w=="function"?w:t,Tn(g,d,w)}function NF(g){return Tn(g,v|d)}function BF(g,w){return w=typeof w=="function"?w:t,Tn(g,v|d,w)}function zF(g,w){return w==null||FS(g,w,fr(w))}function Kn(g,w){return g===w||g!==g&&w!==w}var VF=Cf(wg),FF=Cf(function(g,w){return g>=w}),Oo=ZS((function(){return arguments})())?ZS:function(g){return Ge(g)&&Se.call(g,"callee")&&!RS.call(g,"callee")},qt=J.isArray,GF=vS?hn(vS):j3;function qr(g){return g!=null&&Of(g.length)&&!Ka(g)}function Ye(g){return Ge(g)&&qr(g)}function HF(g){return g===!0||g===!1||Ge(g)&&kr(g)==mt}var Ei=r3||sy,WF=pS?hn(pS):q3;function UF(g){return Ge(g)&&g.nodeType===1&&!Bu(g)}function YF(g){if(g==null)return!0;if(qr(g)&&(qt(g)||typeof g=="string"||typeof g.splice=="function"||Ei(g)||sl(g)||Oo(g)))return!g.length;var w=Tr(g);if(w==Zt||w==hr)return!g.size;if(Ou(g))return!Ag(g).length;for(var T in g)if(Se.call(g,T))return!1;return!0}function ZF(g,w){return Ru(g,w)}function XF(g,w,T){T=typeof T=="function"?T:t;var I=T?T(g,w):t;return I===t?Ru(g,w,t,T):!!I}function qg(g){if(!Ge(g))return!1;var w=kr(g);return w==St||w==gt||typeof g.message=="string"&&typeof g.name=="string"&&!Bu(g)}function $F(g){return typeof g=="number"&&kS(g)}function Ka(g){if(!ze(g))return!1;var w=kr(g);return w==se||w==te||w==Mt||w==sn}function t2(g){return typeof g=="number"&&g==ee(g)}function Of(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=Y}function ze(g){var w=typeof g;return g!=null&&(w=="object"||w=="function")}function Ge(g){return g!=null&&typeof g=="object"}var e2=dS?hn(dS):Q3;function jF(g,w){return g===w||bg(g,w,Fg(w))}function qF(g,w,T){return T=typeof T=="function"?T:t,bg(g,w,Fg(w),T)}function KF(g){return r2(g)&&g!=+g}function QF(g){if(Oz(g))throw new Xt(i);return XS(g)}function JF(g){return g===null}function tG(g){return g==null}function r2(g){return typeof g=="number"||Ge(g)&&kr(g)==ue}function Bu(g){if(!Ge(g)||kr(g)!=De)return!1;var w=lf(g);if(w===null)return!0;var T=Se.call(w,"constructor")&&w.constructor;return typeof T=="function"&&T instanceof T&&nf.call(T)==q5}var Kg=gS?hn(gS):J3;function eG(g){return t2(g)&&g>=-Y&&g<=Y}var n2=yS?hn(yS):tz;function Nf(g){return typeof g=="string"||!qt(g)&&Ge(g)&&kr(g)==ln}function vn(g){return typeof g=="symbol"||Ge(g)&&kr(g)==Ai}var sl=mS?hn(mS):ez;function rG(g){return g===t}function nG(g){return Ge(g)&&Tr(g)==Ua}function aG(g){return Ge(g)&&kr(g)==Su}var iG=Cf(Tg),oG=Cf(function(g,w){return g<=w});function a2(g){if(!g)return[];if(qr(g))return Nf(g)?$n(g):jr(g);if(Au&&g[Au])return z5(g[Au]());var w=Tr(g),T=w==Zt?fg:w==hr?tf:ll;return T(g)}function Qa(g){if(!g)return g===0?g:0;if(g=Ln(g),g===W||g===-W){var w=g<0?-1:1;return w*q}return g===g?g:0}function ee(g){var w=Qa(g),T=w%1;return w===w?T?w-T:w:0}function i2(g){return g?Po(ee(g),0,rt):0}function Ln(g){if(typeof g=="number")return g;if(vn(g))return Q;if(ze(g)){var w=typeof g.valueOf=="function"?g.valueOf():g;g=ze(w)?w+"":w}if(typeof g!="string")return g===0?g:+g;g=AS(g);var T=GB.test(g);return T||WB.test(g)?w5(g.slice(2),T?2:8):FB.test(g)?Q:+g}function o2(g){return ya(g,Kr(g))}function sG(g){return g?Po(ee(g),-Y,Y):g===0?g:0}function be(g){return g==null?"":fn(g)}var lG=al(function(g,w){if(Ou(w)||qr(w)){ya(w,fr(w),g);return}for(var T in w)Se.call(w,T)&&Du(g,T,w[T])}),s2=al(function(g,w){ya(w,Kr(w),g)}),l2=al(function(g,w,T,I){ya(w,Kr(w),g,I)}),Qg=al(function(g,w,T,I){ya(w,fr(w),g,I)}),uG=ja(mg);function cG(g,w){var T=nl(g);return w==null?T:VS(T,w)}var hG=ie(function(g,w){g=Ie(g);var T=-1,I=w.length,k=I>2?w[2]:t;for(k&&Or(w[0],w[1],k)&&(I=1);++T<I;)for(var V=w[T],H=Kr(V),Z=-1,$=H.length;++Z<$;){var it=H[Z],ot=g[it];(ot===t||Kn(ot,tl[it])&&!Se.call(g,it))&&(g[it]=V[it])}return g}),fG=ie(function(g){return g.push(t,Ab),un(u2,t,g)});function vG(g,w){return xS(g,Ft(w,3),ga)}function pG(g,w){return xS(g,Ft(w,3),xg)}function dG(g,w){return g==null?g:_g(g,Ft(w,3),Kr)}function gG(g,w){return g==null?g:US(g,Ft(w,3),Kr)}function yG(g,w){return g&&ga(g,Ft(w,3))}function mG(g,w){return g&&xg(g,Ft(w,3))}function _G(g){return g==null?[]:mf(g,fr(g))}function xG(g){return g==null?[]:mf(g,Kr(g))}function Jg(g,w,T){var I=g==null?t:Ro(g,w);return I===t?T:I}function wG(g,w){return g!=null&&Mb(g,w,Y3)}function ty(g,w){return g!=null&&Mb(g,w,Z3)}var SG=_b(function(g,w,T){w!=null&&typeof w.toString!="function"&&(w=af.call(w)),g[w]=T},ry(Qr)),bG=_b(function(g,w,T){w!=null&&typeof w.toString!="function"&&(w=af.call(w)),Se.call(g,w)?g[w].push(T):g[w]=[T]},Ft),AG=ie(Pu);function fr(g){return qr(g)?BS(g):Ag(g)}function Kr(g){return qr(g)?BS(g,!0):rz(g)}function TG(g,w){var T={};return w=Ft(w,3),ga(g,function(I,k,V){da(T,w(I,k,V),I)}),T}function CG(g,w){var T={};return w=Ft(w,3),ga(g,function(I,k,V){da(T,k,w(I,k,V))}),T}var MG=al(function(g,w,T){_f(g,w,T)}),u2=al(function(g,w,T,I){_f(g,w,T,I)}),LG=ja(function(g,w){var T={};if(g==null)return T;var I=!1;w=Be(w,function(V){return V=Pi(V,g),I||(I=V.length>1),V}),ya(g,zg(g),T),I&&(T=Tn(T,v|p|d,bz));for(var k=w.length;k--;)Ig(T,w[k]);return T});function DG(g,w){return c2(g,kf(Ft(w)))}var IG=ja(function(g,w){return g==null?{}:az(g,w)});function c2(g,w){if(g==null)return{};var T=Be(zg(g),function(I){return[I]});return w=Ft(w),tb(g,T,function(I,k){return w(I,k[0])})}function PG(g,w,T){w=Pi(w,g);var I=-1,k=w.length;for(k||(k=1,g=t);++I<k;){var V=g==null?t:g[qn(w[I])];V===t&&(I=k,V=T),g=Ka(V)?V.call(g):V}return g}function RG(g,w,T){return g==null?g:Eu(g,w,T)}function EG(g,w,T,I){return I=typeof I=="function"?I:t,g==null?g:Eu(g,w,T,I)}var h2=Sb(fr),f2=Sb(Kr);function kG(g,w,T){var I=qt(g),k=I||Ei(g)||sl(g);if(w=Ft(w,4),T==null){var V=g&&g.constructor;k?T=I?new V:[]:ze(g)?T=Ka(V)?nl(lf(g)):{}:T={}}return(k?cn:ga)(g,function(H,Z,$){return w(T,H,Z,$)}),T}function OG(g,w){return g==null?!0:Ig(g,w)}function NG(g,w,T){return g==null?g:ib(g,w,Eg(T))}function BG(g,w,T,I){return I=typeof I=="function"?I:t,g==null?g:ib(g,w,Eg(T),I)}function ll(g){return g==null?[]:hg(g,fr(g))}function zG(g){return g==null?[]:hg(g,Kr(g))}function VG(g,w,T){return T===t&&(T=w,w=t),T!==t&&(T=Ln(T),T=T===T?T:0),w!==t&&(w=Ln(w),w=w===w?w:0),Po(Ln(g),w,T)}function FG(g,w,T){return w=Qa(w),T===t?(T=w,w=0):T=Qa(T),g=Ln(g),X3(g,w,T)}function GG(g,w,T){if(T&&typeof T!="boolean"&&Or(g,w,T)&&(w=T=t),T===t&&(typeof w=="boolean"?(T=w,w=t):typeof g=="boolean"&&(T=g,g=t)),g===t&&w===t?(g=0,w=1):(g=Qa(g),w===t?(w=g,g=0):w=Qa(w)),g>w){var I=g;g=w,w=I}if(T||g%1||w%1){var k=OS();return Ar(g+k*(w-g+x5("1e-"+((k+"").length-1))),w)}return Mg(g,w)}var HG=il(function(g,w,T){return w=w.toLowerCase(),g+(T?v2(w):w)});function v2(g){return ey(be(g).toLowerCase())}function p2(g){return g=be(g),g&&g.replace(YB,E5).replace(c5,"")}function WG(g,w,T){g=be(g),w=fn(w);var I=g.length;T=T===t?I:Po(ee(T),0,I);var k=T;return T-=w.length,T>=0&&g.slice(T,k)==w}function UG(g){return g=be(g),g&&CB.test(g)?g.replace(Ww,k5):g}function YG(g){return g=be(g),g&&RB.test(g)?g.replace(jd,"\\$&"):g}var ZG=il(function(g,w,T){return g+(T?"-":"")+w.toLowerCase()}),XG=il(function(g,w,T){return g+(T?" ":"")+w.toLowerCase()}),$G=gb("toLowerCase");function jG(g,w,T){g=be(g),w=ee(w);var I=w?Qs(g):0;if(!w||I>=w)return g;var k=(w-I)/2;return Tf(ff(k),T)+g+Tf(hf(k),T)}function qG(g,w,T){g=be(g),w=ee(w);var I=w?Qs(g):0;return w&&I<w?g+Tf(w-I,T):g}function KG(g,w,T){g=be(g),w=ee(w);var I=w?Qs(g):0;return w&&I<w?Tf(w-I,T)+g:g}function QG(g,w,T){return T||w==null?w=0:w&&(w=+w),o3(be(g).replace(qd,""),w||0)}function JG(g,w,T){return(T?Or(g,w,T):w===t)?w=1:w=ee(w),Lg(be(g),w)}function t4(){var g=arguments,w=be(g[0]);return g.length<3?w:w.replace(g[1],g[2])}var e4=il(function(g,w,T){return g+(T?"_":"")+w.toLowerCase()});function r4(g,w,T){return T&&typeof T!="number"&&Or(g,w,T)&&(w=T=t),T=T===t?rt:T>>>0,T?(g=be(g),g&&(typeof w=="string"||w!=null&&!Kg(w))&&(w=fn(w),!w&&Ks(g))?Ri($n(g),0,T):g.split(w,T)):[]}var n4=il(function(g,w,T){return g+(T?" ":"")+ey(w)});function a4(g,w,T){return g=be(g),T=T==null?0:Po(ee(T),0,g.length),w=fn(w),g.slice(T,T+w.length)==w}function i4(g,w,T){var I=B.templateSettings;T&&Or(g,w,T)&&(w=t),g=be(g),w=Qg({},w,I,bb);var k=Qg({},w.imports,I.imports,bb),V=fr(k),H=hg(k,V);cn(V,function(Vt){if(Yw.test(Vt))throw new Xt(l)});var Z,$,it=0,ot=w.interpolate||jh,lt="__p += '",xt=vg((w.escape||jh).source+"|"+ot.source+"|"+(ot===Uw?VB:jh).source+"|"+(w.evaluate||jh).source+"|$","g"),It="//# sourceURL="+(Se.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++d5+"]")+`
|
|
4
|
+
`;g.replace(xt,function(Vt,le,pe,pn,Nr,dn){return pe||(pe=pn),lt+=g.slice(it,dn).replace(ZB,O5),le&&(Z=!0,lt+=`' +
|
|
5
|
+
__e(`+le+`) +
|
|
6
|
+
'`),Nr&&($=!0,lt+=`';
|
|
7
|
+
`+Nr+`;
|
|
8
|
+
__p += '`),pe&&(lt+=`' +
|
|
9
|
+
((__t = (`+pe+`)) == null ? '' : __t) +
|
|
10
|
+
'`),it=dn+Vt.length,Vt}),lt+=`';
|
|
11
|
+
`;var Ht=Se.call(w,"variable")&&w.variable;if(!Ht)lt=`with (obj) {
|
|
12
|
+
`+lt+`
|
|
13
|
+
}
|
|
14
|
+
`;else if(Yw.test(Ht))throw new Xt(s);lt=($?lt.replace(ve,""):lt).replace(Je,"$1").replace(AB,"$1;"),lt="function("+(Ht||"obj")+`) {
|
|
15
|
+
`+(Ht?"":`obj || (obj = {});
|
|
16
|
+
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+($?`, __j = Array.prototype.join;
|
|
17
|
+
function print() { __p += __j.call(arguments, '') }
|
|
18
|
+
`:`;
|
|
19
|
+
`)+lt+`return __p
|
|
20
|
+
}`;var ne=g2(function(){return _e(V,It+"return "+lt).apply(t,H)});if(ne.source=lt,qg(ne))throw ne;return ne}function o4(g){return be(g).toLowerCase()}function s4(g){return be(g).toUpperCase()}function l4(g,w,T){if(g=be(g),g&&(T||w===t))return AS(g);if(!g||!(w=fn(w)))return g;var I=$n(g),k=$n(w),V=TS(I,k),H=CS(I,k)+1;return Ri(I,V,H).join("")}function u4(g,w,T){if(g=be(g),g&&(T||w===t))return g.slice(0,LS(g)+1);if(!g||!(w=fn(w)))return g;var I=$n(g),k=CS(I,$n(w))+1;return Ri(I,0,k).join("")}function c4(g,w,T){if(g=be(g),g&&(T||w===t))return g.replace(qd,"");if(!g||!(w=fn(w)))return g;var I=$n(g),k=TS(I,$n(w));return Ri(I,k).join("")}function h4(g,w){var T=P,I=E;if(ze(w)){var k="separator"in w?w.separator:k;T="length"in w?ee(w.length):T,I="omission"in w?fn(w.omission):I}g=be(g);var V=g.length;if(Ks(g)){var H=$n(g);V=H.length}if(T>=V)return g;var Z=T-Qs(I);if(Z<1)return I;var $=H?Ri(H,0,Z).join(""):g.slice(0,Z);if(k===t)return $+I;if(H&&(Z+=$.length-Z),Kg(k)){if(g.slice(Z).search(k)){var it,ot=$;for(k.global||(k=vg(k.source,be(Zw.exec(k))+"g")),k.lastIndex=0;it=k.exec(ot);)var lt=it.index;$=$.slice(0,lt===t?Z:lt)}}else if(g.indexOf(fn(k),Z)!=Z){var xt=$.lastIndexOf(k);xt>-1&&($=$.slice(0,xt))}return $+I}function f4(g){return g=be(g),g&&TB.test(g)?g.replace(Hw,H5):g}var v4=il(function(g,w,T){return g+(T?" ":"")+w.toUpperCase()}),ey=gb("toUpperCase");function d2(g,w,T){return g=be(g),w=T?t:w,w===t?B5(g)?Y5(g):L5(g):g.match(w)||[]}var g2=ie(function(g,w){try{return un(g,t,w)}catch(T){return qg(T)?T:new Xt(T)}}),p4=ja(function(g,w){return cn(w,function(T){T=qn(T),da(g,T,$g(g[T],g))}),g});function d4(g){var w=g==null?0:g.length,T=Ft();return g=w?Be(g,function(I){if(typeof I[1]!="function")throw new bn(o);return[T(I[0]),I[1]]}):[],ie(function(I){for(var k=-1;++k<w;){var V=g[k];if(un(V[0],this,I))return un(V[1],this,I)}})}function g4(g){return H3(Tn(g,v))}function ry(g){return function(){return g}}function y4(g,w){return g==null||g!==g?w:g}var m4=mb(),_4=mb(!0);function Qr(g){return g}function ny(g){return $S(typeof g=="function"?g:Tn(g,v))}function x4(g){return qS(Tn(g,v))}function w4(g,w){return KS(g,Tn(w,v))}var S4=ie(function(g,w){return function(T){return Pu(T,g,w)}}),b4=ie(function(g,w){return function(T){return Pu(g,T,w)}});function ay(g,w,T){var I=fr(w),k=mf(w,I);T==null&&!(ze(w)&&(k.length||!I.length))&&(T=w,w=g,g=this,k=mf(w,fr(w)));var V=!(ze(T)&&"chain"in T)||!!T.chain,H=Ka(g);return cn(k,function(Z){var $=w[Z];g[Z]=$,H&&(g.prototype[Z]=function(){var it=this.__chain__;if(V||it){var ot=g(this.__wrapped__),lt=ot.__actions__=jr(this.__actions__);return lt.push({func:$,args:arguments,thisArg:g}),ot.__chain__=it,ot}return $.apply(g,Ci([this.value()],arguments))})}),g}function A4(){return gr._===this&&(gr._=K5),this}function iy(){}function T4(g){return g=ee(g),ie(function(w){return QS(w,g)})}var C4=Og(Be),M4=Og(_S),L4=Og(og);function y2(g){return Hg(g)?sg(qn(g)):iz(g)}function D4(g){return function(w){return g==null?t:Ro(g,w)}}var I4=xb(),P4=xb(!0);function oy(){return[]}function sy(){return!1}function R4(){return{}}function E4(){return""}function k4(){return!0}function O4(g,w){if(g=ee(g),g<1||g>Y)return[];var T=rt,I=Ar(g,rt);w=Ft(w),g-=rt;for(var k=cg(I,w);++T<g;)w(T);return k}function N4(g){return qt(g)?Be(g,qn):vn(g)?[g]:jr(Nb(be(g)))}function B4(g){var w=++j5;return be(g)+w}var z4=Af(function(g,w){return g+w},0),V4=Ng("ceil"),F4=Af(function(g,w){return g/w},1),G4=Ng("floor");function H4(g){return g&&g.length?yf(g,Qr,wg):t}function W4(g,w){return g&&g.length?yf(g,Ft(w,2),wg):t}function U4(g){return SS(g,Qr)}function Y4(g,w){return SS(g,Ft(w,2))}function Z4(g){return g&&g.length?yf(g,Qr,Tg):t}function X4(g,w){return g&&g.length?yf(g,Ft(w,2),Tg):t}var $4=Af(function(g,w){return g*w},1),j4=Ng("round"),q4=Af(function(g,w){return g-w},0);function K4(g){return g&&g.length?ug(g,Qr):0}function Q4(g,w){return g&&g.length?ug(g,Ft(w,2)):0}return B.after=wF,B.ary=Xb,B.assign=lG,B.assignIn=s2,B.assignInWith=l2,B.assignWith=Qg,B.at=uG,B.before=$b,B.bind=$g,B.bindAll=p4,B.bindKey=jb,B.castArray=EF,B.chain=Ub,B.chunk=Hz,B.compact=Wz,B.concat=Uz,B.cond=d4,B.conforms=g4,B.constant=ry,B.countBy=QV,B.create=cG,B.curry=qb,B.curryRight=Kb,B.debounce=Qb,B.defaults=hG,B.defaultsDeep=fG,B.defer=SF,B.delay=bF,B.difference=Yz,B.differenceBy=Zz,B.differenceWith=Xz,B.drop=$z,B.dropRight=jz,B.dropRightWhile=qz,B.dropWhile=Kz,B.fill=Qz,B.filter=tF,B.flatMap=nF,B.flatMapDeep=aF,B.flatMapDepth=iF,B.flatten=Fb,B.flattenDeep=Jz,B.flattenDepth=tV,B.flip=AF,B.flow=m4,B.flowRight=_4,B.fromPairs=eV,B.functions=_G,B.functionsIn=xG,B.groupBy=oF,B.initial=nV,B.intersection=aV,B.intersectionBy=iV,B.intersectionWith=oV,B.invert=SG,B.invertBy=bG,B.invokeMap=lF,B.iteratee=ny,B.keyBy=uF,B.keys=fr,B.keysIn=Kr,B.map=Pf,B.mapKeys=TG,B.mapValues=CG,B.matches=x4,B.matchesProperty=w4,B.memoize=Ef,B.merge=MG,B.mergeWith=u2,B.method=S4,B.methodOf=b4,B.mixin=ay,B.negate=kf,B.nthArg=T4,B.omit=LG,B.omitBy=DG,B.once=TF,B.orderBy=cF,B.over=C4,B.overArgs=CF,B.overEvery=M4,B.overSome=L4,B.partial=jg,B.partialRight=Jb,B.partition=hF,B.pick=IG,B.pickBy=c2,B.property=y2,B.propertyOf=D4,B.pull=cV,B.pullAll=Hb,B.pullAllBy=hV,B.pullAllWith=fV,B.pullAt=vV,B.range=I4,B.rangeRight=P4,B.rearg=MF,B.reject=pF,B.remove=pV,B.rest=LF,B.reverse=Zg,B.sampleSize=gF,B.set=RG,B.setWith=EG,B.shuffle=yF,B.slice=dV,B.sortBy=xF,B.sortedUniq=SV,B.sortedUniqBy=bV,B.split=r4,B.spread=DF,B.tail=AV,B.take=TV,B.takeRight=CV,B.takeRightWhile=MV,B.takeWhile=LV,B.tap=WV,B.throttle=IF,B.thru=If,B.toArray=a2,B.toPairs=h2,B.toPairsIn=f2,B.toPath=N4,B.toPlainObject=o2,B.transform=kG,B.unary=PF,B.union=DV,B.unionBy=IV,B.unionWith=PV,B.uniq=RV,B.uniqBy=EV,B.uniqWith=kV,B.unset=OG,B.unzip=Xg,B.unzipWith=Wb,B.update=NG,B.updateWith=BG,B.values=ll,B.valuesIn=zG,B.without=OV,B.words=d2,B.wrap=RF,B.xor=NV,B.xorBy=BV,B.xorWith=zV,B.zip=VV,B.zipObject=FV,B.zipObjectDeep=GV,B.zipWith=HV,B.entries=h2,B.entriesIn=f2,B.extend=s2,B.extendWith=l2,ay(B,B),B.add=z4,B.attempt=g2,B.camelCase=HG,B.capitalize=v2,B.ceil=V4,B.clamp=VG,B.clone=kF,B.cloneDeep=NF,B.cloneDeepWith=BF,B.cloneWith=OF,B.conformsTo=zF,B.deburr=p2,B.defaultTo=y4,B.divide=F4,B.endsWith=WG,B.eq=Kn,B.escape=UG,B.escapeRegExp=YG,B.every=JV,B.find=eF,B.findIndex=zb,B.findKey=vG,B.findLast=rF,B.findLastIndex=Vb,B.findLastKey=pG,B.floor=G4,B.forEach=Yb,B.forEachRight=Zb,B.forIn=dG,B.forInRight=gG,B.forOwn=yG,B.forOwnRight=mG,B.get=Jg,B.gt=VF,B.gte=FF,B.has=wG,B.hasIn=ty,B.head=Gb,B.identity=Qr,B.includes=sF,B.indexOf=rV,B.inRange=FG,B.invoke=AG,B.isArguments=Oo,B.isArray=qt,B.isArrayBuffer=GF,B.isArrayLike=qr,B.isArrayLikeObject=Ye,B.isBoolean=HF,B.isBuffer=Ei,B.isDate=WF,B.isElement=UF,B.isEmpty=YF,B.isEqual=ZF,B.isEqualWith=XF,B.isError=qg,B.isFinite=$F,B.isFunction=Ka,B.isInteger=t2,B.isLength=Of,B.isMap=e2,B.isMatch=jF,B.isMatchWith=qF,B.isNaN=KF,B.isNative=QF,B.isNil=tG,B.isNull=JF,B.isNumber=r2,B.isObject=ze,B.isObjectLike=Ge,B.isPlainObject=Bu,B.isRegExp=Kg,B.isSafeInteger=eG,B.isSet=n2,B.isString=Nf,B.isSymbol=vn,B.isTypedArray=sl,B.isUndefined=rG,B.isWeakMap=nG,B.isWeakSet=aG,B.join=sV,B.kebabCase=ZG,B.last=Mn,B.lastIndexOf=lV,B.lowerCase=XG,B.lowerFirst=$G,B.lt=iG,B.lte=oG,B.max=H4,B.maxBy=W4,B.mean=U4,B.meanBy=Y4,B.min=Z4,B.minBy=X4,B.stubArray=oy,B.stubFalse=sy,B.stubObject=R4,B.stubString=E4,B.stubTrue=k4,B.multiply=$4,B.nth=uV,B.noConflict=A4,B.noop=iy,B.now=Rf,B.pad=jG,B.padEnd=qG,B.padStart=KG,B.parseInt=QG,B.random=GG,B.reduce=fF,B.reduceRight=vF,B.repeat=JG,B.replace=t4,B.result=PG,B.round=j4,B.runInContext=X,B.sample=dF,B.size=mF,B.snakeCase=e4,B.some=_F,B.sortedIndex=gV,B.sortedIndexBy=yV,B.sortedIndexOf=mV,B.sortedLastIndex=_V,B.sortedLastIndexBy=xV,B.sortedLastIndexOf=wV,B.startCase=n4,B.startsWith=a4,B.subtract=q4,B.sum=K4,B.sumBy=Q4,B.template=i4,B.times=O4,B.toFinite=Qa,B.toInteger=ee,B.toLength=i2,B.toLower=o4,B.toNumber=Ln,B.toSafeInteger=sG,B.toString=be,B.toUpper=s4,B.trim=l4,B.trimEnd=u4,B.trimStart=c4,B.truncate=h4,B.unescape=f4,B.uniqueId=B4,B.upperCase=v4,B.upperFirst=ey,B.each=Yb,B.eachRight=Zb,B.first=Gb,ay(B,(function(){var g={};return ga(B,function(w,T){Se.call(B.prototype,T)||(g[T]=w)}),g})(),{chain:!1}),B.VERSION=n,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){B[g].placeholder=B}),cn(["drop","take"],function(g,w){ce.prototype[g]=function(T){T=T===t?1:er(ee(T),0);var I=this.__filtered__&&!w?new ce(this):this.clone();return I.__filtered__?I.__takeCount__=Ar(T,I.__takeCount__):I.__views__.push({size:Ar(T,rt),type:g+(I.__dir__<0?"Right":"")}),I},ce.prototype[g+"Right"]=function(T){return this.reverse()[g](T).reverse()}}),cn(["filter","map","takeWhile"],function(g,w){var T=w+1,I=T==z||T==U;ce.prototype[g]=function(k){var V=this.clone();return V.__iteratees__.push({iteratee:Ft(k,3),type:T}),V.__filtered__=V.__filtered__||I,V}}),cn(["head","last"],function(g,w){var T="take"+(w?"Right":"");ce.prototype[g]=function(){return this[T](1).value()[0]}}),cn(["initial","tail"],function(g,w){var T="drop"+(w?"":"Right");ce.prototype[g]=function(){return this.__filtered__?new ce(this):this[T](1)}}),ce.prototype.compact=function(){return this.filter(Qr)},ce.prototype.find=function(g){return this.filter(g).head()},ce.prototype.findLast=function(g){return this.reverse().find(g)},ce.prototype.invokeMap=ie(function(g,w){return typeof g=="function"?new ce(this):this.map(function(T){return Pu(T,g,w)})}),ce.prototype.reject=function(g){return this.filter(kf(Ft(g)))},ce.prototype.slice=function(g,w){g=ee(g);var T=this;return T.__filtered__&&(g>0||w<0)?new ce(T):(g<0?T=T.takeRight(-g):g&&(T=T.drop(g)),w!==t&&(w=ee(w),T=w<0?T.dropRight(-w):T.take(w-g)),T)},ce.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},ce.prototype.toArray=function(){return this.take(rt)},ga(ce.prototype,function(g,w){var T=/^(?:filter|find|map|reject)|While$/.test(w),I=/^(?:head|last)$/.test(w),k=B[I?"take"+(w=="last"?"Right":""):w],V=I||/^find/.test(w);k&&(B.prototype[w]=function(){var H=this.__wrapped__,Z=I?[1]:arguments,$=H instanceof ce,it=Z[0],ot=$||qt(H),lt=function(le){var pe=k.apply(B,Ci([le],Z));return I&&xt?pe[0]:pe};ot&&T&&typeof it=="function"&&it.length!=1&&($=ot=!1);var xt=this.__chain__,It=!!this.__actions__.length,Ht=V&&!xt,ne=$&&!It;if(!V&&ot){H=ne?H:new ce(this);var Vt=g.apply(H,Z);return Vt.__actions__.push({func:If,args:[lt],thisArg:t}),new An(Vt,xt)}return Ht&&ne?g.apply(this,Z):(Vt=this.thru(lt),Ht?I?Vt.value()[0]:Vt.value():Vt)})}),cn(["pop","push","shift","sort","splice","unshift"],function(g){var w=ef[g],T=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",I=/^(?:pop|shift)$/.test(g);B.prototype[g]=function(){var k=arguments;if(I&&!this.__chain__){var V=this.value();return w.apply(qt(V)?V:[],k)}return this[T](function(H){return w.apply(qt(H)?H:[],k)})}}),ga(ce.prototype,function(g,w){var T=B[w];if(T){var I=T.name+"";Se.call(rl,I)||(rl[I]=[]),rl[I].push({name:w,func:T})}}),rl[bf(t,f).name]=[{name:"wrapper",func:t}],ce.prototype.clone=v3,ce.prototype.reverse=p3,ce.prototype.value=d3,B.prototype.at=UV,B.prototype.chain=YV,B.prototype.commit=ZV,B.prototype.next=XV,B.prototype.plant=jV,B.prototype.reverse=qV,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=KV,B.prototype.first=B.prototype.head,Au&&(B.prototype[Au]=$V),B}),Js=Z5();Mo?((Mo.exports=Js)._=Js,rg._=Js):gr._=Js}).call(nH)})(gc,gc.exports)),gc.exports}var F=aH(),_r=[];for(var ly=0;ly<256;++ly)_r.push((ly+256).toString(16).slice(1));function iH(r,e=0){return(_r[r[e+0]]+_r[r[e+1]]+_r[r[e+2]]+_r[r[e+3]]+"-"+_r[r[e+4]]+_r[r[e+5]]+"-"+_r[r[e+6]]+_r[r[e+7]]+"-"+_r[r[e+8]]+_r[r[e+9]]+"-"+_r[r[e+10]]+_r[r[e+11]]+_r[r[e+12]]+_r[r[e+13]]+_r[r[e+14]]+_r[r[e+15]]).toLowerCase()}var zf,oH=new Uint8Array(16);function sH(){if(!zf&&(zf=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zf(oH)}var lH=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const x2={randomUUID:lH};function uH(r,e,t){if(x2.randomUUID&&!r)return x2.randomUUID();r=r||{};var n=r.random||(r.rng||sH)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,iH(n)}var F0=function(r,e){return F0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},F0(r,e)};function j(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");F0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var cH=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),hH=(function(){function r(){this.browser=new cH,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=typeof window<"u"}return r})(),Yt=new hH;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Yt.wxa=!0,Yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Yt.worker=!0:!Yt.hasGlobalWindow||"Deno"in window?(Yt.node=!0,Yt.svgSupported=!0):fH(navigator.userAgent,Yt);function fH(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var R1=12,BI="sans-serif",so=R1+"px "+BI,vH=20,pH=100,dH="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function gH(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-vH)/pH;e[n]=a}return e}var yH=gH(dH),lo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=lo.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||so),r.measureText(t);t=t||"",n=n||so;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||R1,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=yH[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},zI=Oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),VI=Oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),iu=Object.prototype.toString,sd=Array.prototype,mH=sd.forEach,_H=sd.filter,E1=sd.slice,xH=sd.map,w2=(function(){}).constructor,Vf=w2?w2.prototype:null,k1="__proto__",wH=2311;function FI(){return wH++}function O1(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Ct(r){if(r==null||typeof r!="object")return r;var e=r,t=iu.call(r);if(t==="[object Array]"){if(!Ic(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=Ct(r[n])}}else if(VI[t]){if(!Ic(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!zI[t]&&!Ic(r)&&!$l(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==k1&&(e[o]=Ct(r[o]))}return e}function Ot(r,e,t){if(!Tt(e)||!Tt(r))return t?Ct(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==k1){var a=r[n],i=e[n];Tt(i)&&Tt(a)&&!tt(i)&&!tt(a)&&!$l(i)&&!$l(a)&&!S2(i)&&!S2(a)&&!Ic(i)&&!Ic(a)?Ot(a,i,t):(t||!(n in r))&&(r[n]=Ct(e[n]))}return r}function N1(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=Ot(t,r[n],e);return t}function K(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==k1&&(r[t]=e[t]);return r}function bt(r,e,t){for(var n=jt(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function Gt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function SH(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function qe(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else bt(r,e,t)}function Rr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function R(r,e,t){if(r&&e)if(r.forEach&&r.forEach===mH)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function et(r,e,t){if(!r)return[];if(!e)return B1(r);if(r.map&&r.map===xH)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Oa(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function fe(r,e,t){if(!r)return[];if(!e)return B1(r);if(r.filter&&r.filter===_H)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function bH(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function jt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function AH(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(E1.call(arguments)))}}var ft=Vf&&wt(Vf.bind)?Vf.call.bind(Vf.bind):AH;function Et(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(E1.call(arguments)))}}function tt(r){return Array.isArray?Array.isArray(r):iu.call(r)==="[object Array]"}function wt(r){return typeof r=="function"}function ht(r){return typeof r=="string"}function G0(r){return iu.call(r)==="[object String]"}function ae(r){return typeof r=="number"}function Tt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function S2(r){return!!zI[iu.call(r)]}function on(r){return!!VI[iu.call(r)]}function $l(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ld(r){return r.colorStops!=null}function TH(r){return r.image!=null}function CH(r){return iu.call(r)==="[object RegExp]"}function Zc(r){return r!==r}function pr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function Rt(r,e){return r??e}function Ea(r,e,t){return r??e??t}function B1(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return E1.apply(r,e)}function z1(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Ur(r,e){if(!r)throw new Error(e)}function oa(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var GI="__ec_primitive__";function cp(r){r[GI]=!0}function Ic(r){return r[GI]}var MH=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return jt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),HI=typeof Map=="function";function LH(){return HI?new Map:new MH}var DH=(function(){function r(e){var t=tt(e);this.data=LH();var n=this;e instanceof r?e.each(a):e&&R(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return HI?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function yt(r){return new DH(r)}function Xc(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function ud(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&K(t,e),t}function WI(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(r,e){return r.hasOwnProperty(e)}function We(){}var Hv=180/Math.PI;var H0=function(r,e){return H0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},H0(r,e)};function Le(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");H0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Fs(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function zr(r,e){return r[0]=e[0],r[1]=e[1],r}function li(r){return[r[0],r[1]]}function IH(r,e,t){return r[0]=e,r[1]=t,r}function b2(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function W0(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function gs(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function U0(r){return Math.sqrt(PH(r))}function PH(r){return r[0]*r[0]+r[1]*r[1]}function Wv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ou(r,e){var t=U0(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Y0(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var $i=Y0;function RH(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var As=RH;function Uv(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function wr(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function ji(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function qi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ul=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),EH=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ul(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new ul(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ul(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ul(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ul(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ul(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Yn=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),kH=Math.log(2);function Z0(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/kH);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var h=0,v=0,p=0;v<s;v++){var d=1<<v;d&a||(h+=(p%2?-1:1)*r[t][v]*Z0(r,e-1,c,u,a|d,i),p++)}return i[o]=h,h}function A2(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=Z0(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Z0(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,c){var h=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/h,l[1]=(u*i[3]+c*i[4]+i[5])/h}}}var T2="___zrEVENTSAVED",uy=[];function OH(r,e,t,n,a){return X0(uy,e,n,a,!0)&&X0(r,t,uy[0],uy[1])}function X0(r,e,t,n,a){if(e.getBoundingClientRect&&Yt.domSupported&&!UI(e)){var i=e[T2]||(e[T2]={}),o=NH(e,i),s=BH(o,i,a);if(s)return s(r,t,n),!0}return!1}function NH(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function BH(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),h=2*u,v=c.left,p=c.top;o.push(v,p),l=l&&i&&v===i[h]&&p===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?A2(s,o):A2(o,s))}function UI(r){return r.nodeName.toUpperCase()==="CANVAS"}var zH=/([&<>"'])/g,VH={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gr(r){return r==null?"":(r+"").replace(zH,function(e,t){return VH[t]})}var FH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cy=[],GH=Yt.browser.firefox&&+Yt.browser.version.split(".")[0]<39;function $0(r,e,t,n){return t=t||{},n?C2(r,e,t):GH&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):C2(r,e,t),t}function C2(r,e,t){if(Yt.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(UI(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(X0(cy,r,n,a)){t.zrX=cy[0],t.zrY=cy[1];return}}t.zrX=t.zrY=0}function V1(r){return r||window.event}function kn(r,e,t){if(e=V1(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&$0(r,o,e,t)}else{$0(r,e,e,t);var i=HH(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&FH.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function HH(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function j0(r,e,t,n){r.addEventListener(e,t,n)}function WH(r,e,t,n){r.removeEventListener(e,t,n)}var vi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function M2(r){return r.which===2||r.which===3}var UH=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=$0(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in hy)if(hy.hasOwnProperty(t)){var n=hy[t](this._track,e);if(n)return n}},r})();function L2(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function YH(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var hy={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=L2(n)/L2(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=YH(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function _n(){return[1,0,0,1,0,0]}function cd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function F1(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function ui(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Na(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Gs(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),h=Math.cos(t);return r[0]=a*h+s*c,r[1]=-a*c+s*h,r[2]=i*h+l*c,r[3]=-i*c+h*l,r[4]=h*(o-n[0])+c*(u-n[1])+n[0],r[5]=h*(u-n[1])-c*(o-n[0])+n[1],r}function G1(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function su(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function ZH(r){var e=_n();return F1(e,r),e}var Bt=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.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}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),Ff=Math.min,Gf=Math.max,No=new Bt,Bo=new Bt,zo=new Bt,Vo=new Bt,zu=new Bt,Vu=new Bt,zt=(function(){function r(e,t,n,a){n<0&&(e=e+n,n=-n),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=n,this.height=a}return r.prototype.union=function(e){var t=Ff(e.x,this.x),n=Ff(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Gf(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Gf(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,a=e.height/t.height,i=_n();return Na(i,i,[-t.x,-t.y]),G1(i,i,[n,a]),Na(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,v=!(i<l||u<a||s<c||h<o);if(t){var p=1/0,d=0,m=Math.abs(i-l),x=Math.abs(u-a),y=Math.abs(s-c),f=Math.abs(h-o),_=Math.min(m,x),S=Math.min(y,f);i<l||u<a?_>d&&(d=_,m<x?Bt.set(Vu,-m,0):Bt.set(Vu,x,0)):_<p&&(p=_,m<x?Bt.set(zu,m,0):Bt.set(zu,-x,0)),s<c||h<o?S>d&&(d=S,y<f?Bt.set(Vu,0,-y):Bt.set(Vu,0,f)):_<p&&(p=_,y<f?Bt.set(zu,0,y):Bt.set(zu,0,-f))}return t&&Bt.copy(t,v?zu:Vu),v},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}No.x=zo.x=t.x,No.y=Vo.y=t.y,Bo.x=Vo.x=t.x+t.width,Bo.y=zo.y=t.y+t.height,No.transform(n),Vo.transform(n),Bo.transform(n),zo.transform(n),e.x=Ff(No.x,Bo.x,zo.x,Vo.x),e.y=Ff(No.y,Bo.y,zo.y,Vo.y);var l=Gf(No.x,Bo.x,zo.x,Vo.x),u=Gf(No.y,Bo.y,zo.y,Vo.y);e.width=l-e.x,e.height=u-e.y},r})(),YI="silent";function XH(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:$H}}function $H(){vi(this.event)}var jH=(function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Yn),Fu=(function(){function r(e,t){this.x=e,this.y=t}return r})(),qH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fy=new zt(0,0,0,0),ZI=(function(r){Le(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Fu(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new jH,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new EH(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(R(qH,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=XI(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Fu(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Fu(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=XH(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new Fu(t,n);if(D2(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new zt(t-u,n-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fy.copy(v.getBoundingRect()),v.transform&&fy.applyTransform(v.transform),fy.intersect(c)&&s.push(v))}if(s.length)for(var p=4,d=Math.PI/12,m=Math.PI*2,x=0;x<u;x+=p)for(var y=0;y<m;y+=d){var f=t+x*Math.cos(y),_=n+x*Math.sin(y);if(D2(s,o,f,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new UH);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Fu;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(Yn);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ZI.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=XI(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||$i(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function KH(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?YI:!0}return!1}function D2(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=KH(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==YI)){e.target=o;break}}}function XI(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var $I=32,Gu=7;function QH(r){for(var e=0;r>=$I;)e|=r&1,r>>=1;return r+e}function I2(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;JH(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function JH(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function P2(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function vy(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function py(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function tW(r,e){var t=Gu,n,a,i=0,o=[];n=[],a=[];function s(p,d){n[i]=p,a[i]=d,i+=1}function l(){for(;i>1;){var p=i-2;if(p>=1&&a[p-1]<=a[p]+a[p+1]||p>=2&&a[p-2]<=a[p]+a[p-1])a[p-1]<a[p+1]&&p--;else if(a[p]>a[p+1])break;c(p)}}function u(){for(;i>1;){var p=i-2;p>0&&a[p-1]<a[p+1]&&p--,c(p)}}function c(p){var d=n[p],m=a[p],x=n[p+1],y=a[p+1];a[p]=m+y,p===i-3&&(n[p+1]=n[p+2],a[p+1]=a[p+2]),i--;var f=py(r[x],r,d,m,0,e);d+=f,m-=f,m!==0&&(y=vy(r[d+m-1],r,x,y,y-1,e),y!==0&&(m<=y?h(d,m,x,y):v(d,m,x,y)))}function h(p,d,m,x){var y=0;for(y=0;y<d;y++)o[y]=r[p+y];var f=0,_=m,S=p;if(r[S++]=r[_++],--x===0){for(y=0;y<d;y++)r[S+y]=o[f+y];return}if(d===1){for(y=0;y<x;y++)r[S+y]=r[_+y];r[S+x]=o[f];return}for(var b=t,A,C,M;;){A=0,C=0,M=!1;do if(e(r[_],o[f])<0){if(r[S++]=r[_++],C++,A=0,--x===0){M=!0;break}}else if(r[S++]=o[f++],A++,C=0,--d===1){M=!0;break}while((A|C)<b);if(M)break;do{if(A=py(r[_],o,f,d,0,e),A!==0){for(y=0;y<A;y++)r[S+y]=o[f+y];if(S+=A,f+=A,d-=A,d<=1){M=!0;break}}if(r[S++]=r[_++],--x===0){M=!0;break}if(C=vy(o[f],r,_,x,0,e),C!==0){for(y=0;y<C;y++)r[S+y]=r[_+y];if(S+=C,_+=C,x-=C,x===0){M=!0;break}}if(r[S++]=o[f++],--d===1){M=!0;break}b--}while(A>=Gu||C>=Gu);if(M)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y<x;y++)r[S+y]=r[_+y];r[S+x]=o[f]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[f+y]}}function v(p,d,m,x){var y=0;for(y=0;y<x;y++)o[y]=r[m+y];var f=p+d-1,_=x-1,S=m+x-1,b=0,A=0;if(r[S--]=r[f--],--d===0){for(b=S-(x-1),y=0;y<x;y++)r[b+y]=o[y];return}if(x===1){for(S-=d,f-=d,A=S+1,b=f+1,y=d-1;y>=0;y--)r[A+y]=r[b+y];r[S]=o[_];return}for(var C=t;;){var M=0,L=0,D=!1;do if(e(o[_],r[f])<0){if(r[S--]=r[f--],M++,L=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],L++,M=0,--x===1){D=!0;break}while((M|L)<C);if(D)break;do{if(M=d-py(o[_],r,p,d,d-1,e),M!==0){for(S-=M,f-=M,d-=M,A=S+1,b=f+1,y=M-1;y>=0;y--)r[A+y]=r[b+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--x===1){D=!0;break}if(L=x-vy(r[f],o,0,x,x-1,e),L!==0){for(S-=L,_-=L,x-=L,A=S+1,b=_+1,y=0;y<L;y++)r[A+y]=o[b+y];if(x<=1){D=!0;break}}if(r[S--]=r[f--],--d===0){D=!0;break}C--}while(M>=Gu||L>=Gu);if(D)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),x===1){for(S-=d,f-=d,A=S+1,b=f+1,y=d-1;y>=0;y--)r[A+y]=r[b+y];r[S]=o[_]}else{if(x===0)throw new Error;for(b=S-(x-1),y=0;y<x;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yv(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<$I){i=I2(r,t,n,e),P2(r,t,n,t+i,e);return}var o=tW(r,e),s=QH(a);do{if(i=I2(r,t,n,e),i<s){var l=a;l>s&&(l=s),P2(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var yn=1,yc=2,Pl=4,R2=!1;function dy(){R2||(R2=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function E2(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var eW=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=E2}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,Yv(n,E2)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t?t=t.slice():t=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=yn),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(dy(),c.z=0),isNaN(c.z2)&&(dy(),c.z2=0),isNaN(c.zlevel)&&(dy(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=Gt(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),hp;hp=Yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Pc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Pc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Pc.bounceIn(r*2)*.5:Pc.bounceOut(r*2-1)*.5+.5}},Hf=Math.pow,no=Math.sqrt,fp=1e-8,jI=1e-4,k2=no(3),Wf=1/3,Ma=Fs(),zn=Fs(),Hl=Fs();function Ki(r){return r>-fp&&r<fp}function qI(r){return r>fp||r<-fp}function rr(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function O2(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function vp(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,c=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,p=0;if(Ki(c)&&Ki(h))if(Ki(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[p++]=d)}else{var m=h*h-4*c*v;if(Ki(m)){var x=h/c,d=-s/o+x,y=-x/2;d>=0&&d<=1&&(i[p++]=d),y>=0&&y<=1&&(i[p++]=y)}else if(m>0){var f=no(m),_=c*s+1.5*o*(-h+f),S=c*s+1.5*o*(-h-f);_<0?_=-Hf(-_,Wf):_=Hf(_,Wf),S<0?S=-Hf(-S,Wf):S=Hf(S,Wf);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[p++]=d)}else{var b=(2*c*s-3*o*h)/(2*no(c*c*c)),A=Math.acos(b)/3,C=no(c),M=Math.cos(A),d=(-s-2*C*M)/(3*o),y=(-s+C*(M+k2*Math.sin(A)))/(3*o),L=(-s+C*(M-k2*Math.sin(A)))/(3*o);d>=0&&d<=1&&(i[p++]=d),y>=0&&y<=1&&(i[p++]=y),L>=0&&L<=1&&(i[p++]=L)}}return p}function KI(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Ki(o)){if(qI(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Ki(c))a[0]=-i/(2*o);else if(c>0){var h=no(c),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function uo(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,h=(c-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=l,i[7]=n}function QI(r,e,t,n,a,i,o,s,l,u,c){var h,v=.005,p=1/0,d,m,x,y;Ma[0]=l,Ma[1]=u;for(var f=0;f<1;f+=.05)zn[0]=rr(r,t,a,o,f),zn[1]=rr(e,n,i,s,f),x=As(Ma,zn),x<p&&(h=f,p=x);p=1/0;for(var _=0;_<32&&!(v<jI);_++)d=h-v,m=h+v,zn[0]=rr(r,t,a,o,d),zn[1]=rr(e,n,i,s,d),x=As(zn,Ma),d>=0&&x<p?(h=d,p=x):(Hl[0]=rr(r,t,a,o,m),Hl[1]=rr(e,n,i,s,m),y=As(Hl,Ma),m<=1&&y<p?(h=m,p=y):v*=.5);return c&&(c[0]=rr(r,t,a,o,h),c[1]=rr(e,n,i,s,h)),no(p)}function rW(r,e,t,n,a,i,o,s,l){for(var u=r,c=e,h=0,v=1/l,p=1;p<=l;p++){var d=p*v,m=rr(r,t,a,o,d),x=rr(e,n,i,s,d),y=m-u,f=x-c;h+=Math.sqrt(y*y+f*f),u=m,c=x}return h}function vr(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function q0(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function nW(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Ki(i)){if(qI(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Ki(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var h=no(c),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function JI(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function $c(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function tP(r,e,t,n,a,i,o,s,l){var u,c=.005,h=1/0;Ma[0]=o,Ma[1]=s;for(var v=0;v<1;v+=.05){zn[0]=vr(r,t,a,v),zn[1]=vr(e,n,i,v);var p=As(Ma,zn);p<h&&(u=v,h=p)}h=1/0;for(var d=0;d<32&&!(c<jI);d++){var m=u-c,x=u+c;zn[0]=vr(r,t,a,m),zn[1]=vr(e,n,i,m);var p=As(zn,Ma);if(m>=0&&p<h)u=m,h=p;else{Hl[0]=vr(r,t,a,x),Hl[1]=vr(e,n,i,x);var y=As(Hl,Ma);x<=1&&y<h?(u=x,h=y):c*=.5}}return l&&(l[0]=vr(r,t,a,u),l[1]=vr(e,n,i,u)),no(h)}function aW(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,c=1/o,h=1;h<=o;h++){var v=h*c,p=vr(r,t,a,v),d=vr(e,n,i,v),m=p-s,x=d-l;u+=Math.sqrt(m*m+x*x),s=p,l=d}return u}var iW=/cubic-bezier\(([0-9,\.e ]+)\)/;function H1(r){var e=r&&iW.exec(r);if(e){var t=e[1].split(","),n=+oa(t[0]),a=+oa(t[1]),i=+oa(t[2]),o=+oa(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:vp(0,n,i,1,l,s)&&rr(0,a,o,1,s[0])}}}var oW=(function(){function r(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||We,this.ondestroy=e.ondestroy||We,this.onrestart=e.onrestart||We,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=wt(e)?e:Pc[e]||H1(e)},r})(),eP=(function(){function r(e){this.value=e}return r})(),sW=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new eP(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),bh=(function(){function r(e){this._list=new sW,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new eP(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),N2={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function la(r){return r=Math.round(r),r<0?0:r>255?255:r}function lW(r){return r=Math.round(r),r<0?0:r>360?360:r}function jc(r){return r<0?0:r>1?1:r}function gy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?la(parseFloat(e)/100*255):la(parseInt(e,10))}function Ts(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?jc(parseFloat(e)/100):jc(parseFloat(e))}function yy(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Qi(r,e,t){return r+(e-r)*t}function En(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function K0(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var rP=new bh(20),Uf=null;function cl(r,e){Uf&&K0(Uf,e),Uf=rP.put(r,Uf||e.slice())}function xn(r,e){if(r){e=e||[];var t=rP.get(r);if(t)return K0(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in N2)return K0(e,N2[n]),cl(r,e),e;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){En(e,0,0,0,1);return}return En(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),cl(r,e),e}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){En(e,0,0,0,1);return}return En(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),cl(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?En(e,+u[0],+u[1],+u[2],1):En(e,0,0,0,1);c=Ts(u.pop());case"rgb":if(u.length>=3)return En(e,gy(u[0]),gy(u[1]),gy(u[2]),u.length===3?c:Ts(u[3])),cl(r,e),e;En(e,0,0,0,1);return;case"hsla":if(u.length!==4){En(e,0,0,0,1);return}return u[3]=Ts(u[3]),Q0(u,e),cl(r,e),e;case"hsl":if(u.length!==3){En(e,0,0,0,1);return}return Q0(u,e),cl(r,e),e;default:return}}En(e,0,0,0,1)}}function Q0(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=Ts(r[1]),a=Ts(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return e=e||[],En(e,la(yy(o,i,t+1/3)*255),la(yy(o,i,t)*255),la(yy(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function uW(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-n)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+c-v:n===i&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return r[3]!=null&&p.push(r[3]),p}}function J0(r,e){var t=xn(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return ci(t,t.length===4?"rgba":"rgb")}}function my(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=e[a],s=e[i],l=n-a;return t[0]=la(Qi(o[0],s[0],l)),t[1]=la(Qi(o[1],s[1],l)),t[2]=la(Qi(o[2],s[2],l)),t[3]=jc(Qi(o[3],s[3],l)),t}}function cW(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),a=Math.floor(n),i=Math.ceil(n),o=xn(e[a]),s=xn(e[i]),l=n-a,u=ci([la(Qi(o[0],s[0],l)),la(Qi(o[1],s[1],l)),la(Qi(o[2],s[2],l)),jc(Qi(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function Rc(r,e,t,n){var a=xn(r);if(r)return a=uW(a),e!=null&&(a[0]=lW(e)),t!=null&&(a[1]=Ts(t)),n!=null&&(a[2]=Ts(n)),ci(Q0(a),"rgba")}function pp(r,e){var t=xn(r);if(t&&e!=null)return t[3]=jc(e),ci(t,"rgba")}function ci(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function dp(r,e){var t=xn(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var B2=new bh(100);function t_(r){if(ht(r)){var e=B2.get(r);return e||(e=J0(r,-.1),B2.put(r,e)),e}else if(ld(r)){var t=K({},r);return t.colorStops=et(r.colorStops,function(n){return{offset:n.offset,color:J0(n.color,-.1)}}),t}return r}var gp=Math.round;function qc(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=xn(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var z2=1e-4;function Ji(r){return r<z2&&r>-z2}function Yf(r){return gp(r*1e3)/1e3}function e_(r){return gp(r*1e4)/1e4}function hW(r){return"matrix("+Yf(r[0])+","+Yf(r[1])+","+Yf(r[2])+","+Yf(r[3])+","+e_(r[4])+","+e_(r[5])+")"}var fW={left:"start",right:"end",center:"middle",middle:"middle"};function vW(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function pW(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function dW(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function nP(r){return r&&!!r.image}function gW(r){return r&&!!r.svgElement}function W1(r){return nP(r)||gW(r)}function aP(r){return r.type==="linear"}function iP(r){return r.type==="radial"}function oP(r){return r&&(r.type==="linear"||r.type==="radial")}function hd(r){return"url(#"+r+")"}function sP(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function lP(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*Hv,a=Rt(r.scaleX,1),i=Rt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+gp(o*Hv)+"deg, "+gp(s*Hv)+"deg)"),l.join(" ")}var yW=(function(){return Yt.hasGlobalWindow&&wt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),r_=Array.prototype.slice;function ai(r,e,t){return(e-r)*t+r}function _y(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=ai(e[i],t[i],n);return r}function mW(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ai(e[o][s],t[o][s],n)}return r}function Zf(r,e,t,n){for(var a=e.length,i=0;i<a;i++)r[i]=e[i]+t[i]*n;return r}function V2(r,e,t,n){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function _W(r,e){for(var t=r.length,n=e.length,a=t>n?e:r,i=Math.min(t,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function xW(r,e,t){var n=r,a=e;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(t===1?a[l]:r_.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Ec(r){if(Rr(r)){var e=r.length;if(Rr(r[0])){for(var t=[],n=0;n<e;n++)t.push(r_.call(r[n]));return t}return r_.call(r)}return r}function Zv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function wW(r){return Rr(r&&r[0])?2:1}var Xf=0,Xv=1,uP=2,mc=3,n_=4,a_=5,F2=6;function G2(r){return r===n_||r===a_}function $f(r){return r===Xv||r===uP}var Hu=[0,0,0,0],SW=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=F2,l=t;if(Rr(t)){var u=wW(t);s=u,(u===1&&!ae(t[0])||u===2&&!ae(t[0][0]))&&(o=!0)}else if(ae(t)&&!Zc(t))s=Xf;else if(ht(t))if(!isNaN(+t))s=Xf;else{var c=xn(t);c&&(l=c,s=mc)}else if(ld(t)){var h=K({},l);h.colorStops=et(t.colorStops,function(p){return{offset:p.offset,color:xn(p.color)}}),aP(t)?s=n_:iP(t)&&(s=a_),l=h}i===0?this.valType=s:(s!==this.valType||s===F2)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return n&&(v.easing=n,v.easingFunc=wt(n)?n:Pc[n]||H1(n)),a.push(v),v},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(m,x){return m.time-x.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=$f(a),u=G2(a),c=0;c<i;c++){var h=n[c],v=h.value,p=o.value;h.percent=h.time/e,s||(l&&c!==i-1?xW(v,p,a):u&&_W(v.colorStops,p.colorStops))}if(!s&&a!==a_&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var d=n[0].value,c=0;c<i;c++)a===Xf?n[c].additiveValue=n[c].value-d:a===mc?n[c].additiveValue=Zf([],n[c].value,d,-1):$f(a)&&(n[c].additiveValue=a===Xv?Zf([],n[c].value,d,-1):V2([],n[c].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===mc,c,h=this._lastFr,v=Math.min,p,d;if(s===1)p=d=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var m=v(h+1,s-1);for(c=m;c>=0&&!(o[c].percent<=t);c--);c=v(c,s-2)}else{for(c=h;c<s&&!(o[c].percent>t);c++);c=v(c-1,s-2)}d=o[c+1],p=o[c]}if(p&&d){this._lastFr=c,this._lastFrP=t;var x=d.percent-p.percent,y=x===0?1:v((t-p.percent)/x,1);d.easingFunc&&(y=d.easingFunc(y));var f=n?this._additiveValue:u?Hu:e[l];if(($f(i)||u)&&!f&&(f=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:d.rawValue;else if($f(i))i===Xv?_y(f,p[a],d[a],y):mW(f,p[a],d[a],y);else if(G2(i)){var _=p[a],S=d[a],b=i===n_;e[l]={type:b?"linear":"radial",x:ai(_.x,S.x,y),y:ai(_.y,S.y,y),colorStops:et(_.colorStops,function(C,M){var L=S.colorStops[M];return{offset:ai(C.offset,L.offset,y),color:Zv(_y([],C.color,L.color,y))}}),global:S.global},b?(e[l].x2=ai(_.x2,S.x2,y),e[l].y2=ai(_.y2,S.y2,y)):e[l].r=ai(_.r,S.r,y)}else if(u)_y(f,p[a],d[a],y),n||(e[l]=Zv(f));else{var A=ai(p[a],d[a],y);n?this._additiveValue=A:e[l]=A}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,a=this._additiveValue;t===Xf?e[n]=e[n]+a:t===mc?(xn(e[n],Hu),Zf(Hu,Hu,a,1),e[n]=Zv(Hu)):t===Xv?Zf(e[n],e[n],a,1):t===uP&&V2(e[n],e[n],a,1)},r})(),U1=(function(){function r(e,t,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){O1("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,jt(t),n)},r.prototype.whenWithKeys=function(e,t,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new SW(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,v=h[h.length-1];u=v&&v.value,c.valType===mc&&u&&(u=Zv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ec(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Ec(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new oW({life:a,loop:this._loop,delay:this._delay||0,onframe:function(p){t._started=2;var d=t._additiveAnimators;if(d){for(var m=!1,x=0;x<d.length;x++)if(d[x]._clip){m=!0;break}m||(t._additiveAnimators=null)}for(var x=0;x<n.length;x++)n[x].step(t._target,p);var y=t._onframeCbs;if(y)for(var x=0;x<y.length;x++)y[x](t._target,p)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return et(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var i=t[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[i]=Ec(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||jt(e);for(var n=0;n<t.length;n++){var a=t[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Nl(){return new Date().getTime()}var bW=(function(r){Le(e,r);function e(t){var n=r.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 e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,a=t.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Nl()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(hp(n),!t._paused&&t.update())}hp(n)},e.prototype.start=function(){this._running||(this._time=Nl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Nl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Nl()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var a=new U1(t,n.loop);return this.addAnimator(a),a},e})(Yn),AW=300,xy=Yt.domSupported,wy=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=et(r,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:r,touch:e,pointer:n}})(),H2={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},W2=!1;function i_(r){var e=r.pointerType;return e==="pen"||e==="touch"}function TW(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Sy(r){r&&(r.zrByTouch=!0)}function CW(r,e){return kn(r.dom,new MW(r,e),!0)}function cP(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var MW=(function(){function r(e,t){this.stopPropagation=We,this.stopImmediatePropagation=We,this.preventDefault=We,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),ra={mousedown:function(r){r=kn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kn(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=kn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kn(this.dom,r);var e=r.toElement||r.relatedTarget;cP(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){W2=!0,r=kn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){W2||(r=kn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kn(this.dom,r),Sy(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ra.mousemove.call(this,r),ra.mousedown.call(this,r)},touchmove:function(r){r=kn(this.dom,r),Sy(r),this.handler.processGesture(r,"change"),ra.mousemove.call(this,r)},touchend:function(r){r=kn(this.dom,r),Sy(r),this.handler.processGesture(r,"end"),ra.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<AW&&ra.click.call(this,r)},pointerdown:function(r){ra.mousedown.call(this,r)},pointermove:function(r){i_(r)||ra.mousemove.call(this,r)},pointerup:function(r){ra.mouseup.call(this,r)},pointerout:function(r){i_(r)||ra.mouseout.call(this,r)}};R(["click","dblclick","contextmenu"],function(r){ra[r]=function(e){e=kn(this.dom,e),this.trigger(r,e)}});var o_={pointermove:function(r){i_(r)||o_.mousemove.call(this,r)},pointerup:function(r){o_.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function LW(r,e){var t=e.domHandlers;Yt.pointerEventsSupported?R(wy.pointer,function(n){$v(e,n,function(a){t[n].call(r,a)})}):(Yt.touchEventsSupported&&R(wy.touch,function(n){$v(e,n,function(a){t[n].call(r,a),TW(e)})}),R(wy.mouse,function(n){$v(e,n,function(a){a=V1(a),e.touching||t[n].call(r,a)})}))}function DW(r,e){Yt.pointerEventsSupported?R(H2.pointer,t):Yt.touchEventsSupported||R(H2.mouse,t);function t(n){function a(i){i=V1(i),cP(r,i.target)||(i=CW(r,i),e.domHandlers[n].call(r,i))}$v(e,n,a,{capture:!0})}}function $v(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,j0(r.domTarget,e,t,n)}function by(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&WH(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var U2=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),IW=(function(r){Le(e,r);function e(t,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new U2(t,ra),xy&&(a._globalHandlerScope=new U2(document,o_)),LW(a,a._localHandlerScope),a}return e.prototype.dispose=function(){by(this._localHandlerScope),xy&&by(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,xy&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?DW(this,n):by(n)}},e})(Yn),hP=1;Yt.hasGlobalWindow&&(hP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var yp=hP,s_=.4,l_="#333",u_="#ccc",PW="#eee",Y2=cd,Z2=5e-5;function Fo(r){return r>Z2||r<-Z2}var Go=[],hl=[],Ay=_n(),Ty=Math.abs,oi=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Fo(this.rotation)||Fo(this.x)||Fo(this.y)||Fo(this.scaleX-1)||Fo(this.scaleY-1)||Fo(this.skewX)||Fo(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Y2(n),this.invTransform=null);return}n=n||_n(),t?this.getLocalTransform(n):Y2(n),e&&(t?ui(n,e,n):F1(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Go);var n=Go[0]<0?-1:1,a=Go[1]<0?-1:1,i=((Go[0]-n)*t+n)/Go[0]||0,o=((Go[1]-a)*t+a)/Go[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||_n(),su(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.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],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_n(),ui(hl,e.invTransform,t),t=hl);var n=this.originX,a=this.originY;(n||a)&&(Ay[4]=n,Ay[5]=a,ui(hl,t,Ay),hl[4]-=n,hl[5]-=a,t=hl),this.setLocalTransform(t)}},r.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)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],a=this.invTransform;return a&&wr(n,n,a),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],a=this.transform;return a&&wr(n,n,a),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ty(e[0]-1)>1e-10&&Ty(e[3]-1)>1e-10?Math.sqrt(Ty(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){fP(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||a||s||l){var d=n+s,m=a+l;t[4]=-d*i-v*m*o,t[5]=-m*o-p*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=p*i,t[2]=v*o,u&&Gs(t,t,u),t[4]+=n+c,t[5]+=a+h,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Ba=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function fP(r,e){for(var t=0;t<Ba.length;t++){var n=Ba[t];r[n]=e[n]}}var X2={};function wn(r,e){e=e||so;var t=X2[e];t||(t=X2[e]=new bh(500));var n=t.get(r);return n==null&&(n=lo.measureText(r,e).width,t.put(r,n)),n}function $2(r,e,t,n){var a=wn(r,e),i=fd(e),o=_c(0,a,t),s=Rl(0,i,n),l=new zt(o,s,a,i);return l}function Ah(r,e,t,n){var a=((r||"")+"").split(`
|
|
21
|
+
`),i=a.length;if(i===1)return $2(a[0],e,t,n);for(var o=new zt(0,0,0,0),s=0;s<a.length;s++){var l=$2(a[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function _c(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Rl(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function fd(r){return wn("国",r)}function ca(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function mp(r,e,t){var n=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",h="top";if(n instanceof Array)l+=ca(n[0],t.width),u+=ca(n[1],t.height),c=null,h=null;else switch(n){case"left":l-=a,u+=s,c="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,c="center",h="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,c="right",h="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=h,r}var Cy="__zr_normal__",My=Ba.concat(["ignore"]),RW=Oa(Ba,function(r,e){return r[e]=!0,r},{ignore:!1}),fl={},EW=new zt(0,0,0,0),vd=(function(){function r(e){this.id=FI(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),n.position!=null){var c=EW;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fl,n,c):mp(fl,n,c),i.x=fl.x,i.y=fl.y,o=fl.align,s=fl.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,p=void 0;h==="center"?(v=c.width*.5,p=c.height*.5):(v=ca(h[0],c.width),p=ca(h[1],c.height)),u=!0,i.originX=-i.x+v+(a?0:c.x),i.originY=-i.y+p+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,f=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,f=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(f==null||f==="auto")&&(f=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,f=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(f==null||f==="auto")&&(f=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==x.fill||f!==x.stroke||_!==x.autoStroke||o!==x.align||s!==x.verticalAlign)&&(l=!0,x.fill=y,x.stroke=f,x.autoStroke=_,x.align=o,x.verticalAlign=s,t.setDefaultTextStyle(x)),t.__dirty|=yn,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u_:l_},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&xn(t);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,ci(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(Tt(e))for(var n=e,a=jt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Cy)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,My)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var a=0;a<n.length;a++){var i=n[a];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Cy,!1,e)},r.prototype.useState=function(e,t,n,a){var i=e===Cy,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Gt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){O1("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,n,c),v&&v.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yn),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var h=a[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,x=this._textGuide;m&&m.useStates(e,t,v),x&&x.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~yn)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Gt(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var a=this.currentStates.slice(),i=Gt(a,e),o=Gt(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:n&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,a=0;a<e.length;a++){var i=e[a];K(t,i),i.textConfig&&(n=n||{},K(n,i.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,a,i,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=K({},a?this.textConfig:n.textConfig),K(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<My.length;c++){var h=My[c],v=i&&RW[h];t&&t[h]!=null?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!i)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(t||n)[d]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new oi,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),K(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=yn;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var a=e?this[e]:this,i=new U1(a,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var n=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var i=a.animators,o=Gt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,n){Ly(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){Ly(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,a){for(var i=Ly(this,t,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=yn;function t(n,a,i,o){Object.defineProperty(e,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();qe(vd,Yn);qe(vd,oi);function Ly(r,e,t,n,a){t=t||{};var i=[];vP(r,"",r,e,t,n,i,a);var o=i.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,m){t.during(m)});for(var v=0;v<i.length;v++){var p=i[v];c&&p.done(c),h&&p.aborted(h),t.force&&p.duration(t.duration),p.start(t.easing)}return i}function Dy(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function kW(r){return Rr(r[0])}function OW(r,e,t){if(Rr(e[t]))if(Rr(r[t])||(r[t]=[]),on(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Dy(r[t],e[t],n))}else{var a=e[t],i=r[t],o=a.length;if(kW(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Dy(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Dy(i,a,o);i.length=a.length}else r[t]=e[t]}function NW(r,e){return r===e||Rr(r)&&Rr(e)&&BW(r,e)}function BW(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function vP(r,e,t,n,a,i,o,s){for(var l=jt(n),u=a.duration,c=a.delay,h=a.additive,v=a.setToFinal,p=!Tt(i),d=r.animators,m=[],x=0;x<l.length;x++){var y=l[x],f=n[y];if(f!=null&&t[y]!=null&&(p||i[y]))if(Tt(f)&&!Rr(f)&&!ld(f)){if(e){s||(t[y]=f,r.updateDuringAnimation(e));continue}vP(r,y,t[y],f,a,i&&i[y],o,s)}else m.push(y);else s||(t[y]=f,r.updateDuringAnimation(e),m.push(y))}var _=m.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var A=b.stopTracks(m);if(A){var C=Gt(d,b);d.splice(C,1)}}}if(a.force||(m=fe(m,function(P){return!NW(n[P],t[P])}),_=m.length),_>0||a.force&&!o.length){var M=void 0,L=void 0,D=void 0;if(s){L={},v&&(M={});for(var S=0;S<_;S++){var y=m[S];L[y]=t[y],v?M[y]=n[y]:t[y]=n[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=m[S];D[y]=Ec(t[y]),OW(t,n,y)}}var b=new U1(t,!1,!1,h?fe(d,function(E){return E.targetName===e}):null);b.targetName=e,a.scope&&(b.scope=a.scope),v&&M&&b.whenWithKeys(0,M,m),D&&b.whenWithKeys(0,D,m),b.whenWithKeys(u??500,s?L:n,m).delay(c||0),r.addAnimator(b,e),o.push(b)}}var Lt=(function(r){Le(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===t)return n[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var a=Gt(this._children,t);return a>=0&&this.replaceAt(n,a),this},e.prototype.replaceAt=function(t,n){var a=this._children,i=a[n];if(t&&t!==this&&t.parent!==this&&t!==i){a[n]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,a=this._children,i=Gt(a,t);return i<0?this:(a.splice(i,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,a=0;a<t.length;a++){var i=t[a];n&&i.removeSelfFromZr(n),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];t.call(n,o,i)}return this},e.prototype.traverse=function(t,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=t.call(n,i);i.isGroup&&!o&&i.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new zt(0,0,0,0),a=t||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(zt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(vd);Lt.prototype.type="group";var jv={},pP={};function zW(r){delete pP[r]}function VW(r){if(!r)return!1;if(typeof r=="string")return dp(r,1)<s_;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,a=0;a<n;a++)t+=dp(e[a].color,1);return t/=n,t<s_}return!1}var FW=(function(){function r(e,t,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new eW,o=n.renderer||"canvas";jv[o]||(o=jt(jv)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new jv[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Yt.node&&!Yt.worker&&!l?new IW(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,h=c==null||c==="auto"?Yt.touchEventsSupported:!!c,v=44,p;h&&(p=Rt(n.pointerSize,v)),this.handler=new ZI(i,s,u,s.root,p),this.animation=new bW({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=VW(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=Nl();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=Nl();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Lt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,zW(this.id))},r})();function j2(r,e){var t=new FW(FI(),r,e);return pP[t.id]=t,t}function GW(r,e){jv[r]=e}var c_;function HW(r){if(typeof c_=="function")return c_(r)}function WW(r){c_=r}var q2=1e-4,dP=20;function UW(r){return r.replace(/^\s+|\s+$/g,"")}function ge(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function ut(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return ht(r)?UW(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ve(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),dP),r=(+r).toFixed(e),t?r:+r}function Hn(r){return r.sort(function(e,t){return e-t}),r}function Da(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return YW(r)}function YW(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function gP(r,e){var t=Math.log,n=Math.LN10,a=Math.floor(t(r[1]-r[0])/n),i=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function ZW(r,e){var t=Oa(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Math.pow(10,e),a=et(r,function(p){return(isNaN(p)?0:p)/t*n*100}),i=n*100,o=et(a,function(p){return Math.floor(p)}),s=Oa(o,function(p,d){return p+d},0),l=et(a,function(p,d){return p-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return et(o,function(p){return p/n})}function XW(r,e){var t=Math.max(Da(r),Da(e)),n=r+e;return t>dP?n:Ve(n,t)}var K2=9007199254740991;function yP(r){var e=Math.PI*2;return(r%e+e)%e}function Kc(r){return r>-q2&&r<q2}var $W=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function za(r){if(r instanceof Date)return r;if(ht(r)){var e=$W.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function jW(r){return Math.pow(10,Y1(r))}function Y1(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function mP(r,e){var t=Y1(r),n=Math.pow(10,t),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,t>=-20?+r.toFixed(t<0?-t:0):r}function Iy(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function Q2(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function pi(r){var e=parseFloat(r);return e==r&&(e!==0||!ht(r)||r.indexOf("x")<=0)?e:NaN}function _P(r){return!isNaN(pi(r))}function xP(){return Math.round(Math.random()*9)}function wP(r,e){return e===0?r:wP(e,r%e)}function J2(r,e){return r==null?e:e==null?r:r*e/wP(r,e)}function he(r){throw new Error(r)}function tA(r,e,t){return(e-r)*t+r}var SP="series\0",bP="\0_ec_\0";function me(r){return r instanceof Array?r:r==null?[]:[r]}function Es(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var eA=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function lu(r){return Tt(r)&&!tt(r)&&!(r instanceof Date)?r.value:r}function qW(r){return Tt(r)&&!(r instanceof Array)}function AP(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=yt();R(e,function(l,u){if(!Tt(l)){e[u]=null;return}});var s=KW(r,o,t);return(n||a)&&QW(s,r,o,e),n&&JW(s,e),n||a?t6(s,e,a):i&&e6(s,e),r6(s),s}function KW(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Qc(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function QW(r,e,t,n){R(n,function(a,i){if(!(!a||a.id==null)){var o=kc(a.id),s=t.get(o);if(s!=null){var l=r[s];Ur(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function JW(r,e){R(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Qc(t)&&!Qc(i)&&TP("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function t6(r,e,t){R(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Qc(a.existing)||a.existing&&n.id!=null&&!TP("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function e6(r,e){R(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function r6(r){var e=yt();R(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),R(r,function(t){var n=t.newOption;Ur(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),R(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(Tt(i)){if(o.name=i.name!=null?kc(i.name):a?a.name:SP+n,a)o.id=kc(a.id);else if(i.id!=null)o.id=kc(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function TP(r,e,t){var n=Ke(e[r],null),a=Ke(t[r],null);return n!=null&&a!=null&&n===a}function kc(r){return Ke(r,"")}function Ke(r,e){return r==null?e:ht(r)?r:ae(r)||G0(r)?r+"":e}function Z1(r){var e=r.name;return!!(e&&e.indexOf(SP))}function Qc(r){return r&&r.id!=null&&kc(r.id).indexOf(bP)===0}function n6(r){return bP+r}function a6(r,e,t){R(r,function(n){var a=n.newOption;Tt(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=i6(e,a,n.existing,t))})}function i6(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function o6(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var h=Ke(o[u].seriesId,null);if(h==null)return;for(var v=me(o[u].dataIndex),p=l&&l[h],d=0,m=v.length;d<m;d++){var x=v[d];p&&p[x]?p[x]=null:(s[h]||(s[h]={}))[x]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function ks(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return tt(e.dataIndex)?et(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return tt(e.name)?et(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Qt(){var r="__ec_inner_"+s6++;return function(e){return e[r]||(e[r]={})}}var s6=xP();function Oc(r,e,t){var n=X1(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var h=Th(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function X1(r,e){var t;if(ht(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=yt(),i={},o=!1;return R(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&Gt(e.includeMainTypes,c)<0)){o=o||!!c;var v=a.get(c)||a.set(c,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var $e={useDefault:!0,enableAll:!1,enableNone:!1},l6={useDefault:!1,enableAll:!0,enableNone:!0};function Th(r,e,t,n){n=n||$e;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(Ur(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ur(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function CP(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function u6(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function c6(r){return r==="auto"?Yt.domSupported?"html":"richText":r||"html"}function h_(r,e){var t=yt(),n=[];return R(r,function(a){var i=e(a);(t.get(i)||(n.push(i),t.set(i,[]))).push(a)}),{keys:n,buckets:t}}function MP(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(ae(n)){var o=tA(t||0,n,a);return Ve(o,i?Math.max(Da(t||0),Da(n)):e)}else{if(ht(n))return a<1?t:n;for(var s=[],l=t,u=n,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,d=u[h],o=tA(p,d,a);s[h]=Ve(o,i?Math.max(Da(p),Da(d)):e)}}return s}}var h6=".",Ho="___EC__COMPONENT__CONTAINER___",LP="___EC__EXTENDED_CLASS___";function Ia(r){var e={main:"",sub:""};if(r){var t=r.split(h6);e.main=t[0]||"",e.sub=t[1]||""}return e}function f6(r){Ur(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function v6(r){return!!(r&&r[LP])}function $1(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return p6(n)?a=(function(i){j(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},SH(a,this)),K(a.prototype,t),a[LP]=!0,a.extend=this.extend,a.superCall=y6,a.superApply=m6,a.superClass=n,a}}function p6(r){return wt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function DP(r,e){r.extend=e.extend}var d6=Math.round(Math.random()*10);function g6(r){var e=["__\0is_clz",d6++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function y6(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function m6(r,e,t){return this.superClass.prototype[e].apply(r,t)}function pd(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){f6(a),n.prototype.type=a;var i=Ia(a);if(!i.sub)e[i.main]=n;else if(i.sub!==Ho){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[Ho]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=Ia(n),i=[],o=e[a.main];return o&&o[Ho]?R(o,function(s,l){l!==Ho&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=Ia(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return R(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=Ia(n),i=e[a.main];return i&&i[Ho]};function t(n){var a=e[n.main];return(!a||!a[Ho])&&(a=e[n.main]={},a[Ho]=!0),a}}function Os(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&Gt(a,l)>=0||i&&Gt(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var _6=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],x6=Os(_6),w6=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return x6(this,e,t)},r})(),f_=new bh(50);function S6(r){if(typeof r=="string"){var e=f_.get(r);return e&&e.image}else return r}function j1(r,e,t,n,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=f_.get(r),o={hostEl:t,cb:n,cbPayload:a};return i?(e=i.image,!dd(e)&&i.pending.push(o)):(e=lo.loadImage(r,rA,rA),e.__zrImageSrc=r,f_.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function rA(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function dd(r){return r&&r.width&&r.height}var Py=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function b6(r,e,t,n,a,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
|
|
22
|
+
`);i=IP(t,n,a,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)PP(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
23
|
+
`),r.isTruncated=s}function IP(r,e,t,n){n=n||{};var a=K({},n);a.font=e,t=Rt(t,"..."),a.maxIterations=Rt(n.maxIterations,2);var i=a.minChar=Rt(n.minChar,0);a.cnCharWidth=wn("国",e);var o=a.ascCharWidth=wn("a",e);a.placeholder=Rt(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=wn(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function PP(r,e,t){var n=t.containerWidth,a=t.font,i=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=wn(e,a);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?A6(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=wn(e,a)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function A6(r,e,t,n){for(var a=0,i=0,o=r.length;i<o&&a<e;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?t:n}return i}function T6(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,a=e.font,i=t==="truncate",o=fd(a),s=Rt(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?RP(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
|
|
24
|
+
`):[];var p=v.length*s,d=Rt(e.height,p);if(p>d&&u){var m=Math.floor(d/s);c=c||v.length>m,v=v.slice(0,m)}if(r&&i&&h!=null)for(var x=IP(h,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},f=0;f<v.length;f++)PP(y,v[f],x),v[f]=y.textLine,c=c||y.isTruncated;for(var _=d,S=0,f=0;f<v.length;f++)S=Math.max(wn(v[f],a),S);h==null&&(h=S);var b=S;return n&&(_+=n[0]+n[2],b+=n[1]+n[3],h+=n[1]+n[3]),l&&(b=h),{lines:v,height:d,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:p,width:h,isTruncated:c}}var C6=(function(){function r(){}return r})(),nA=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),M6=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function L6(r,e){var t=new M6;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=Py.lastIndex=0,l;(l=Py.exec(r))!=null;){var u=l.index;u>s&&Ry(t,r.substring(s,u),e,o),Ry(t,l[2],e,o,l[1]),s=Py.lastIndex}s<r.length&&Ry(t,r.substring(s,r.length),e,o);var c=[],h=0,v=0,p=e.padding,d=i==="truncate",m=e.lineOverflow==="truncate",x={};function y(q,Q,rt){q.width=Q,q.lineHeight=rt,h+=rt,v=Math.max(v,Q)}t:for(var f=0;f<t.lines.length;f++){for(var _=t.lines[f],S=0,b=0,A=0;A<_.tokens.length;A++){var C=_.tokens[A],M=C.styleName&&e.rich[C.styleName]||{},L=C.textPadding=M.padding,D=L?L[1]+L[3]:0,P=C.font=M.font||e.font;C.contentHeight=fd(P);var E=Rt(M.height,C.contentHeight);if(C.innerHeight=E,L&&(E+=L[0]+L[2]),C.height=E,C.lineHeight=Ea(M.lineHeight,e.lineHeight,E),C.align=M&&M.align||e.align,C.verticalAlign=M&&M.verticalAlign||"middle",m&&a!=null&&h+C.lineHeight>a){var O=t.lines.length;A>0?(_.tokens=_.tokens.slice(0,A),y(_,b,S),t.lines=t.lines.slice(0,f+1)):t.lines=t.lines.slice(0,f),t.isTruncated=t.isTruncated||t.lines.length<O;break t}var N=M.width,z=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")C.percentWidth=N,c.push(C),C.contentWidth=wn(C.text,P);else{if(z){var G=M.backgroundColor,U=G&&G.image;U&&(U=S6(U),dd(U)&&(C.width=Math.max(C.width,U.width*E/U.height)))}var W=d&&n!=null?n-b:null;W!=null&&W<C.width?!z||W<D?(C.text="",C.width=C.contentWidth=0):(b6(x,C.text,W-D,P,e.ellipsis,{minChar:e.truncateMinChar}),C.text=x.text,t.isTruncated=t.isTruncated||x.isTruncated,C.width=C.contentWidth=wn(C.text,P)):C.contentWidth=wn(C.text,P)}C.width+=D,b+=C.width,M&&(S=Math.max(S,C.lineHeight))}y(_,b,S)}t.outerWidth=t.width=Rt(n,v),t.outerHeight=t.height=Rt(a,h),t.contentHeight=h,t.contentWidth=v,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var f=0;f<c.length;f++){var C=c[f],Y=C.percentWidth;C.width=parseInt(Y,10)/100*t.width}return t}function Ry(r,e,t,n,a){var i=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,c,h;if(n){var v=o.padding,p=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ca(o.width,n.width)+p;s.length>0&&d+n.accumWidth>n.width&&(c=e.split(`
|
|
25
|
+
`),u=!0),n.accumWidth=d}else{var m=RP(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+p,h=m.linesWidths,c=m.lines}}else c=e.split(`
|
|
26
|
+
`);for(var x=0;x<c.length;x++){var y=c[x],f=new C6;if(f.styleName=a,f.text=y,f.isLineHolder=!y&&!i,typeof o.width=="number"?f.width=o.width:f.width=h?h[x]:wn(y,l),!x&&!u){var _=(s[s.length-1]||(s[0]=new nA)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=f:(y||!S||i)&&_.push(f)}else s.push(new nA([f]))}}function D6(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var I6=Oa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function P6(r){return D6(r)?!!I6[r]:!0}function RP(r,e,t,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
|
|
27
|
+
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=wn(v,e),d=n?!1:!P6(v);if(i.length?c+p>t:a+c+p>t){c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=p)):d?(i.push(l),o.push(u),l=v,u=p):(i.push(v),o.push(p));continue}c+=p,d?(l+=v,u+=p):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var v_="__zr_style_"+Math.round(Math.random()*10),Cs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cs[v_]=!0;var aA=["z","z2","invisible"],R6=["invisible"],Un=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=jt(t),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&E6(this,t,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new zt(0,0,0,0)),n?zt.applyTransform(t,a,n):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new zt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:K(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=yc,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&yc)},e.prototype.styleUpdated=function(){this.__dirty&=~yc},e.prototype.createStyle=function(t){return ud(Cs,t)},e.prototype.useStyle=function(t){t[v_]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[v_]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,aA)},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=jt(c),v=0;v<h.length;v++){var p=h[v];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var d=jt(u),v=0;v<d.length;v++){var p=d[v];this.style[p]=this.style[p]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?R6:aA,v=0;v<m.length;v++){var p=m[v];n&&n[p]!=null?this[p]=n[p]:l&&a[p]!=null&&(this[p]=a[p])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},e.prototype._mergeStyle=function(t,n){return K(t,n),t},e.prototype.getAnimationStyleProps=function(){return gd},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=yn|yc})(),e})(vd),Ey=new zt(0,0,0,0),ky=new zt(0,0,0,0);function E6(r,e,t){return Ey.copy(r.getBoundingRect()),r.transform&&Ey.applyTransform(r.transform),ky.width=e,ky.height=t,!Ey.intersect(ky)}var rn=Math.min,nn=Math.max,Oy=Math.sin,Ny=Math.cos,Wo=Math.PI*2,jf=Fs(),qf=Fs(),Kf=Fs();function yd(r,e,t){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=rn(a,n[0]),i=nn(i,n[0]),o=rn(o,n[1]),s=nn(s,n[1]);e[0]=a,e[1]=o,t[0]=i,t[1]=s}}function iA(r,e,t,n,a,i){a[0]=rn(r,t),a[1]=rn(e,n),i[0]=nn(r,t),i[1]=nn(e,n)}var oA=[],sA=[];function k6(r,e,t,n,a,i,o,s,l,u){var c=KI,h=rr,v=c(r,t,a,o,oA);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<v;p++){var d=h(r,t,a,o,oA[p]);l[0]=rn(d,l[0]),u[0]=nn(d,u[0])}v=c(e,n,i,s,sA);for(var p=0;p<v;p++){var m=h(e,n,i,s,sA[p]);l[1]=rn(m,l[1]),u[1]=nn(m,u[1])}l[0]=rn(r,l[0]),u[0]=nn(r,u[0]),l[0]=rn(o,l[0]),u[0]=nn(o,u[0]),l[1]=rn(e,l[1]),u[1]=nn(e,u[1]),l[1]=rn(s,l[1]),u[1]=nn(s,u[1])}function O6(r,e,t,n,a,i,o,s){var l=JI,u=vr,c=nn(rn(l(r,t,a),1),0),h=nn(rn(l(e,n,i),1),0),v=u(r,t,a,c),p=u(e,n,i,h);o[0]=rn(r,a,v),o[1]=rn(e,i,p),s[0]=nn(r,a,v),s[1]=nn(e,i,p)}function N6(r,e,t,n,a,i,o,s,l){var u=ji,c=qi,h=Math.abs(a-i);if(h%Wo<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(jf[0]=Ny(a)*t+r,jf[1]=Oy(a)*n+e,qf[0]=Ny(i)*t+r,qf[1]=Oy(i)*n+e,u(s,jf,qf),c(l,jf,qf),a=a%Wo,a<0&&(a=a+Wo),i=i%Wo,i<0&&(i=i+Wo),a>i&&!o?i+=Wo:a<i&&o&&(a+=Wo),o){var v=i;i=a,a=v}for(var p=0;p<i;p+=Math.PI/2)p>a&&(Kf[0]=Ny(p)*t+r,Kf[1]=Oy(p)*n+e,u(s,Kf,s),c(l,Kf,l))}var Ae={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Uo=[],Yo=[],ma=[],ki=[],_a=[],xa=[],By=Math.min,zy=Math.max,Zo=Math.cos,Xo=Math.sin,ti=Math.abs,p_=Math.PI,Wi=p_*2,Vy=typeof Float32Array<"u",Wu=[];function Fy(r){var e=Math.round(r/p_*1e8)/1e8;return e%2*p_}function q1(r,e){var t=Fy(r[0]);t<0&&(t+=Wi);var n=t-r[0],a=r[1];a+=n,!e&&a-t>=Wi?a=t+Wi:e&&t-a>=Wi?a=t-Wi:!e&&t>a?a=t+(Wi-Fy(t-a)):e&&t<a&&(a=t-(Wi-Fy(a-t))),r[0]=t,r[1]=a}var Va=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=ti(n/yp/e)||0,this._uy=ti(n/yp/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ae.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=ti(e-this._xi),a=ti(t-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Ae.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){return this._drawPendingPt(),this.addData(Ae.C,e,t,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,a){return this._drawPendingPt(),this.addData(Ae.Q,e,t,n,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(e,t,n,a,i,o){this._drawPendingPt(),Wu[0]=a,Wu[1]=i,q1(Wu,o),a=Wu[0],i=Wu[1];var s=i-a;return this.addData(Ae.A,e,t,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,a,i,o),this._xi=Zo(i)*n+e,this._yi=Xo(i)*n+t,this},r.prototype.arcTo=function(e,t,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,a,i),this},r.prototype.rect=function(e,t,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,a),this.addData(Ae.R,e,t,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ae.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Vy&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,a=this._len,i=0;i<t;i++)n+=e[i].len();Vy&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(e,t,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Vy&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){ma[0]=ma[1]=_a[0]=_a[1]=Number.MAX_VALUE,ki[0]=ki[1]=xa[0]=xa[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],a=t,i=n),s){case Ae.M:t=a=e[o++],n=i=e[o++],_a[0]=a,_a[1]=i,xa[0]=a,xa[1]=i;break;case Ae.L:iA(t,n,e[o],e[o+1],_a,xa),t=e[o++],n=e[o++];break;case Ae.C:k6(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],_a,xa),t=e[o++],n=e[o++];break;case Ae.Q:O6(t,n,e[o++],e[o++],e[o],e[o+1],_a,xa),t=e[o++],n=e[o++];break;case Ae.A:var u=e[o++],c=e[o++],h=e[o++],v=e[o++],p=e[o++],d=e[o++]+p;o+=1;var m=!e[o++];l&&(a=Zo(p)*h+u,i=Xo(p)*v+c),N6(u,c,h,v,p,d,m,_a,xa),t=Zo(d)*h+u,n=Xo(d)*v+c;break;case Ae.R:a=t=e[o++],i=n=e[o++];var x=e[o++],y=e[o++];iA(a,i,a+x,i+y,_a,xa);break;case Ae.Z:t=a,n=i;break}ji(ma,ma,_a),qi(ki,ki,xa)}return o===0&&(ma[0]=ma[1]=ki[0]=ki[1]=0),new zt(ma[0],ma[1],ki[0]-ma[0],ki[1]-ma[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,v=0;v<t;){var p=e[v++],d=v===1;d&&(i=e[v],o=e[v+1],s=i,l=o);var m=-1;switch(p){case Ae.M:i=s=e[v++],o=l=e[v++];break;case Ae.L:{var x=e[v++],y=e[v++],f=x-i,_=y-o;(ti(f)>n||ti(_)>a||v===t-1)&&(m=Math.sqrt(f*f+_*_),i=x,o=y);break}case Ae.C:{var S=e[v++],b=e[v++],x=e[v++],y=e[v++],A=e[v++],C=e[v++];m=rW(i,o,S,b,x,y,A,C,10),i=A,o=C;break}case Ae.Q:{var S=e[v++],b=e[v++],x=e[v++],y=e[v++];m=aW(i,o,S,b,x,y,10),i=x,o=y;break}case Ae.A:var M=e[v++],L=e[v++],D=e[v++],P=e[v++],E=e[v++],O=e[v++],N=O+E;v+=1,d&&(s=Zo(E)*D+M,l=Xo(E)*P+L),m=zy(D,P)*By(Wi,Math.abs(O)),i=Zo(N)*D+M,o=Xo(N)*P+L;break;case Ae.R:{s=i=e[v++],l=o=e[v++];var z=e[v++],G=e[v++];m=z*2+G*2;break}case Ae.Z:{var f=s-i,_=l-o;m=Math.sqrt(f*f+_*_),i=s,o=l;break}}m>=0&&(u[h++]=m,c+=m)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,h,v,p=t<1,d,m,x=0,y=0,f,_=0,S,b;if(!(p&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,f=t*m,!f)))t:for(var A=0;A<o;){var C=n[A++],M=A===1;switch(M&&(u=n[A],c=n[A+1],s=u,l=c),C!==Ae.L&&_>0&&(e.lineTo(S,b),_=0),C){case Ae.M:s=u=n[A++],l=c=n[A++],e.moveTo(u,c);break;case Ae.L:{h=n[A++],v=n[A++];var L=ti(h-u),D=ti(v-c);if(L>a||D>i){if(p){var P=d[y++];if(x+P>f){var E=(f-x)/P;e.lineTo(u*(1-E)+h*E,c*(1-E)+v*E);break t}x+=P}e.lineTo(h,v),u=h,c=v,_=0}else{var O=L*L+D*D;O>_&&(S=h,b=v,_=O)}break}case Ae.C:{var N=n[A++],z=n[A++],G=n[A++],U=n[A++],W=n[A++],Y=n[A++];if(p){var P=d[y++];if(x+P>f){var E=(f-x)/P;uo(u,N,G,W,E,Uo),uo(c,z,U,Y,E,Yo),e.bezierCurveTo(Uo[1],Yo[1],Uo[2],Yo[2],Uo[3],Yo[3]);break t}x+=P}e.bezierCurveTo(N,z,G,U,W,Y),u=W,c=Y;break}case Ae.Q:{var N=n[A++],z=n[A++],G=n[A++],U=n[A++];if(p){var P=d[y++];if(x+P>f){var E=(f-x)/P;$c(u,N,G,E,Uo),$c(c,z,U,E,Yo),e.quadraticCurveTo(Uo[1],Yo[1],Uo[2],Yo[2]);break t}x+=P}e.quadraticCurveTo(N,z,G,U),u=G,c=U;break}case Ae.A:var q=n[A++],Q=n[A++],rt=n[A++],ct=n[A++],vt=n[A++],_t=n[A++],Nt=n[A++],Jt=!n[A++],Mt=rt>ct?rt:ct,mt=ti(rt-ct)>.001,Pt=vt+_t,gt=!1;if(p){var P=d[y++];x+P>f&&(Pt=vt+_t*(f-x)/P,gt=!0),x+=P}if(mt&&e.ellipse?e.ellipse(q,Q,rt,ct,Nt,vt,Pt,Jt):e.arc(q,Q,Mt,vt,Pt,Jt),gt)break t;M&&(s=Zo(vt)*rt+q,l=Xo(vt)*ct+Q),u=Zo(Pt)*rt+q,c=Xo(Pt)*ct+Q;break;case Ae.R:s=u=n[A],l=c=n[A+1],h=n[A++],v=n[A++];var St=n[A++],se=n[A++];if(p){var P=d[y++];if(x+P>f){var te=f-x;e.moveTo(h,v),e.lineTo(h+By(te,St),v),te-=St,te>0&&e.lineTo(h+St,v+By(te,se)),te-=se,te>0&&e.lineTo(h+zy(St-te,0),v+se),te-=St,te>0&&e.lineTo(h,v+zy(se-te,0));break t}x+=P}e.rect(h,v,St,se);break;case Ae.Z:if(p){var P=d[y++];if(x+P>f){var E=(f-x)/P;e.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break t}x+=P}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=Ae,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function Yi(r,e,t,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var c=l*i-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function B6(r,e,t,n,a,i,o,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>n+h&&c>i+h&&c>s+h||c<e-h&&c<n-h&&c<i-h&&c<s-h||u>r+h&&u>t+h&&u>a+h&&u>o+h||u<r-h&&u<t-h&&u<a-h&&u<o-h)return!1;var v=QI(r,e,t,n,a,i,o,s,u,c,null);return v<=h/2}function EP(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>i+u||l<e-u&&l<n-u&&l<i-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var c=tP(r,e,t,n,a,i,s,l,null);return c<=u/2}var lA=Math.PI*2;function mn(r){return r%=lA,r<0&&(r+=lA),r}var Uu=Math.PI*2;function z6(r,e,t,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(n-a)%Uu<1e-4)return!0;if(i){var h=n;n=mn(a),a=mn(h)}else n=mn(n),a=mn(a);n>a&&(a+=Uu);var v=Math.atan2(l,s);return v<0&&(v+=Uu),v>=n&&v<=a||v+Uu>=n&&v+Uu<=a}function ii(r,e,t,n,a,i){if(i>e&&i>n||i<e&&i<n||n===e)return 0;var o=(i-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Oi=Va.CMD,$o=Math.PI*2,V6=1e-4;function F6(r,e){return Math.abs(r-e)<V6}var Vr=[-1,-1,-1],Nn=[-1,-1];function G6(){var r=Nn[0];Nn[0]=Nn[1],Nn[1]=r}function H6(r,e,t,n,a,i,o,s,l,u){if(u>e&&u>n&&u>i&&u>s||u<e&&u<n&&u<i&&u<s)return 0;var c=vp(e,n,i,s,u,Vr);if(c===0)return 0;for(var h=0,v=-1,p=void 0,d=void 0,m=0;m<c;m++){var x=Vr[m],y=x===0||x===1?.5:1,f=rr(r,t,a,o,x);f<l||(v<0&&(v=KI(e,n,i,s,Nn),Nn[1]<Nn[0]&&v>1&&G6(),p=rr(e,n,i,s,Nn[0]),v>1&&(d=rr(e,n,i,s,Nn[1]))),v===2?x<Nn[0]?h+=p<e?y:-y:x<Nn[1]?h+=d<p?y:-y:h+=s<d?y:-y:x<Nn[0]?h+=p<e?y:-y:h+=s<p?y:-y)}return h}function W6(r,e,t,n,a,i,o,s){if(s>e&&s>n&&s>i||s<e&&s<n&&s<i)return 0;var l=nW(e,n,i,s,Vr);if(l===0)return 0;var u=JI(e,n,i);if(u>=0&&u<=1){for(var c=0,h=vr(e,n,i,u),v=0;v<l;v++){var p=Vr[v]===0||Vr[v]===1?.5:1,d=vr(r,t,a,Vr[v]);d<o||(Vr[v]<u?c+=h<e?p:-p:c+=i<h?p:-p)}return c}else{var p=Vr[0]===0||Vr[0]===1?.5:1,d=vr(r,t,a,Vr[0]);return d<o?0:i<e?p:-p}}function U6(r,e,t,n,a,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Vr[0]=-l,Vr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=$o-1e-4){n=0,a=$o;var c=i?1:-1;return o>=Vr[0]+r&&o<=Vr[1]+r?c:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=$o,a+=$o);for(var v=0,p=0;p<2;p++){var d=Vr[p];if(d+r>o){var m=Math.atan2(s,d),c=i?1:-1;m<0&&(m=$o+m),(m>=n&&m<=a||m+$o>=n&&m+$o<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),v+=c)}}return v}function kP(r,e,t,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,c=0,h=0,v,p,d=0;d<o;){var m=i[d++],x=d===1;switch(m===Oi.M&&d>1&&(t||(s+=ii(l,u,c,h,n,a))),x&&(l=i[d],u=i[d+1],c=l,h=u),m){case Oi.M:c=i[d++],h=i[d++],l=c,u=h;break;case Oi.L:if(t){if(Yi(l,u,i[d],i[d+1],e,n,a))return!0}else s+=ii(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Oi.C:if(t){if(B6(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=H6(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Oi.Q:if(t){if(EP(l,u,i[d++],i[d++],i[d],i[d+1],e,n,a))return!0}else s+=W6(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Oi.A:var y=i[d++],f=i[d++],_=i[d++],S=i[d++],b=i[d++],A=i[d++];d+=1;var C=!!(1-i[d++]);v=Math.cos(b)*_+y,p=Math.sin(b)*S+f,x?(c=v,h=p):s+=ii(l,u,v,p,n,a);var M=(n-y)*S/_+y;if(t){if(z6(y,f,S,b,b+A,C,e,M,a))return!0}else s+=U6(y,f,S,b,b+A,C,M,a);l=Math.cos(b+A)*_+y,u=Math.sin(b+A)*S+f;break;case Oi.R:c=l=i[d++],h=u=i[d++];var L=i[d++],D=i[d++];if(v=c+L,p=h+D,t){if(Yi(c,h,v,h,e,n,a)||Yi(v,h,v,p,e,n,a)||Yi(v,p,c,p,e,n,a)||Yi(c,p,c,h,e,n,a))return!0}else s+=ii(v,h,v,p,n,a),s+=ii(c,p,c,h,n,a);break;case Oi.Z:if(t){if(Yi(l,u,c,h,e,n,a))return!0}else s+=ii(l,u,c,h,n,a);l=c,u=h;break}}return!t&&!F6(u,h)&&(s+=ii(l,u,c,h,n,a)||0),s!==0}function Y6(r,e,t){return kP(r,0,!1,e,t)}function Z6(r,e,t,n){return kP(r,e,!0,t,n)}var _p=bt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cs),X6={style:bt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gd.style)},Gy=Ba.concat(["invisible","culling","z","z2","zlevel","parent"]),Ut=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Gy.length;++s)a[Gy[s]]=this[Gy[s]];a.__dirty|=yn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=jt(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=t[o];o==="style"?this.style?K(this.style,s):this.useStyle(s):o==="shape"?K(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(ht(t)){var n=dp(t,0);return n>.5?l_:n>.2?PW:u_}else if(t)return u_}return l_},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(ht(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=dp(t,0)<s_;if(i===o)return n}},e.prototype.buildPath=function(t,n,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Pl},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Va(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Pl)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect(),o=this.style;if(t=a[0],n=a[1],i.contain(t,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Z6(s,l/u,t,n)))return!0}if(this.hasFill())return Y6(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Pl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=n:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Pl)},e.prototype.createStyle=function(t){return ud(_p,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,n,a,i,o,s){r.prototype._applyStateObj.call(this,t,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=K({},a.shape),K(u,n.shape)):(u=K({},i?this.shape:a.shape),K(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},h=jt(u),v=0;v<h.length;v++){var p=h[v];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),a,i=0;i<t.length;i++){var o=t[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},e.prototype.getAnimationStyleProps=function(){return X6},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=(function(i){Le(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ct(t.style)},o.prototype.getDefaultShape=function(){return Ct(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(n.prototype[a]=t[a]);return n},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=yn|yc|Pl})(),e})(Un),$6=bt({strokeFirst:!0,font:so,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},_p),jl=(function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return ud($6,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var a=Ah(n,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Un);jl.prototype.type="tspan";var j6=bt({x:0,y:0},Cs),q6={style:bt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gd.style)};function K6(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var dr=(function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ud(j6,t)},e.prototype._getSize=function(t){var n=this.style,a=n[t];if(a!=null)return a;var i=K6(n.image)?n.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return q6},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new zt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Un);dr.prototype.type="image";function Q6(r,e){var t=e.x,n=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+c>a&&(h=u+c,u*=a/h,c*=a/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+c>i&&(h=s+c,s*=i/h,c*=i/h),r.moveTo(t+s,n),r.lineTo(t+a-l,n),l!==0&&r.arc(t+a-l,n+l,l,-Math.PI/2,0),r.lineTo(t+a,n+i-u),u!==0&&r.arc(t+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(t+c,n+i),c!==0&&r.arc(t+c,n+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var Bl=Math.round;function OP(r,e,t){if(e){var n=e.x1,a=e.x2,i=e.y1,o=e.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Bl(n*2)===Bl(a*2)&&(r.x1=r.x2=ys(n,s,!0)),Bl(i*2)===Bl(o*2)&&(r.y1=r.y2=ys(i,s,!0))),r}}function NP(r,e,t){if(e){var n=e.x,a=e.y,i=e.width,o=e.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ys(n,s,!0),r.y=ys(a,s,!0),r.width=Math.max(ys(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(ys(a+o,s,!1)-r.y,o===0?0:1)),r}}function ys(r,e,t){if(!e)return r;var n=Bl(r*2);return(n+Bl(e))%2===0?n/2:(n+(t?1:-1))/2}var J6=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),t8={},Kt=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new J6},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=NP(t8,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Q6(t,n):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ut);Kt.prototype.type="rect";var uA={fill:"#000"},cA=2,e8={style:bt({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},gd.style)},re=(function(r){Le(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=uA,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,a8(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new zt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||uA},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var a=n.rich,i=t.rich||a&&{};return K(t,n),a&&i?(this._mergeRich(i,a),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,n){for(var a=jt(n),i=0;i<a.length;i++){var o=a[i];t[o]=t[o]||{},K(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return e8},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||so,a=t.padding,i=yA(t),o=T6(i,t),s=Hy(t),l=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,h=o.contentWidth,v=o.lines,p=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var m=t.x||0,x=t.y||0,y=t.align||d.align||"left",f=t.verticalAlign||d.verticalAlign||"top",_=m,S=Rl(x,o.contentHeight,f);if(s||a){var b=_c(m,c,y),A=Rl(x,u,f);s&&this._renderBackground(t,t,b,A,c,u)}S+=p/2,a&&(_=gA(m,y,a),f==="top"?S+=a[0]:f==="bottom"&&(S-=a[2]));for(var C=0,M=!1,L=dA("fill"in t?t.fill:(M=!0,d.fill)),D=pA("stroke"in t?t.stroke:!l&&(!d.autoStroke||M)?(C=cA,d.stroke):null),P=t.textShadowBlur>0,E=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),O=o.calculatedLineHeight,N=0;N<v.length;N++){var z=this._getOrCreateChild(jl),G=z.createStyle();z.useStyle(G),G.text=v[N],G.x=_,G.y=S,G.textAlign=y,G.textBaseline="middle",G.opacity=t.opacity,G.strokeFirst=!0,P&&(G.shadowBlur=t.textShadowBlur||0,G.shadowColor=t.textShadowColor||"transparent",G.shadowOffsetX=t.textShadowOffsetX||0,G.shadowOffsetY=t.textShadowOffsetY||0),G.stroke=D,G.fill=L,D&&(G.lineWidth=t.lineWidth||C,G.lineDash=t.lineDash,G.lineDashOffset=t.lineDashOffset||0),G.font=n,fA(G,t),S+=p,E&&z.setBoundingRect(new zt(_c(G.x,h,G.textAlign),Rl(G.y,O,G.textBaseline),h,O))}},e.prototype._updateRichTexts=function(){var t=this.style,n=yA(t),a=L6(n,t),i=a.width,o=a.outerWidth,s=a.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,v=t.align||h.align,p=t.verticalAlign||h.verticalAlign;this.isTruncated=!!a.isTruncated;var d=_c(u,o,v),m=Rl(c,s,p),x=d,y=m;l&&(x+=l[3],y+=l[0]);var f=x+i;Hy(t)&&this._renderBackground(t,t,d,m,o,s);for(var _=!!t.backgroundColor,S=0;S<a.lines.length;S++){for(var b=a.lines[S],A=b.tokens,C=A.length,M=b.lineHeight,L=b.width,D=0,P=x,E=f,O=C-1,N=void 0;D<C&&(N=A[D],!N.align||N.align==="left");)this._placeToken(N,t,M,y,P,"left",_),L-=N.width,P+=N.width,D++;for(;O>=0&&(N=A[O],N.align==="right");)this._placeToken(N,t,M,y,E,"right",_),L-=N.width,E-=N.width,O--;for(P+=(i-(P-x)-(f-E)-L)/2;D<=O;)N=A[D],this._placeToken(N,t,M,y,P+N.width/2,"center",_),P+=N.width,D++;y+=M}},e.prototype._placeToken=function(t,n,a,i,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=i+a/2;c==="top"?h=i+t.height/2:c==="bottom"&&(h=i+a-t.height/2);var v=!t.isLineHolder&&Hy(u);v&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var p=!!u.backgroundColor,d=t.textPadding;d&&(o=gA(o,s,d),h-=t.height/2-d[0]-t.innerHeight/2);var m=this._getOrCreateChild(jl),x=m.createStyle();m.useStyle(x);var y=this._defaultStyle,f=!1,_=0,S=dA("fill"in u?u.fill:"fill"in n?n.fill:(f=!0,y.fill)),b=pA("stroke"in u?u.stroke:"stroke"in n?n.stroke:!p&&!l&&(!y.autoStroke||f)?(_=cA,y.stroke):null),A=u.textShadowBlur>0||n.textShadowBlur>0;x.text=t.text,x.x=o,x.y=h,A&&(x.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,x.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",x.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,x.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),x.textAlign=s,x.textBaseline="middle",x.font=t.font||so,x.opacity=Ea(u.opacity,n.opacity,1),fA(x,u),b&&(x.lineWidth=Ea(u.lineWidth,n.lineWidth,_),x.lineDash=Rt(u.lineDash,n.lineDash),x.lineDashOffset=n.lineDashOffset||0,x.stroke=b),S&&(x.fill=S);var C=t.contentWidth,M=t.contentHeight;m.setBoundingRect(new zt(_c(x.x,C,x.textAlign),Rl(x.y,M,x.textBaseline),C,M))},e.prototype._renderBackground=function(t,n,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,v=l&&!h,p=t.borderRadius,d=this,m,x;if(v||t.lineHeight||u&&c){m=this._getOrCreateChild(Kt),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=p,m.dirtyShape()}if(v){var f=m.style;f.fill=l||null,f.fillOpacity=Rt(t.fillOpacity,1)}else if(h){x=this._getOrCreateChild(dr),x.onload=function(){d.dirtyStyle()};var _=x.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var f=m.style;f.lineWidth=u,f.stroke=c,f.strokeOpacity=Rt(t.strokeOpacity,1),f.lineDash=t.borderDash,f.lineDashOffset=t.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(f.strokeFirst=!0,f.lineWidth*=2)}var S=(m||x).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ea(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return zP(t)&&(n=[t.fontStyle,t.fontWeight,BP(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&oa(n)||t.textFont||t.font},e})(Un),r8={left:!0,right:1,center:1},n8={top:1,bottom:1,middle:1},hA=["fontStyle","fontWeight","fontSize","fontFamily"];function BP(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?R1+"px":r+"px"}function fA(r,e){for(var t=0;t<hA.length;t++){var n=hA[t],a=e[n];a!=null&&(r[n]=a)}}function zP(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function a8(r){return vA(r),R(r.rich,vA),r}function vA(r){if(r){r.font=re.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||r8[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||n8[t]?t:"top";var n=r.padding;n&&(r.padding=z1(r.padding))}}function pA(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function dA(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function gA(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function yA(r){var e=r.text;return e!=null&&(e+=""),e}function Hy(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Dt=Qt(),d_=function(r,e,t,n){if(n){var a=Dt(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Dt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},mA=1,_A={},VP=Qt(),K1=Qt(),Q1=0,Ch=1,md=2,Yr=["emphasis","blur","select"],Jc=["normal","emphasis","blur","select"],uu=10,i8=9,Ms="highlight",qv="downplay",Nc="select",Kv="unselect",Bc="toggleSelect";function vl(r){return r!=null&&r!=="none"}function _d(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function FP(r){_d(r,"emphasis",md)}function GP(r){r.hoverState===md&&_d(r,"normal",Q1)}function J1(r){_d(r,"blur",Ch)}function HP(r){r.hoverState===Ch&&_d(r,"normal",Q1)}function o8(r){r.selected=!0}function s8(r){r.selected=!1}function xA(r,e,t){e(r,t)}function wi(r,e,t){xA(r,e,t),r.isGroup&&r.traverse(function(n){xA(n,e,t)})}function xp(r,e){switch(e){case"emphasis":r.hoverState=md;break;case"normal":r.hoverState=Q1;break;case"blur":r.hoverState=Ch;break;case"select":r.selected=!0}}function l8(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function u8(r,e,t,n){var a=t&&Gt(t,"select")>=0,i=!1;if(r instanceof Ut){var o=VP(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(vl(s)||vl(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=K({},n),u=K({},u),u.fill=s):!vl(u.fill)&&vl(s)?(i=!0,n=K({},n),u=K({},u),u.fill=t_(s)):!vl(u.stroke)&&vl(l)&&(i||(n=K({},n),u=K({},u)),u.stroke=t_(l)),n.style=u}}if(n&&n.z2==null){i||(n=K({},n));var c=r.z2EmphasisLift;n.z2=r.z2+(c??uu)}return n}function c8(r,e,t){if(t&&t.z2==null){t=K({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??i8)}return t}function h8(r,e,t){var n=Gt(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:l8(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Wy(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return u8(this,r,e,t);if(r==="blur")return h8(this,r,t);if(r==="select")return c8(this,r,t)}return t}function Ns(r){r.stateProxy=Wy;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Wy),t&&(t.stateProxy=Wy)}function wA(r,e){!ZP(r,e)&&!r.__highByOuter&&wi(r,FP)}function SA(r,e){!ZP(r,e)&&!r.__highByOuter&&wi(r,GP)}function di(r,e){r.__highByOuter|=1<<(e||0),wi(r,FP)}function gi(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&wi(r,GP)}function WP(r){wi(r,J1)}function tx(r){wi(r,HP)}function UP(r){wi(r,o8)}function YP(r){wi(r,s8)}function ZP(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function XP(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=K1(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){HP(u)}),s&&t.push(i)),o.isBlured=!1}),R(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function g_(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,c){for(var h=0;h<c.length;h++){var v=u.getItemGraphicEl(c[h]);v&&tx(v)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!v||e==="series"&&c)){var p=n.getViewOfSeriesModel(u);if(p.group.traverse(function(x){x.__highByOuter&&c&&e==="self"||J1(x)}),Rr(e))i(u.getData(),e);else if(Tt(e))for(var d=jt(e),m=0;m<d.length;m++)i(u.getData(d[m]),e[d[m]]);l.push(u),K1(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var h=n.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function y_(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){K1(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){J1(i)})}}}function f8(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=ks(a,e);i=(tt(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Dt(o);g_(n,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);c!=null&&g_(n,c,h,t)}}}function ex(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(Dt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function v8(r,e,t){var n=Dt(r),a=ex(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&y_(n.componentMainType,n.componentIndex,t),R(i,function(s){return wA(s,e)})):(g_(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&y_(n.componentMainType,n.componentIndex,t),wA(r,e))}function p8(r,e,t){XP(t);var n=Dt(r),a=ex(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?R(a,function(i){return SA(i,e)}):SA(r,e)}function d8(r,e,t){if(__(e)){var n=e.dataType,a=r.getData(n),i=ks(a,e);tt(i)||(i=[i]),r[e.type===Bc?"toggleSelect":e.type===Nc?"select":"unselect"](i,n)}}function bA(r){var e=r.getAllData();R(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?UP(i):YP(i)})})}function g8(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();R(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Ls(r,e,t){ms(r,!0),wi(r,Ns),m_(r,e,t)}function y8(r){ms(r,!1)}function Ne(r,e,t,n){n?y8(r):Ls(r,e,t)}function m_(r,e,t){var n=Dt(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var AA=["emphasis","blur","select"],m8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Sr(r,e,t,n){t=t||"itemStyle";for(var a=0;a<AA.length;a++){var i=AA[a],o=e.getModel([i,t]),s=r.ensureState(i);s.style=n?n(o):o[m8[t]]()}}function ms(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function th(r){return!!(r&&r.__highDownDispatcher)}function _8(r,e,t){var n=Dt(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function x8(r){var e=_A[r];return e==null&&mA<=32&&(e=_A[r]=mA++),e}function __(r){var e=r.type;return e===Nc||e===Kv||e===Bc}function TA(r){var e=r.type;return e===Ms||e===qv}function w8(r){var e=VP(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var pl=Va.CMD,S8=[[],[],[]],CA=Math.sqrt,b8=Math.atan2;function $P(r,e){if(e){var t=r.data,n=r.len(),a,i,o,s,l,u,c=pl.M,h=pl.C,v=pl.L,p=pl.R,d=pl.A,m=pl.Q;for(o=0,s=0;o<n;){switch(a=t[o++],s=o,i=0,a){case c:i=1;break;case v:i=1;break;case h:i=3;break;case m:i=2;break;case d:var x=e[4],y=e[5],f=CA(e[0]*e[0]+e[1]*e[1]),_=CA(e[2]*e[2]+e[3]*e[3]),S=b8(-e[1]/_,e[0]/f);t[o]*=f,t[o++]+=x,t[o]*=_,t[o++]+=y,t[o++]*=f,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case p:u[0]=t[o++],u[1]=t[o++],wr(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],wr(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var b=S8[l];b[0]=t[o++],b[1]=t[o++],wr(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Uy=Math.sqrt,Qf=Math.sin,Jf=Math.cos,Yu=Math.PI;function MA(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function x_(r,e){return(r[0]*e[0]+r[1]*e[1])/(MA(r)*MA(e))}function LA(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(x_(r,e))}function DA(r,e,t,n,a,i,o,s,l,u,c){var h=l*(Yu/180),v=Jf(h)*(r-t)/2+Qf(h)*(e-n)/2,p=-1*Qf(h)*(r-t)/2+Jf(h)*(e-n)/2,d=v*v/(o*o)+p*p/(s*s);d>1&&(o*=Uy(d),s*=Uy(d));var m=(a===i?-1:1)*Uy((o*o*(s*s)-o*o*(p*p)-s*s*(v*v))/(o*o*(p*p)+s*s*(v*v)))||0,x=m*o*p/s,y=m*-s*v/o,f=(r+t)/2+Jf(h)*x-Qf(h)*y,_=(e+n)/2+Qf(h)*x+Jf(h)*y,S=LA([1,0],[(v-x)/o,(p-y)/s]),b=[(v-x)/o,(p-y)/s],A=[(-1*v-x)/o,(-1*p-y)/s],C=LA(b,A);if(x_(b,A)<=-1&&(C=Yu),x_(b,A)>=1&&(C=0),C<0){var M=Math.round(C/Yu*1e6)/1e6;C=Yu*2+M%2*Yu}c.addData(u,f,_,o,s,S,C,h,i)}var A8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,T8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function C8(r){var e=new Va;if(!r)return e;var t=0,n=0,a=t,i=n,o,s=Va.CMD,l=r.match(A8);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),v=void 0,p=c.match(T8)||[],d=p.length,m=0;m<d;m++)p[m]=parseFloat(p[m]);for(var x=0;x<d;){var y=void 0,f=void 0,_=void 0,S=void 0,b=void 0,A=void 0,C=void 0,M=t,L=n,D=void 0,P=void 0;switch(h){case"l":t+=p[x++],n+=p[x++],v=s.L,e.addData(v,t,n);break;case"L":t=p[x++],n=p[x++],v=s.L,e.addData(v,t,n);break;case"m":t+=p[x++],n+=p[x++],v=s.M,e.addData(v,t,n),a=t,i=n,h="l";break;case"M":t=p[x++],n=p[x++],v=s.M,e.addData(v,t,n),a=t,i=n,h="L";break;case"h":t+=p[x++],v=s.L,e.addData(v,t,n);break;case"H":t=p[x++],v=s.L,e.addData(v,t,n);break;case"v":n+=p[x++],v=s.L,e.addData(v,t,n);break;case"V":n=p[x++],v=s.L,e.addData(v,t,n);break;case"C":v=s.C,e.addData(v,p[x++],p[x++],p[x++],p[x++],p[x++],p[x++]),t=p[x-2],n=p[x-1];break;case"c":v=s.C,e.addData(v,p[x++]+t,p[x++]+n,p[x++]+t,p[x++]+n,p[x++]+t,p[x++]+n),t+=p[x-2],n+=p[x-1];break;case"S":y=t,f=n,D=e.len(),P=e.data,o===s.C&&(y+=t-P[D-4],f+=n-P[D-3]),v=s.C,M=p[x++],L=p[x++],t=p[x++],n=p[x++],e.addData(v,y,f,M,L,t,n);break;case"s":y=t,f=n,D=e.len(),P=e.data,o===s.C&&(y+=t-P[D-4],f+=n-P[D-3]),v=s.C,M=t+p[x++],L=n+p[x++],t+=p[x++],n+=p[x++],e.addData(v,y,f,M,L,t,n);break;case"Q":M=p[x++],L=p[x++],t=p[x++],n=p[x++],v=s.Q,e.addData(v,M,L,t,n);break;case"q":M=p[x++]+t,L=p[x++]+n,t+=p[x++],n+=p[x++],v=s.Q,e.addData(v,M,L,t,n);break;case"T":y=t,f=n,D=e.len(),P=e.data,o===s.Q&&(y+=t-P[D-4],f+=n-P[D-3]),t=p[x++],n=p[x++],v=s.Q,e.addData(v,y,f,t,n);break;case"t":y=t,f=n,D=e.len(),P=e.data,o===s.Q&&(y+=t-P[D-4],f+=n-P[D-3]),t+=p[x++],n+=p[x++],v=s.Q,e.addData(v,y,f,t,n);break;case"A":_=p[x++],S=p[x++],b=p[x++],A=p[x++],C=p[x++],M=t,L=n,t=p[x++],n=p[x++],v=s.A,DA(M,L,t,n,A,C,_,S,b,v,e);break;case"a":_=p[x++],S=p[x++],b=p[x++],A=p[x++],C=p[x++],M=t,L=n,t+=p[x++],n+=p[x++],v=s.A,DA(M,L,t,n,A,C,_,S,b,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),t=a,n=i),o=v}return e.toStatic(),e}var jP=(function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ut);function qP(r){return r.setData!=null}function KP(r,e){var t=C8(r),n=K({},e);return n.buildPath=function(a){if(qP(a)){a.setData(t.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;t.rebuildPath(i,1)}},n.applyTransform=function(a){$P(t,a),this.dirtyShape()},n}function QP(r,e){return new jP(KP(r,e))}function M8(r,e){var t=KP(r,e),n=(function(a){Le(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i})(jP);return n}function L8(r,e){for(var t=[],n=r.length,a=0;a<n;a++){var i=r[a];t.push(i.getUpdatedPathProxy(!0))}var o=new Ut(e);return o.createPathProxy(),o.buildPath=function(s){if(qP(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function rx(r,e){e=e||{};var t=new Ut;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?$P(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var D8=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Si=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new D8},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ut);Si.prototype.type="circle";var I8=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),xd=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new I8},e.prototype.buildPath=function(t,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),t.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),t.closePath()},e})(Ut);xd.prototype.type="ellipse";var JP=Math.PI,Yy=JP*2,jo=Math.sin,dl=Math.cos,P8=Math.acos,Mr=Math.atan2,IA=Math.abs,zc=Math.sqrt,xc=Math.max,wa=Math.min,ea=1e-4;function R8(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,h=s-i,v=h*l-c*u;if(!(v*v<ea))return v=(c*(e-i)-h*(r-a))/v,[r+v*l,e+v*u]}function tv(r,e,t,n,a,i,o){var s=r-t,l=e-n,u=(o?i:-i)/zc(s*s+l*l),c=u*l,h=-u*s,v=r+c,p=e+h,d=t+c,m=n+h,x=(v+d)/2,y=(p+m)/2,f=d-v,_=m-p,S=f*f+_*_,b=a-i,A=v*m-d*p,C=(_<0?-1:1)*zc(xc(0,b*b*S-A*A)),M=(A*_-f*C)/S,L=(-A*f-_*C)/S,D=(A*_+f*C)/S,P=(-A*f+_*C)/S,E=M-x,O=L-y,N=D-x,z=P-y;return E*E+O*O>N*N+z*z&&(M=D,L=P),{cx:M,cy:L,x0:-c,y0:-h,x1:M*(a/b-1),y1:L*(a/b-1)}}function E8(r){var e;if(tt(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function k8(r,e){var t,n=xc(e.r,0),a=xc(e.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,v=!!e.clockwise,p=IA(u-l),d=p>Yy&&p%Yy;if(d>ea&&(p=d),!(n>ea))r.moveTo(c,h);else if(p>Yy-ea)r.moveTo(c+n*dl(l),h+n*jo(l)),r.arc(c,h,n,l,u,!v),a>ea&&(r.moveTo(c+a*dl(u),h+a*jo(u)),r.arc(c,h,a,u,l,v));else{var m=void 0,x=void 0,y=void 0,f=void 0,_=void 0,S=void 0,b=void 0,A=void 0,C=void 0,M=void 0,L=void 0,D=void 0,P=void 0,E=void 0,O=void 0,N=void 0,z=n*dl(l),G=n*jo(l),U=a*dl(u),W=a*jo(u),Y=p>ea;if(Y){var q=e.cornerRadius;q&&(t=E8(q),m=t[0],x=t[1],y=t[2],f=t[3]);var Q=IA(n-a)/2;if(_=wa(Q,y),S=wa(Q,f),b=wa(Q,m),A=wa(Q,x),L=C=xc(_,S),D=M=xc(b,A),(C>ea||M>ea)&&(P=n*dl(u),E=n*jo(u),O=a*dl(l),N=a*jo(l),p<JP)){var rt=R8(z,G,O,N,P,E,U,W);if(rt){var ct=z-rt[0],vt=G-rt[1],_t=P-rt[0],Nt=E-rt[1],Jt=1/jo(P8((ct*_t+vt*Nt)/(zc(ct*ct+vt*vt)*zc(_t*_t+Nt*Nt)))/2),Mt=zc(rt[0]*rt[0]+rt[1]*rt[1]);L=wa(C,(n-Mt)/(Jt+1)),D=wa(M,(a-Mt)/(Jt-1))}}}if(!Y)r.moveTo(c+z,h+G);else if(L>ea){var mt=wa(y,L),Pt=wa(f,L),gt=tv(O,N,z,G,n,mt,v),St=tv(P,E,U,W,n,Pt,v);r.moveTo(c+gt.cx+gt.x0,h+gt.cy+gt.y0),L<C&&mt===Pt?r.arc(c+gt.cx,h+gt.cy,L,Mr(gt.y0,gt.x0),Mr(St.y0,St.x0),!v):(mt>0&&r.arc(c+gt.cx,h+gt.cy,mt,Mr(gt.y0,gt.x0),Mr(gt.y1,gt.x1),!v),r.arc(c,h,n,Mr(gt.cy+gt.y1,gt.cx+gt.x1),Mr(St.cy+St.y1,St.cx+St.x1),!v),Pt>0&&r.arc(c+St.cx,h+St.cy,Pt,Mr(St.y1,St.x1),Mr(St.y0,St.x0),!v))}else r.moveTo(c+z,h+G),r.arc(c,h,n,l,u,!v);if(!(a>ea)||!Y)r.lineTo(c+U,h+W);else if(D>ea){var mt=wa(m,D),Pt=wa(x,D),gt=tv(U,W,P,E,a,-Pt,v),St=tv(z,G,O,N,a,-mt,v);r.lineTo(c+gt.cx+gt.x0,h+gt.cy+gt.y0),D<M&&mt===Pt?r.arc(c+gt.cx,h+gt.cy,D,Mr(gt.y0,gt.x0),Mr(St.y0,St.x0),!v):(Pt>0&&r.arc(c+gt.cx,h+gt.cy,Pt,Mr(gt.y0,gt.x0),Mr(gt.y1,gt.x1),!v),r.arc(c,h,a,Mr(gt.cy+gt.y1,gt.cx+gt.x1),Mr(St.cy+St.y1,St.cx+St.x1),v),mt>0&&r.arc(c+St.cx,h+St.cy,mt,Mr(St.y1,St.x1),Mr(St.y0,St.x0),!v))}else r.lineTo(c+U,h+W),r.arc(c,h,a,u,l,v)}r.closePath()}}}var O8=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Zr=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new O8},e.prototype.buildPath=function(t,n){k8(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ut);Zr.prototype.type="sector";var N8=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Mh=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new N8},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.PI*2;t.moveTo(a+n.r,i),t.arc(a,i,n.r,0,o,!1),t.moveTo(a+n.r0,i),t.arc(a,i,n.r0,0,o,!0)},e})(Ut);Mh.prototype.type="ring";function B8(r,e,t,n){var a=[],i=[],o=[],s=[],l,u,c,h;if(n){c=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,p=r.length;v<p;v++)ji(c,c,r[v]),qi(h,h,r[v]);ji(c,c,n[0]),qi(h,h,n[1])}for(var v=0,p=r.length;v<p;v++){var d=r[v];if(t)l=r[v?v-1:p-1],u=r[(v+1)%p];else if(v===0||v===p-1){a.push(li(r[v]));continue}else l=r[v-1],u=r[v+1];gs(i,u,l),Wv(i,i,e);var m=Y0(d,l),x=Y0(d,u),y=m+x;y!==0&&(m/=y,x/=y),Wv(o,i,-m),Wv(s,i,x);var f=b2([],d,o),_=b2([],d,s);n&&(qi(f,f,c),ji(f,f,h),qi(_,_,c),ji(_,_,h)),a.push(f),a.push(_)}return t&&a.push(a.shift()),a}function tR(r,e,t){var n=e.smooth,a=e.points;if(a&&a.length>=2){if(n){var i=B8(a,n,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var z8=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Xr=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new z8},e.prototype.buildPath=function(t,n){tR(t,n,!0)},e})(Ut);Xr.prototype.type="polygon";var V8=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),$r=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new V8},e.prototype.buildPath=function(t,n){tR(t,n,!1)},e})(Ut);$r.prototype.type="polyline";var F8={},G8=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),ir=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new G8},e.prototype.buildPath=function(t,n){var a,i,o,s;if(this.subPixelOptimize){var l=OP(F8,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e})(Ut);ir.prototype.type="line";var Jr=[],H8=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function PA(r,e,t){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(t?O2:rr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?O2:rr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?q0:vr)(r.x1,r.cpx1,r.x2,e),(t?q0:vr)(r.y1,r.cpy1,r.y2,e)]}var Lh=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new H8},e.prototype.buildPath=function(t,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(t.moveTo(a,i),c==null||h==null?(v<1&&($c(a,l,o,v,Jr),l=Jr[1],o=Jr[2],$c(i,u,s,v,Jr),u=Jr[1],s=Jr[2]),t.quadraticCurveTo(l,u,o,s)):(v<1&&(uo(a,l,c,o,v,Jr),l=Jr[1],c=Jr[2],o=Jr[3],uo(i,u,h,s,v,Jr),u=Jr[1],h=Jr[2],s=Jr[3]),t.bezierCurveTo(l,u,c,h,o,s)))},e.prototype.pointAt=function(t){return PA(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=PA(this.shape,t,!0);return ou(n,n)},e})(Ut);Lh.prototype.type="bezier-curve";var W8=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),wd=(function(r){Le(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new W8},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),h=Math.sin(s);t.moveTo(c*o+a,h*o+i),t.arc(a,i,o,s,l,!u)},e})(Ut);wd.prototype.type="arc";var nx=(function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),a=0;a<t.length;a++)n=n||t[a].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(n[0],n[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(t,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ut.prototype.getBoundingRect.call(this)},e})(Ut),eR=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),Dh=(function(r){Le(e,r);function e(t,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e})(eR),rR=(function(r){Le(e,r);function e(t,n,a,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(eR),qo=[0,0],Ko=[0,0],ev=new Bt,rv=new Bt,wp=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Bt;for(var n=0;n<2;n++)this._axes[n]=new Bt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),t)for(var u=0;u<4;u++)n[u].transform(t);Bt.sub(a[0],n[1],n[0]),Bt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,a=!t;return ev.set(1/0,1/0),rv.set(0,0),!this._intersectCheckOneSide(this,e,ev,rv,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,ev,rv,a,-1)&&(n=!1,a)||a||Bt.copy(t,n?ev:rv),n},r.prototype._intersectCheckOneSide=function(e,t,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,qo),this._getProjMinMaxOnAxis(l,t._corners,Ko),qo[1]<Ko[0]||qo[0]>Ko[1]){if(s=!1,i)return s;var c=Math.abs(Ko[0]-qo[1]),h=Math.abs(qo[0]-Ko[1]);Math.min(c,h)>a.len()&&(c<h?Bt.scale(a,u,-c*o):Bt.scale(a,u,h*o))}else if(n){var c=Math.abs(Ko[0]-qo[1]),h=Math.abs(qo[0]-Ko[1]);Math.min(c,h)<n.len()&&(c<h?Bt.scale(n,u,c*o):Bt.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var a=this._axes[e],i=this._origin,o=t[0].dot(a)+i[e],s=o,l=o,u=1;u<t.length;u++){var c=t[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},r})(),U8=[],Y8=(function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new zt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(U8)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e})(Un),nR=Qt();function cu(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,h=void 0;n?(u=Rt(n.duration,200),c=Rt(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(h=i.delay)),wt(h)&&(h=h(t,a)),wt(u)&&(u=u(t));var v={duration:u||0,delay:h,easing:c};return v}else return null}function ax(r,e,t,n,a,i,o){var s=!1,l;wt(a)?(o=i,i=a,a=null):Tt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=cu(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var h=c.duration,v=c.delay,p=c.easing,d={duration:h,delay:v||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function oe(r,e,t,n,a,i){ax("update",r,e,t,n,a,i)}function Pe(r,e,t,n,a,i){ax("enter",r,e,t,n,a,i)}function Wl(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function co(r,e,t,n,a,i){Wl(r)||ax("leave",r,e,t,n,a,i)}function RA(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),co(r,{style:{opacity:0}},e,t,n)}function eh(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||RA(a,e,t,n)}):RA(r,e,t,n)}function ha(r){nR(r).oldStyle=r.style}function Z8(r){return nR(r).oldStyle}var Sp=Math.max,bp=Math.min,w_={};function X8(r){return Ut.extend(r)}var $8=M8;function j8(r,e){return $8(r,e)}function fa(r,e){w_[r]=e}function ix(r){if(w_.hasOwnProperty(r))return w_[r]}function Sd(r,e,t,n){var a=QP(r,e);return t&&(n==="center"&&(t=iR(t,a.getBoundingRect())),oR(a,t)),a}function aR(r,e,t){var n=new dr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(iR(e,i))}}});return n}function iR(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Fn=L8;function oR(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function ql(r,e){return OP(r,r,{lineWidth:e}),r}function q8(r){return NP(r.shape,r.shape,r.style),r}var Qv=ys;function Ds(r,e){for(var t=cd([]);r&&r!==e;)ui(t,r.getLocalTransform(),t),r=r.parent;return t}function ua(r,e,t){return e&&!Rr(e)&&(e=oi.getLocalTransform(e)),t&&(e=su([],e)),wr([],r,e)}function bd(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=ua(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function EA(r){return!r.isGroup}function K8(r){return r.shape!=null}function Ih(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){EA(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return K8(o)&&(s.shape=K({},o.shape)),s}var i=n(r);e.traverse(function(o){if(EA(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),oe(o,l,t,Dt(o).dataIndex)}}})}function sR(r,e){return et(r,function(t){var n=t[0];n=Sp(n,e.x),n=bp(n,e.x+e.width);var a=t[1];return a=Sp(a,e.y),a=bp(a,e.y+e.height),[n,a]})}function Q8(r,e){var t=Sp(r.x,e.x),n=bp(r.x+r.width,e.x+e.width),a=Sp(r.y,e.y),i=bp(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Ph(r,e,t){var n=K({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),bt(a,t),new dr(n)):Sd(r.replace("path://",""),n,t,"center")}function wc(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(lR(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function lR(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,h=s-i,v=Zy(c,h,l,u);if(J8(v))return!1;var p=r-a,d=e-i,m=Zy(p,d,l,u)/v;if(m<0||m>1)return!1;var x=Zy(p,d,c,h)/v;return!(x<0||x>1)}function Zy(r,e,t,n){return r*n-t*e}function J8(r){return r<=1e-6&&r>=-1e-6}function Hs(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=ht(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&R(jt(l),function(c){dt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Dt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:bt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function kA(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function go(r,e){if(r)if(tt(r))for(var t=0;t<r.length;t++)kA(r[t],e);else kA(r,e)}fa("circle",Si);fa("ellipse",xd);fa("sector",Zr);fa("ring",Mh);fa("polygon",Xr);fa("polyline",$r);fa("rect",Kt);fa("line",ir);fa("bezierCurve",Lh);fa("arc",wd);const Ws=Object.freeze(Object.defineProperty({__proto__:null,Arc:wd,BezierCurve:Lh,BoundingRect:zt,Circle:Si,CompoundPath:nx,Ellipse:xd,Group:Lt,Image:dr,IncrementalDisplayable:Y8,Line:ir,LinearGradient:Dh,OrientedBoundingRect:wp,Path:Ut,Point:Bt,Polygon:Xr,Polyline:$r,RadialGradient:rR,Rect:Kt,Ring:Mh,Sector:Zr,Text:re,applyTransform:ua,clipPointsByRect:sR,clipRectByRect:Q8,createIcon:Ph,extendPath:j8,extendShape:X8,getShapeClass:ix,getTransform:Ds,groupTransition:Ih,initProps:Pe,isElementRemoved:Wl,lineLineIntersect:lR,linePolygonIntersect:wc,makeImage:aR,makePath:Sd,mergePath:Fn,registerShape:fa,removeElement:co,removeElementWithFadeOut:eh,resizePath:oR,setTooltipConfig:Hs,subPixelOptimize:Qv,subPixelOptimizeLine:ql,subPixelOptimizeRect:q8,transformDirection:bd,traverseElements:go,updateProps:oe},Symbol.toStringTag,{value:"Module"}));var Ad={};function uR(r,e){for(var t=0;t<Yr.length;t++){var n=Yr[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function S_(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=wt(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<Yr.length;u++){var c=Yr[u],h=e[c];l[c]=Rt(n?n.getFormattedLabel(a,c,null,i,h&&h.get("formatter")):null,s)}return l}function br(r,e,t,n){t=t||Ad;for(var a=r instanceof re,i=!1,o=0;o<Jc.length;o++){var s=e[Jc[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new re,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=S_(t,e),c=e.normal,h=!!c.getShallow("show"),v=Ce(c,n&&n.normal,t,!1,!a);v.text=u.normal,a||r.setTextConfig(Ap(c,t,!1));for(var o=0;o<Yr.length;o++){var p=Yr[o],s=e[p];if(s){var d=l.ensureState(p),m=!!Rt(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=Ce(s,n&&n[p],t,!0,!a),d.style.text=u[p],!a){var x=r.ensureState(p);x.textConfig=Ap(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),t.enableTextSetter&&(hu(l).setLabelText=function(y){var f=S_(t,e,y);uR(l,f)})}else l&&(l.ignore=!0);r.dirty()}function lr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Yr.length;n++){var a=Yr[n];t[a]=r.getModel([a,e])}return t}function Ce(r,e,t,n,a){var i={};return t7(i,r,t,n,a),e&&K(i,e),i}function Ap(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=Rt(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function t7(r,e,t,n,a){t=t||Ad;var i=e.ecModel,o=i&&i.option.textStyle,s=e7(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);zA(l[u]={},c,o,t,n,a,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("minMargin");v!=null&&(r.margin=v),zA(r,e,o,t,n,a,!0,!1)}function e7(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Ad).rich;if(t){e=e||{};for(var n=jt(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var OA=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],NA=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],BA=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function zA(r,e,t,n,a,i,o,s){t=!a&&t||Ad;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Rt(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var v=Rt(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var p=Rt(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var d=Rt(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var m=0;m<OA.length;m++){var x=OA[m],y=Rt(e.getShallow(x),t[x]);y!=null&&(r[x]=y)}for(var m=0;m<NA.length;m++){var x=NA[m],y=e.getShallow(x);y!=null&&(r[x]=y)}if(r.verticalAlign==null){var f=e.getShallow("baseline");f!=null&&(r.verticalAlign=f)}if(!o||!n.disableBox){for(var m=0;m<BA.length;m++){var x=BA[m],y=e.getShallow(x);y!=null&&(r[x]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function ox(r,e){var t=e&&e.getModel("textStyle");return oa([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var hu=Qt();function cR(r,e,t,n){if(r){var a=hu(r);a.prevValue=a.value,a.value=t;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=e)}}function hR(r,e,t,n,a){var i=hu(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Rt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var h=MP(t,i.precision,s,l,c);i.interpolatedValue=c===1?null:h;var v=S_({labelDataIndex:e,labelFetcher:a,defaultText:o?o(h):h+""},i.statesModels,h);uR(r,v)}r.percent=0,(i.prevValue==null?Pe:oe)(r,{percent:1},n,e,null,u)}var r7=["textStyle","color"],Xy=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$y=new re,n7=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(r7):null)},r.prototype.getFont=function(){return ox({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xy.length;n++)t[Xy[n]]=this.getShallow(Xy[n]);return $y.useStyle(t),$y.update(),$y.getBoundingRect()},r})(),fR=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a7=Os(fR),i7=(function(){function r(){}return r.prototype.getLineStyle=function(e){return a7(this,e)},r})(),vR=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o7=Os(vR),s7=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return o7(this,e,t)},r})(),ye=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Ot(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Ct(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Yt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();$1(ye);g6(ye);qe(ye,i7);qe(ye,s7);qe(ye,w6);qe(ye,n7);var l7=Math.round(Math.random()*10);function fu(r){return[r||"",l7++].join("_")}function u7(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=Ia(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=Ia(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function c7(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),c=u.graph,h=u.noEntryList,v={};for(R(i,function(f){v[f]=!0});h.length;){var p=h.pop(),d=c[p],m=!!v[p];m&&(s.call(l,p,d.originalDeps.slice()),delete v[p]),R(d.successor,m?y:x)}R(v,function(){var f="";throw new Error(f)});function x(f){c[f].entryCount--,c[f].entryCount===0&&h.push(f)}function y(f){v[f]=!0,x(f)}};function t(i){var o={},s=[];return R(i,function(l){var u=n(o,l),c=u.originalDeps=e(l),h=a(c,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),R(h,function(v){Gt(u.predecessor,v)<0&&u.predecessor.push(v);var p=n(o,v);Gt(p.successor,v)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return R(i,function(l){Gt(o,l)>=0&&s.push(l)}),s}}function yo(r,e){return Ot(Ot({},r,!0),e,!0)}const h7={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},f7={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Tp="ZH",sx="EN",Ul=sx,Jv={},lx={},pR=Yt.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ul).toUpperCase();return r.indexOf(Tp)>-1?Tp:Ul})():Ul;function dR(r,e){r=r.toUpperCase(),lx[r]=new ye(e),Jv[r]=e}function v7(r){if(ht(r)){var e=Jv[r.toUpperCase()]||{};return r===Tp||r===sx?Ct(e):Ot(Ct(e),Ct(Jv[Ul]),!1)}else return Ot(Ct(r),Ct(Jv[Ul]),!1)}function b_(r){return lx[r]}function p7(){return lx[Ul]}dR(sx,h7);dR(Tp,f7);var ux=1e3,cx=ux*60,Vc=cx*60,Gn=Vc*24,VA=Gn*365,Sc={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}"},nv="{yyyy}-{MM}-{dd}",FA={year:"{yyyy}",month:"{yyyy}-{MM}",day:nv,hour:nv+" "+Sc.hour,minute:nv+" "+Sc.minute,second:nv+" "+Sc.second,millisecond:Sc.none},jy=["year","month","day","hour","minute","second","millisecond"],gR=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ni(r,e){return r+="","0000".substr(0,e-r.length)+r}function Yl(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function d7(r){return r===Yl(r)}function g7(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Td(r,e,t,n){var a=za(r),i=a[hx(t)](),o=a[Zl(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Cd(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[rh(t)](),h=(c-1)%12+1,v=a[Md(t)](),p=a[Ld(t)](),d=a[Dd(t)](),m=c>=12?"pm":"am",x=m.toUpperCase(),y=n instanceof ye?n:b_(n||pR)||p7(),f=y.getModel("time"),_=f.get("month"),S=f.get("monthAbbr"),b=f.get("dayOfWeek"),A=f.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ni(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ni(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ni(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,A[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ni(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ni(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ni(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ni(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Ni(d,3)).replace(/{S}/g,d+"")}function y7(r,e,t,n,a){var i=null;if(ht(t))i=t;else if(wt(t))i=t(r.value,e,{level:r.level});else{var o=K({},Sc);if(r.level>0)for(var s=0;s<jy.length;++s)o[jy[s]]="{primary|"+o[jy[s]]+"}";var l=t?t.inherit===!1?t:bt(t,o):o,u=yR(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=gR.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(tt(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Td(new Date(r.value),i,a,n)}function yR(r,e){var t=za(r),n=t[Zl(e)]()+1,a=t[Cd(e)](),i=t[rh(e)](),o=t[Md(e)](),s=t[Ld(e)](),l=t[Dd(e)](),u=l===0,c=u&&s===0,h=c&&o===0,v=h&&i===0,p=v&&a===1,d=p&&n===1;return d?"year":p?"month":v?"day":h?"hour":c?"minute":u?"second":"millisecond"}function GA(r,e,t){var n=ae(r)?za(r):r;switch(e=e||yR(r,t),e){case"year":return n[hx(t)]();case"half-year":return n[Zl(t)]()>=6?1:0;case"quarter":return Math.floor((n[Zl(t)]()+1)/4);case"month":return n[Zl(t)]();case"day":return n[Cd(t)]();case"half-day":return n[rh(t)]()/24;case"hour":return n[rh(t)]();case"minute":return n[Md(t)]();case"second":return n[Ld(t)]();case"millisecond":return n[Dd(t)]()}}function hx(r){return r?"getUTCFullYear":"getFullYear"}function Zl(r){return r?"getUTCMonth":"getMonth"}function Cd(r){return r?"getUTCDate":"getDate"}function rh(r){return r?"getUTCHours":"getHours"}function Md(r){return r?"getUTCMinutes":"getMinutes"}function Ld(r){return r?"getUTCSeconds":"getSeconds"}function Dd(r){return r?"getUTCMilliseconds":"getMilliseconds"}function m7(r){return r?"setUTCFullYear":"setFullYear"}function mR(r){return r?"setUTCMonth":"setMonth"}function _R(r){return r?"setUTCDate":"setDate"}function xR(r){return r?"setUTCHours":"setHours"}function wR(r){return r?"setUTCMinutes":"setMinutes"}function SR(r){return r?"setUTCSeconds":"setSeconds"}function bR(r){return r?"setUTCMilliseconds":"setMilliseconds"}function AR(r){if(!_P(r))return ht(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function TR(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var vu=z1;function A_(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&oa(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?za(r):r;if(isNaN(+l)){if(s)return"-"}else return Td(l,n,t)}if(e==="ordinal")return G0(r)?a(r):ae(r)&&i(r)?r+"":"-";var u=pi(r);return i(u)?AR(u):G0(r)?a(r):typeof r=="boolean"?r+"":"-"}var HA=["a","b","c","d","e","f","g"],qy=function(r,e){return"{"+r+(e??"")+"}"};function CR(r,e,t){tt(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=HA[i];r=r.replace(qy(o),qy(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(qy(HA[l],s),t?Gr(u):u)}return r}function _7(r,e,t){return R(e,function(n,a){r=r.replace("{"+a+"}",n)}),r}function x7(r,e){var t=ht(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Gr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gr(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Bs(r,e){return e=e||"transparent",ht(r)?r:Tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Cp(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var tp=R,MR=["left","right","top","bottom","width","height"],_s=[["width","left","right"],["height","top","bottom"]];function fx(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),p,d;if(r==="horizontal"){var m=c.width+(v?-v.x+c.x:0);p=i+m,p>n||l.newline?(i=0,p=m,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var x=c.height+(v?-v.y+c.y:0);d=o+x,d>a||l.newline?(i+=s+t,o=0,d=x,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=p+t:o=d+t)})}var Is=fx;Et(fx,"vertical");Et(fx,"horizontal");function w7(r,e,t){var n=e.width,a=e.height,i=ut(r.left,n),o=ut(r.top,a),s=ut(r.right,n),l=ut(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=vu(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Qe(r,e,t){t=vu(t||0);var n=e.width,a=e.height,i=ut(r.left,n),o=ut(r.top,a),s=ut(r.right,n),l=ut(r.bottom,a),u=ut(r.width,n),c=ut(r.height,a),h=t[2]+t[0],v=t[1]+t[3],p=r.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(c)&&(c=a-l-h-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-c-h),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-h;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(c)&&(c=a-h-o-(l||0));var d=new zt(i+t[3],o+t[0],u,c);return d.margin=t,d}function Id(r,e,t,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new zt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=Qe(bt({width:u.width,height:u.height},e),t,n),v=o?h.x-u.x:0,p=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=p):(i.x+=v,i.y+=p),i===r&&r.markRedraw(),!0}function S7(r,e){return r[_s[e][0]]!=null||r[_s[e][1]]!=null&&r[_s[e][2]]!=null}function nh(r){var e=r.layoutMode||r.constructor.layoutMode;return Tt(e)?e:e?{type:e}:null}function ho(r,e,t){var n=t&&t.ignoreSize;!tt(n)&&(n=[n,n]);var a=o(_s[0],0),i=o(_s[1],1);u(_s[0],r,a),u(_s[1],r,i);function o(c,h){var v={},p=0,d={},m=0,x=2;if(tp(c,function(_){d[_]=r[_]}),tp(c,function(_){s(e,_)&&(v[_]=d[_]=e[_]),l(v,_)&&p++,l(d,_)&&m++}),n[h])return l(e,c[1])?d[c[2]]=null:l(e,c[2])&&(d[c[1]]=null),d;if(m===x||!p)return d;if(p>=x)return v;for(var y=0;y<c.length;y++){var f=c[y];if(!s(v,f)&&s(r,f)){v[f]=r[f];break}}return v}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,v){tp(c,function(p){h[p]=v[p]})}}function pu(r){return LR({},r)}function LR(r,e){return e&&r&&tp(MR,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var b7=Qt(),$t=(function(r){j(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=fu("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=nh(this),i=a?pu(t):{},o=n.getTheme();Ot(t,o.get(this.mainType)),Ot(t,this.getDefaultOption()),a&&ho(t,i,a)},e.prototype.mergeOption=function(t,n){Ot(this.option,t,!0);var a=nh(this);a&&ho(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!v6(t))return t.defaultOption;var n=b7(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Ot(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return Th(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(ye);DP($t,ye);pd($t);u7($t);c7($t,A7);function A7(r){var e=[];return R($t.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=et(e,function(t){return Ia(t).main}),r!=="dataset"&&Gt(e,"dataset")<=0&&e.unshift("dataset"),e}var DR="";typeof navigator<"u"&&(DR=navigator.platform||"");var gl="rgba(0, 0, 0, 0.2)";const T7={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:DR.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var IR=yt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Zn="original",Er="arrayRows",Xn="objectRows",Ga="keyedColumns",ao="typedArray",PR="unknown",ka="column",du="row",xr={Must:1,Might:2,Not:3},RR=Qt();function C7(r){RR(r).datasetMap=yt()}function ER(r,e,t){var n={},a=px(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=RR(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,h;r=r.slice(),R(r,function(m,x){var y=Tt(m)?m:r[x]={name:m};y.type==="ordinal"&&c==null&&(c=x,h=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});R(r,function(m,x){var y=m.name,f=d(m);if(c==null){var _=v.valueWayDim;p(n[y],_,f),p(o,_,f),v.valueWayDim+=f}else if(c===x)p(n[y],0,f),p(i,0,f);else{var _=v.categoryWayDim;p(n[y],_,f),p(o,_,f),v.categoryWayDim+=f}});function p(m,x,y){for(var f=0;f<y;f++)m.push(x+f)}function d(m){var x=m.dimsDef;return x?x.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function vx(r,e,t){var n={},a=px(r);if(!a)return n;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Xn||i===Ga)&&R(o,function(c,h){(Tt(c)?c.name:c)==="name"&&(s=h)});var l=(function(){for(var c={},h={},v=[],p=0,d=Math.min(5,t);p<d;p++){var m=OR(e.data,i,e.seriesLayoutBy,o,e.startIndex,p);v.push(m);var x=m===xr.Not;if(x&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!x&&v[c.n]===xr.Not)&&(c.n=p),y(c)&&v[c.n]!==xr.Not)return c;x||(m===xr.Might&&h.v==null&&p!==s&&(h.v=p),(h.n==null||h.n===h.v)&&(h.n=p))}function y(f){return f.v!=null&&f.n!=null}return y(c)?c:y(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function px(r){var e=r.get("data",!0);if(!e)return Th(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},$e).models[0]}function M7(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Th(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},$e).models}function kR(r,e){return OR(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function OR(r,e,t,n,a,i){var o,s=5;if(on(r))return xr.Not;var l,u;if(n){var c=n[i];Tt(c)?(l=c.name,u=c.type):ht(c)&&(l=c)}if(u!=null)return u==="ordinal"?xr.Must:xr.Not;if(e===Er){var h=r;if(t===du){for(var v=h[i],p=0;p<(v||[]).length&&p<s;p++)if((o=S(v[a+p]))!=null)return o}else for(var p=0;p<h.length&&p<s;p++){var d=h[a+p];if(d&&(o=S(d[i]))!=null)return o}}else if(e===Xn){var m=r;if(!l)return xr.Not;for(var p=0;p<m.length&&p<s;p++){var x=m[p];if(x&&(o=S(x[l]))!=null)return o}}else if(e===Ga){var y=r;if(!l)return xr.Not;var v=y[l];if(!v||on(v))return xr.Not;for(var p=0;p<v.length&&p<s;p++)if((o=S(v[p]))!=null)return o}else if(e===Zn)for(var f=r,p=0;p<f.length&&p<s;p++){var x=f[p],_=lu(x);if(!tt(_))return xr.Not;if((o=S(_[i]))!=null)return o}function S(b){var A=ht(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return A?xr.Might:xr.Not;if(A&&b!=="-")return xr.Must}return xr.Not}var T_=yt();function L7(r,e){Ur(T_.get(r)==null&&e),T_.set(r,e)}function D7(r,e,t){var n=T_.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var WA=Qt(),I7=Qt(),dx=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=me(this.get("color",!0)),i=this.get("colorLayer",!0);return NR(this,WA,a,i,e,t,n)},r.prototype.clearColorPalette=function(){R7(this,WA)},r})();function C_(r,e,t,n){var a=me(r.get(["aria","decal","decals"]));return NR(r,I7,a,null,e,t,n)}function P7(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function NR(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?t:P7(n,o);if(c=c||t,!(!c||!c.length)){var h=c[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%c.length,h}}function R7(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var av,Zu,UA,YA="\0_ec_inner",E7=1,gx=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ye(i),this._locale=new ye(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=$A(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,$A(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?UA(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&R(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=yt(),u=n&&n.replaceMergeMainTypeMap;C7(this),R(t,function(h,v){h!=null&&($t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?Ct(h):Ot(a[v],h,!0))}),u&&u.each(function(h,v){$t.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),$t.topologicalTravel(s,$t.getAllClassMainTypes(),c,this);function c(h){var v=D7(this,h,me(t[h])),p=i.get(h),d=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=AP(p,v,d);a6(m,h,$t),a[h]=null,i.set(h,null),o.set(h,0);var x=[],y=[],f=0,_;R(m,function(S,b){var A=S.existing,C=S.newOption;if(!C)A&&(A.mergeOption({},this),A.optionUpdated({},!1));else{var M=h==="series",L=$t.getClass(h,S.keyInfo.subType,!M);if(!L)return;if(h==="tooltip"){if(_)return;_=!0}if(A&&A.constructor===L)A.name=S.keyInfo.name,A.mergeOption(C,this),A.optionUpdated(C,!1);else{var D=K({componentIndex:b},S.keyInfo);A=new L(C,this,this,D),K(A,D),S.brandNew&&(A.__requireNewView=!0),A.init(C,this,this),A.optionUpdated(null,!0)}}A?(x.push(A.option),y.push(A),f++):(x.push(void 0),y.push(void 0))},this),a[h]=x,i.set(h,y),o.set(h,f),h==="series"&&av(this)}this._seriesIndices||av(this)},e.prototype.getOption=function(){var t=Ct(this.option);return R(t,function(n,a){if($t.hasClass(a)){for(var i=me(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Qc(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[YA],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],R(me(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=ZA("id",i,s):o!=null?l=ZA("name",o,s):l=fe(s,function(u){return!!u}),XA(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):fe(this._componentsMap.get(a),function(u){return!!u});return l(XA(o,t));function s(u){var c=a+"Index",h=a+"Id",v=a+"Name";return u&&(u[c]!=null||u[h]!=null||u[v]!=null)?{mainType:a,index:u[c],id:u[h],name:u[v]}:null}function l(u){return t.filter?fe(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(wt(t)){var o=n,s=t;i.each(function(h,v){for(var p=0;h&&p<h.length;p++){var d=h[p];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=ht(t)?i.get(t):Tt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=Ke(t,null);return fe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return fe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return fe(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){Zu(this),R(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){R(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){Zu(this),R(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return R(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return Zu(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){Zu(this);var a=[];R(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=yt(a)},e.prototype.restoreData=function(t){av(this);var n=this._componentsMap,a=[];n.each(function(i,o){$t.hasClass(o)&&a.push(o)}),$t.topologicalTravel(a,$t.getAllClassMainTypes(),function(i){R(n.get(i),function(o){o&&(i!=="series"||!k7(o,t))&&o.restoreData()})})},e.internalField=(function(){av=function(t){var n=t._seriesIndices=[];R(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=yt(n)},Zu=function(t){},UA=function(t,n){t.option={},t.option[YA]=E7,t._componentsMap=yt({series:[]}),t._componentsCount=yt();var a=n.aria;Tt(a)&&a.enabled==null&&(a.enabled=!0),O7(n,t._theme.option),Ot(n,T7,!1),t._mergeOption(n,null)}})(),e})(ye);function k7(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function O7(r,e){var t=r.color&&!r.colorLayer;R(e,function(n,a){a==="colorLayer"&&t||$t.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Ot(r[a],n,!1):Ct(n):r[a]==null&&(r[a]=n))})}function ZA(r,e,t){if(tt(e)){var n=yt();return R(e,function(i){if(i!=null){var o=Ke(i,null);o!=null&&n.set(i,!0)}}),fe(t,function(i){return i&&n.get(i[r])})}else{var a=Ke(e,null);return fe(t,function(i){return i&&a!=null&&i[r]===a})}}function XA(r,e){return e.hasOwnProperty("subType")?fe(r,function(t){return t&&t.subType===e.subType}):r}function $A(r){var e=yt();return r&&R(me(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}qe(gx,dx);var N7=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],BR=(function(){function r(e){R(N7,function(t){this[t]=ft(e[t],e)},this)}return r})(),Ky={},Rh=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];R(Ky,function(a,i){var o=a.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){R(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Ky[e]=t},r.get=function(e){return Ky[e]},r})(),B7=/^(min|max)?(.+)$/,z7=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(R(me(e.series),function(o){o&&o.data&&on(o.data)&&cp(o.data)}),R(me(e.dataset),function(o){o&&o.source&&on(o.source)&&cp(o.source)})),e=Ct(e);var a=this._optionBackup,i=V7(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Ct(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=Ct(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)F7(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!H7(o,this._currentMediaIndices)&&(s=et(o,function(c){return Ct(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},r})();function V7(r,e,t){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,c=!!r.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||c)&&(r.options=r.media=null),i=r),c&&tt(u)&&R(u,function(p){p&&p.option&&(p.query?n.push(p):a||(a=p))}),v(i),R(l,function(p){return v(p)}),R(n,function(p){return v(p.option)});function v(p){R(e,function(d){d(p,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function F7(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return R(r,function(i,o){var s=o.match(B7);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();G7(n[u],i,l)||(a=!1)}}),a}function G7(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function H7(r,e){return r.join(",")===e.join(",")}var Jn=R,ah=Tt,jA=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Qy(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=jA.length;t<n;t++){var a=jA[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Ot(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Ot(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Pr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,bt(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function bc(r){Pr(r,"itemStyle"),Pr(r,"lineStyle"),Pr(r,"areaStyle"),Pr(r,"label"),Pr(r,"labelLine"),Pr(r,"upperLabel"),Pr(r,"edgeLabel")}function Xe(r,e){var t=ah(r)&&r[e],n=ah(t)&&t.textStyle;if(n)for(var a=0,i=eA.length;a<i;a++){var o=eA[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function On(r){r&&(bc(r),Xe(r,"label"),r.emphasis&&Xe(r.emphasis,"label"))}function W7(r){if(ah(r)){Qy(r),bc(r),Xe(r,"label"),Xe(r,"upperLabel"),Xe(r,"edgeLabel"),r.emphasis&&(Xe(r.emphasis,"label"),Xe(r.emphasis,"upperLabel"),Xe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Qy(e),On(e));var t=r.markLine;t&&(Qy(t),On(t));var n=r.markArea;n&&On(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!on(i))for(var o=0;o<i.length;o++)On(i[o]);R(r.categories,function(u){bc(u)})}if(a&&!on(a))for(var o=0;o<a.length;o++)On(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)On(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)tt(l[o])?(On(l[o][0]),On(l[o][1])):On(l[o]);r.type==="gauge"?(Xe(r,"axisLabel"),Xe(r,"title"),Xe(r,"detail")):r.type==="treemap"?(Pr(r.breadcrumb,"itemStyle"),R(r.levels,function(u){bc(u)})):r.type==="tree"&&bc(r.leaves)}}function ei(r){return tt(r)?r:r?[r]:[]}function qA(r){return(tt(r)?r[0]:r)||{}}function U7(r,e){Jn(ei(r.series),function(n){ah(n)&&W7(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Jn(t,function(n){Jn(ei(r[n]),function(a){a&&(Xe(a,"axisLabel"),Xe(a.axisPointer,"label"))})}),Jn(ei(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Xe(a,"axisLabel"),Xe(a&&a.axisPointer,"label")}),Jn(ei(r.calendar),function(n){Pr(n,"itemStyle"),Xe(n,"dayLabel"),Xe(n,"monthLabel"),Xe(n,"yearLabel")}),Jn(ei(r.radar),function(n){Xe(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Jn(ei(r.geo),function(n){ah(n)&&(On(n),Jn(ei(n.regions),function(a){On(a)}))}),Jn(ei(r.timeline),function(n){On(n),Pr(n,"label"),Pr(n,"itemStyle"),Pr(n,"controlStyle",!0);var a=n.data;tt(a)&&R(a,function(i){Tt(i)&&(Pr(i,"label"),Pr(i,"itemStyle"))})}),Jn(ei(r.toolbox),function(n){Pr(n,"iconStyle"),Jn(n.feature,function(a){Pr(a,"iconStyle")})}),Xe(qA(r.axisPointer),"label"),Xe(qA(r.tooltip).axisPointer,"label")}function Y7(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function Z7(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function KA(r){r&&R(X7,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var X7=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$7=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jy=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Xu(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Jy.length;t++){var n=Jy[t][1],a=Jy[t][0];e[n]!=null&&(e[a]=e[n])}}function QA(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function JA(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function j7(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function zR(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&zR(r[t].children,e)}function VR(r,e){U7(r,e),r.series=me(r.series),R(r.series,function(t){if(Tt(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),QA(t.label);var a=t.data;if(a&&!on(a))for(var i=0;i<a.length;i++)QA(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=Y7(t,"pointer.color");o!=null&&Z7(t,"itemStyle.color",o)}else if(n==="bar"){Xu(t),Xu(t.backgroundStyle),Xu(t.emphasis);var a=t.data;if(a&&!on(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Xu(a[i]),Xu(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),JA(t),zR(t.data,JA)}else n==="graph"||n==="sankey"?j7(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&bt(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),KA(t)}}),r.dataRange&&(r.visualMap=r.dataRange),R($7,function(t){var n=r[t];n&&(tt(n)||(n=[n]),R(n,function(a){KA(a)}))})}function q7(r){var e=yt();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(K7)}function K7(r){R(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,h){var v=o.get(e.stackedDimension,h);if(isNaN(v))return a;var p,d;s?d=o.getRawIndex(h):p=o.get(e.stackedByDimension,h);for(var m=NaN,x=t-1;x>=0;x--){var y=r[x];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,p)),d>=0){var f=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&f>0||l==="negative"&&f<0||l==="samesign"&&v>=0&&f>0||l==="samesign"&&v<=0&&f<0){v=XW(v,f),m=f;break}}}return n[0]=v,n[1]=m,n})})}var Pd=(function(){function r(e){this.data=e.data||(e.sourceFormat===Ga?{}:[]),this.sourceFormat=e.sourceFormat||PR,this.seriesLayoutBy=e.seriesLayoutBy||ka,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&kR(this,n)===xr.Must&&(a.type="ordinal")}}return r})();function yx(r){return r instanceof Pd}function M_(r,e,t){t=t||FR(r);var n=e.seriesLayoutBy,a=J7(r,t,n,e.sourceHeader,e.dimensions),i=new Pd({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ct(e)});return i}function mx(r){return new Pd({data:r,sourceFormat:on(r)?ao:Zn})}function Q7(r){return new Pd({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Ct(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function FR(r){var e=PR;if(on(r))e=ao;else if(tt(r)){r.length===0&&(e=Er);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(tt(a)||on(a)){e=Er;break}else if(Tt(a)){e=Xn;break}}}}else if(Tt(r)){for(var i in r)if(dt(r,i)&&Rr(r[i])){e=Ga;break}}return e}function J7(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:tT(a),startIndex:o,dimensionsDetectedCount:i};if(e===Er){var s=r;n==="auto"||n==null?eT(function(u){u!=null&&u!=="-"&&(ht(u)?o==null&&(o=1):o=0)},t,s,10):o=ae(n)?n:n?1:0,!a&&o===1&&(a=[],eT(function(u,c){a[c]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===du?s.length:s[0]?s[0].length:null}else if(e===Xn)a||(a=tU(r));else if(e===Ga)a||(a=[],R(r,function(u,c){a.push(c)}));else if(e===Zn){var l=lu(r[0]);i=tt(l)&&l.length||1}return{startIndex:o,dimensionsDefine:tT(a),dimensionsDetectedCount:i}}function tU(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return jt(t)}function tT(r){if(r){var e=yt();return et(r,function(t,n){t=Tt(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function eT(r,e,t,n){if(e===du)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function GR(r){var e=r.sourceFormat;return e===Xn||e===Ga}var Qo,Jo,ts,rT,nT,HR=(function(){function r(e,t){var n=yx(e)?e:mx(e);this._source=n;var a=this._data=n.data;n.sourceFormat===ao&&(this._offset=0,this._dimSize=t,this._data=a),nT(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;nT=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,p=rT[_x(u,c)];if(K(o,p),u===ao)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=WR(u,c);o.getItem=ft(d,null,s,h,v);var m=UR(u,c);o.count=ft(m,null,s,h,v)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,h=0;h<u;h++)s[h]=l[c+h];return s},n=function(o,s,l,u){for(var c=this._data,h=this._dimSize,v=0;v<h;v++){for(var p=u[v],d=p[0]==null?1/0:p[0],m=p[1]==null?-1/0:p[1],x=s-o,y=l[v],f=0;f<x;f++){var _=c[f*h+v];y[o+f]=_,_<d&&(d=_),_>m&&(m=_)}p[0]=d,p[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};rT=(e={},e[Er+"_"+ka]={pure:!0,appendData:i},e[Er+"_"+du]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Xn]={pure:!0,appendData:i},e[Ga]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[Zn]={appendData:i},e[ao]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),aT=function(r,e,t,n){return r[n]},eU=(Qo={},Qo[Er+"_"+ka]=function(r,e,t,n){return r[n+e]},Qo[Er+"_"+du]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Qo[Xn]=aT,Qo[Ga]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];i[o]=l?l[n]:null}return i},Qo[Zn]=aT,Qo);function WR(r,e){var t=eU[_x(r,e)];return t}var iT=function(r,e,t){return r.length},rU=(Jo={},Jo[Er+"_"+ka]=function(r,e,t){return Math.max(0,r.length-e)},Jo[Er+"_"+du]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Jo[Xn]=iT,Jo[Ga]=function(r,e,t){var n=t[0].name,a=r[n];return a?a.length:0},Jo[Zn]=iT,Jo);function UR(r,e){var t=rU[_x(r,e)];return t}var tm=function(r,e,t){return r[e]},nU=(ts={},ts[Er]=tm,ts[Xn]=function(r,e,t){return r[t]},ts[Ga]=tm,ts[Zn]=function(r,e,t){var n=lu(r);return n instanceof Array?n[e]:n},ts[ao]=tm,ts);function YR(r){var e=nU[r];return e}function _x(r,e){return r===Er?r+"_"+e:r}function Kl(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return YR(i)(n,o,s)}else{var l=n;return i===Zn&&(l=lu(n)),l}}}}var aU=/\{@(.+?)\}/g,Rd=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,v=h==="series",p=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&tt(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(wt(i))return l.status=t,l.dimensionIndex=a,i(l);if(ht(i)){var c=CR(i,l);return c.replace(aU,function(h,v){var p=v.length,d=v;d.charAt(0)==="["&&d.charAt(p-1)==="]"&&(d=+d.slice(1,p-1));var m=Kl(s,e,d);if(o&&tt(o.interpolatedValue)){var x=s.getDimensionIndex(d);x>=0&&(m=o.interpolatedValue[x])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(e,t){return Kl(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function oT(r){var e,t;return Tt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Fc(r){return new iU(r)}var iU=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(f){return!(f>=1)&&(f=1),f}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||p<d)){var m=this._progress;if(tt(m))for(var x=0;x<m.length;x++)this._doProgress(m[x],p,d,l,u);else this._doProgress(m,p,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,a,i){sT.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:sT.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),tt(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),sT=(function(){var r,e,t,n,a,i={reset:function(l,u,c,h){e=l,r=u,t=c,n=h,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})();function io(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ae(r)&&r!=null&&r!=="-"&&(r=+za(r)),r==null||r===""?NaN:Number(r))}var oU=yt({number:function(r){return parseFloat(r)},time:function(r){return+za(r)},trim:function(r){return ht(r)?oa(r):r}});function ZR(r){return oU.get(r)}var XR={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},sU=(function(){function r(e,t){if(!ae(t)){var n="";he(n)}this._opFn=XR[e],this._rvalFloat=pi(t)}return r.prototype.evaluate=function(e){return ae(e)?this._opFn(e,this._rvalFloat):this._opFn(pi(e),this._rvalFloat)},r})(),$R=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=ae(e)?e:pi(e),a=ae(t)?t:pi(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ht(e),l=ht(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})(),lU=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=pi(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=pi(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function uU(r,e){return r==="eq"||r==="ne"?new lU(r==="eq",e):dt(XR,r)?new sU(r,e):null}var cU=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return io(e,t)},r})();function hU(r,e){var t=new cU,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ka&&he(o);var s=[],l={},u=r.dimensionsDefine;if(u)R(u,function(m,x){var y=m.name,f={index:x,name:y,displayName:m.displayName};if(s.push(f),y!=null){var _="";dt(l,y)&&he(_),l[y]=f}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var h=WR(a,ka);e.__isBuiltIn&&(t.getRawDataItem=function(m){return h(n,i,s,m)},t.getRawData=ft(fU,null,r)),t.cloneRawData=ft(vU,null,r);var v=UR(a,ka);t.count=ft(v,null,n,i,s);var p=YR(a);t.retrieveValue=function(m,x){var y=h(n,i,s,m);return d(y,x)};var d=t.retrieveValueFromItem=function(m,x){if(m!=null){var y=s[x];if(y)return p(m,x,y.name)}};return t.getDimensionInfo=ft(pU,null,s,l),t.cloneAllDimensionInfo=ft(dU,null,s),t}function fU(r){var e=r.sourceFormat;if(!xx(e)){var t="";he(t)}return r.data}function vU(r){var e=r.sourceFormat,t=r.data;if(!xx(e)){var n="";he(n)}if(e===Er){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===Xn){for(var a=[],i=0,o=t.length;i<o;i++)a.push(K({},t[i]));return a}}function pU(r,e,t){if(t!=null){if(ae(t)||!isNaN(t)&&!dt(e,t))return r[t];if(dt(e,t))return e[t]}}function dU(r){return Ct(r)}var jR=yt();function gU(r){r=Ct(r);var e=r.type,t="";e||he(t);var n=e.split(":");n.length!==2&&he(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,jR.set(e,r)}function yU(r,e,t){var n=me(r),a=n.length,i="";a||he(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=mU(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function mU(r,e,t,n){var a="";e.length||he(a),Tt(r)||he(a);var i=r.type,o=jR.get(i);o||he(a);var s=et(e,function(u){return hU(u,o)}),l=me(o.transform({upstream:s[0],upstreamList:s,config:Ct(r.config)}));return et(l,function(u,c){var h="";Tt(u)||he(h),u.data||he(h);var v=FR(u.data);xx(v)||he(h);var p,d=e[0];if(d&&c===0&&!u.dimensions){var m=d.startIndex;m&&(u.data=d.data.slice(0,m).concat(u.data)),p={seriesLayoutBy:ka,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else p={seriesLayoutBy:ka,sourceHeader:0,dimensions:u.dimensions};return M_(u.data,p,null)})}function xx(r){return r===Er||r===Xn}var Ed="undefined",_U=typeof Uint32Array===Ed?Array:Uint32Array,xU=typeof Uint16Array===Ed?Array:Uint16Array,qR=typeof Int32Array===Ed?Array:Int32Array,lT=typeof Float64Array===Ed?Array:Float64Array,KR={float:lT,int:qR,ordinal:Array,number:Array,time:lT},em;function yl(r){return r>65535?_U:xU}function ml(){return[1/0,-1/0]}function wU(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function uT(r,e,t,n,a){var i=KR[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var L_=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=yt()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=em[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],GR(a),this._dimensions=et(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new KR[t||"float"](this._rawCount),this._rawExtent[i]=ml(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=ml());for(var l=i[e],u=o;u<s;u++){var c=n[u]=t.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var c=a[u];uT(n,u,c.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var p=v-s,d=0;d<i;d++){var c=a[d],m=em.arrayRows.call(this,e[p]||h,c.property,p,d);n[d][v]=m;var x=o[d];m<x[0]&&(x[0]=m),m>x[1]&&(x[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=et(o,function(f){return f.property}),c=0;c<s;c++){var h=o[c];l[c]||(l[c]=ml()),uT(i,c,h.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var v=[],p=e;p<t;p++){v=a.getItem(p,v);for(var d=0;d<s;d++){var m=i[d],x=this._dimValueGetter(v,u[d],p,d);m[p]=x;var y=l[d];x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var n=t.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var a=this._chunks,i=a[e],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var v=this.getRawIndex(c),p=t-i[v],d=Math.abs(p);d<=n&&((d<s||d===s&&p>=0&&l<0)&&(s=d,l=p,u=0),p===l&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=yl(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=yl(n._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],h=n._chunks,v=0;v<a;v++){var p=void 0,d=n.getRawIndex(v);if(l===0)p=t(v);else if(l===1){var m=h[c][d];p=t(m,v)}else{for(var x=0;x<l;x++)s[x]=h[e[x]][d];s[x]=v,p=t.apply(null,s)}p&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=jt(e),i=a.length;if(!i)return this;var o=t.count(),s=yl(t._rawCount),l=new s(o),u=0,c=a[0],h=e[c][0],v=e[c][1],p=t._chunks,d=!1;if(!t._indices){var m=0;if(i===1){for(var x=p[a[0]],y=0;y<n;y++){var f=x[y];(f>=h&&f<=v||isNaN(f))&&(l[u++]=m),m++}d=!0}else if(i===2){for(var x=p[a[0]],_=p[a[1]],S=e[a[1]][0],b=e[a[1]][1],y=0;y<n;y++){var f=x[y],A=_[y];(f>=h&&f<=v||isNaN(f))&&(A>=S&&A<=b||isNaN(A))&&(l[u++]=m),m++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var C=t.getRawIndex(y),f=p[a[0]][C];(f>=h&&f<=v||isNaN(f))&&(l[u++]=C)}else for(var y=0;y<o;y++){for(var M=!0,C=t.getRawIndex(y),L=0;L<i;L++){var D=a[L],f=p[D][C];(f<e[D][0]||f>e[D][1])&&(M=!1)}M&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=ml();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),p=0;p<o;p++)l[p]=a[t[p]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var c=0;c<d.length;c++){var m=t[c],x=d[c],y=u[m],f=a[m];f&&(f[v]=x),x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,v,p=new(yl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),x=Math.min(d+l*2,o),y=(x+m)/2,f=0,_=m;_<x;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(f+=b)}f/=x-m;var A=d,C=Math.min(d+l,o),M=d-1,L=i[u];c=-1,v=A;for(var D=-1,P=0,_=A;_<C;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){P++,D<0&&(D=S);continue}h=Math.abs((M-y)*(b-L)-(M-_)*(f-L)),h>c&&(c=h,v=S)}P>0&&P<C-A&&(p[s++]=Math.min(D,v),v=Math.max(D,v)),p[s++]=v,u=v}return p[s++]=this.getRawIndex(o-1),n._count=s,n._indices=p,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(yl(this._rawCount))(Math.ceil(s/i)*2),u=0,c=0;c<s;c+=i){var h=c,v=o[this.getRawIndex(h)],p=c,d=o[this.getRawIndex(p)],m=i;c+i>s&&(m=s-c);for(var x=0;x<m;x++){var y=this.getRawIndex(c+x),f=o[y];f<v&&(v=f,h=c+x),f>d&&(d=f,p=c+x)}var _=this.getRawIndex(h),S=this.getRawIndex(p);h<p?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),h=i._rawExtent[e]=ml(),v=new(yl(this._rawCount))(Math.ceil(c/l)),p=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var m=0;m<l;m++){var x=this.getRawIndex(d+m);s[m]=u[x]}var y=n(s),f=this.getRawIndex(Math.min(d+a(s,y)||0,c-1));u[f]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[p++]=f}return i._count=p,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=ml();if(!t)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),h=t[c];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Oa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?wU(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ct(this._extent),e._rawExtent=Ct(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return io(t[i],this._dimensions[i])}em={arrayRows:e,objectRows:function(t,n,a,i){return io(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return io(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),QR=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(iv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=on(s)?ao:Zn,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},p=Rt(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=Rt(h.sourceHeader,v.sourceHeader),m=Rt(h.dimensions,v.dimensions),x=p!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m;a=x?[M_(s,{seriesLayoutBy:p,sourceHeader:d,dimensions:m},l)]:[]}else{var y=e;if(n){var f=this._applyTransform(t);a=f.sourceList,i=f.upstreamSignList}else{var _=y.get("source",!0);a=[M_(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&hT(i)}var o,s=[],l=[];return R(e,function(u){u.prepareSource();var c=u.getSource(a||0),h="";a!=null&&!c&&hT(h),s.push(c),l.push(u._getVersionSign())}),n?o=yU(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[Q7(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];iv(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new L_,s.initData(new HR(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(iv(e)){var t=px(e);return t?[t.getSourceManager()]:[]}else return et(M7(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(iv(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function cT(r){var e=r.option.transform;e&&cp(r.option.transform)}function iv(r){return r.mainType==="series"}function hT(r){throw new Error(r)}var SU="line-height:1";function JR(r){var e=r.lineHeight;return e==null?SU:"line-height:"+Gr(e+"")+"px"}function tE(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Gr(n+"")+"px;color:"+Gr(t)+";font-weight:"+Gr(a+""),valueStyle:"font-size:"+Gr(o+"")+"px;color:"+Gr(i)+";font-weight:"+Gr(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var bU=[0,10,20,30],AU=["",`
|
|
28
|
+
`,`
|
|
29
|
+
|
|
30
|
+
`,`
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
`];function ur(r,e){return e.type=r,e}function D_(r){return r.type==="section"}function eE(r){return D_(r)?TU:CU}function rE(r){if(D_(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return R(r.blocks,function(a){var i=rE(a);i>=e&&(e=i+ +(n&&(!i||D_(a)&&!a.noHeader)))}),e}return 0}function TU(r,e,t,n){var a=e.noHeader,i=MU(rE(e)),o=[],s=e.blocks||[];Ur(!s||tt(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(dt(u,l)){var c=new $R(u[l],null);s.sort(function(m,x){return c.evaluate(m.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(m,x){var y=e.valueFormatter,f=eE(m)(y?K(K({},r),{valueFormatter:y}):r,m,x>0?i.html:0,n);f!=null&&o.push(f)});var h=r.renderMode==="richText"?o.join(i.richText):I_(n,o.join(""),a?t:i.html);if(a)return h;var v=A_(e.header,"ordinal",r.useUTC),p=tE(n,r.renderMode).nameStyle,d=JR(n);return r.renderMode==="richText"?nE(r,v,p)+i.richText+h:I_(n,'<div style="'+p+";"+d+';">'+Gr(v)+"</div>"+h,t)}function CU(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(S){return S=tt(S)?S:[S],et(S,function(b,A){return A_(b,tt(p)?p[A]:p,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),v=i?"":A_(l,"ordinal",u),p=e.valueType,d=o?[]:c(e.value,e.dataIndex),m=!s||!i,x=!s&&i,y=tE(n,a),f=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":h)+(i?"":nE(r,v,f))+(o?"":IU(r,d,m,x,_)):I_(n,(s?"":h)+(i?"":LU(v,!s,f))+(o?"":DU(d,m,x,_)),t)}}function fT(r,e,t,n,a,i){if(r){var o=eE(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function MU(r){return{html:bU[r],richText:AU[r]}}function I_(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=JR(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function LU(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Gr(r)+"</span>"}function DU(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=tt(r)?r:[r],'<span style="'+i+";"+n+'">'+et(r,function(o){return Gr(o)}).join(" ")+"</span>"}function nE(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function IU(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(tt(e)?e.join(" "):e,i)}function aE(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return Bs(n)}function iE(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var rm=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=xP()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=x7({color:t,type:e,renderMode:n,markerId:a});return ht(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};tt(t)?R(t,function(i){return K(n,i)}):K(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function oE(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=tt(s),u=aE(e,t),c,h,v,p;if(o>1||l&&!o){var d=PU(s,e,t,i,u);c=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,p=d.inlineValues[0]}else if(o){var m=a.getDimensionInfo(i[0]);p=c=Kl(a,t,i[0]),h=m.type}else p=c=l?s[0]:s;var x=Z1(e),y=x&&e.name||"",f=a.getName(t),_=n?y:f;return ur("section",{header:y,noHeader:n||!x,sortParam:p,blocks:[ur("nameValue",{markerType:"item",markerColor:u,name:_,noName:!oa(_),value:c,valueType:h,dataIndex:t})].concat(v||[])})}function PU(r,e,t,n,a){var i=e.getData(),o=Oa(r,function(h,v,p){var d=i.getDimensionInfo(p);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(h){c(Kl(i,t,h),h)}):R(r,c);function c(h,v){var p=i.getDimensionInfo(v);!p||p.otherDims.tooltip===!1||(o?u.push(ur("nameValue",{markerType:"subItem",markerColor:a,name:p.displayName,value:h,valueType:p.type})):(s.push(h),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Bi=Qt();function ov(r,e){return r.getName(e)||r.getId(e)}var ep="__universalTransitionEnabled",Me=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Fc({count:EU,reset:kU}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Bi(this).sourceManager=new QR(this);i.prepareSource();var o=this.getInitialData(t,a);pT(o,this),this.dataTask.context.data=o,Bi(this).dataBeforeProcessed=o,vT(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=nh(this),i=a?pu(t):{},o=this.subType;$t.hasClass(o)&&(o+="Series"),Ot(t,n.getTheme().get(this.subType)),Ot(t,this.getDefaultOption()),Es(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&ho(t,i,a)},e.prototype.mergeOption=function(t,n){t=Ot(this.option,t,!0),this.fillDataTextStyle(t.data);var a=nh(this);a&&ho(this.option,t,a);var i=Bi(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);pT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Bi(this).dataBeforeProcessed=o,vT(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!on(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Es(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=P_(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Bi(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=P_(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Bi(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return yt(t)},e.prototype.getSourceManager=function(){return Bi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Bi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,n,a){return oE({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Yt.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=dx.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=ov(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=jt(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ov(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ep])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var h=n[c],v=ov(t,h);u[v]=!0,this._selectedDataIndicesMap[v]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var p=n[l-1],v=ov(t,p);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=t.getRawIndex(p),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return $t.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})($t);qe(Me,Rd);qe(Me,dx);DP(Me,$t);function vT(r){var e=r.name;Z1(r)||(r.name=RU(r)||e)}function RU(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return R(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function EU(r){return r.model.getRawData().count()}function kU(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),OU}function OU(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pT(r,e){R(Xc(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Et(NU,e))})}function NU(r,e){var t=P_(r);return t&&t.setOutputEnd((e||this).count()),e}function P_(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var Ee=(function(){function r(){this.group=new Lt,this.uid=fu("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();$1(Ee);pd(Ee);function gu(){var r=Qt();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var sE=Qt(),BU=gu(),we=(function(){function r(){this.group=new Lt,this.uid=fu("viewChart"),this.renderTask=Fc({plan:zU,reset:VU}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&gT(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&gT(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateLayout=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){go(this.group,e)},r.markUpdateMethod=function(e,t){sE(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function dT(r,e,t){r&&th(r)&&(e==="emphasis"?di:gi)(r,t)}function gT(r,e,t){var n=ks(r,e),a=e&&e.highlightKey!=null?x8(e.highlightKey):null;n!=null?R(me(n),function(i){dT(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){dT(i,t,a)})}$1(we);pd(we);function zU(r){return BU(r.model)}function VU(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&sE(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),FU[l]}var FU={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Mp="\0__throttleOriginMethod",yT="\0__throttleRate",mT="\0__throttleType";function Sx(r,e,t){var n,a=0,i=0,o=null,s,l,u,c;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var p=[],d=0;d<arguments.length;d++)p[d]=arguments[d];n=new Date().getTime(),l=this,u=p;var m=c||e,x=c||t;c=null,s=n-(x?a:i)-m,clearTimeout(o),x?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(p){c=p},v}function yu(r,e,t,n){var a=r[e];if(a){var i=a[Mp]||a,o=a[mT],s=a[yT];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=Sx(i,t,n==="debounce"),a[Mp]=i,a[mT]=n,a[yT]=t}return a}}function ih(r,e){var t=r[e];t&&t[Mp]&&(t.clear&&t.clear(),r[e]=t[Mp])}var _T=Qt(),xT={itemStyle:Os(vR,!0),lineStyle:Os(fR,!0)},GU={lineStyle:"stroke",itemStyle:"fill"};function lE(r,e){var t=r.visualStyleMapper||xT[e];return t||(console.warn("Unknown style type '"+e+"'."),xT.itemStyle)}function uE(r,e){var t=r.visualDrawType||GU[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var HU={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=lE(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=uE(r,n),u=o[l],c=wt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||wt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||wt(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,d){var m=r.getDataParams(d),x=K({},o);x[l]=c(m),p.setItemVisual(d,"style",x)}}}},$u=new ye,WU={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=lE(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$u.option=l[n];var u=a($u),c=o.ensureUniqueItemVisual(s,"style");K(c,u),$u.option.decal&&(o.setItemVisual(s,"decal",$u.option.decal),$u.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},UU={performRawSeries:!0,overallReset:function(r){var e=yt();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+n,i=e.get(a);i||(i={},e.set(a,i)),_T(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),a={},i=t.getData(),o=_T(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=uE(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],h=i.getItemVisual(c,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(c,"style"),p=n.getName(u)||u+"",d=n.count();v[l]=t.getColorFromPalette(p,o,d)}})}})}},sv=Math.PI;function YU(r,e){e=e||{},bt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Lt,n=new Kt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new re({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Kt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new wd({shape:{startAngle:-sv/2,endAngle:-sv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:sv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:sv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var cE=(function(){function r(e,t,n,a){this._stageTaskMap=yt(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=yt();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Ur(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;R(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),h=c.seriesTaskMap,v=c.overallTask;if(v){var p,d=v.agentStubMap;d.each(function(x){s(a,x)&&(x.dirty(),p=!0)}),p&&v.dirty(),o.updatePayload(v,n);var m=o.getPerformArgs(v,a.block);d.each(function(x){x.perform(m)}),v.perform(m)&&(i=!0)}else h&&h.each(function(x,y){s(a,x)&&x.dirty();var f=o.getPerformArgs(x,a.block);f.skip=!l.performRawSeries&&t.isSeriesFiltered(x.context.model),o.updatePayload(x,n),x.perform(f)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.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)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=yt(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(h){var v=h.uid,p=s.set(v,o&&o.get(v)||Fc({plan:qU,reset:KU,count:JU}));p.context={model:h,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,p)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Fc({reset:ZU});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=yt(),u=e.seriesType,c=e.getTargetSeries,h=!0,v=!1,p="";Ur(!e.createOnAllSeries,p),u?n.eachRawSeriesByType(u,d):c?c(n,a).each(d):(h=!1,R(n.getSeries(),d));function d(m){var x=m.uid,y=l.set(x,s&&s.get(x)||(v=!0,Fc({reset:XU,onDirty:jU})));y.context={model:m,overallProgress:h},y.agent=o,y.__block=h,i._pipe(m,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return wt(e)&&(e={overallReset:e,seriesType:t9(e)}),e.uid=fu("stageHandler"),t&&(e.visualType=t),e},r})();function ZU(r){r.overallReset(r.ecModel,r.api,r.payload)}function XU(r){return r.overallProgress&&$U}function $U(){this.agent.dirty(),this.getDownstream().dirty()}function jU(){this.agent&&this.agent.dirty()}function qU(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function KU(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=me(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?et(e,function(t,n){return hE(n)}):QU}var QU=hE(0);function hE(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function JU(r){return r.data.count()}function t9(r){Lp=null;try{r(oh,fE)}catch{}return Lp}var oh={},fE={},Lp;vE(oh,gx);vE(fE,BR);oh.eachSeriesByType=oh.eachRawSeriesByType=function(r){Lp=r};oh.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Lp=r.subType)};function vE(r,e){for(var t in e.prototype)r[t]=We}var wT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const e9={color:wT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wT]};var Ir="#B9B8CE",ST="#100C2A",lv=function(){return{axisLine:{lineStyle:{color:Ir}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},bT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],pE={darkMode:!0,color:bT,backgroundColor:ST,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ir},pageTextStyle:{color:Ir}},textStyle:{color:Ir},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ir}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ir},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ir}},timeline:{lineStyle:{color:Ir},label:{color:Ir},controlStyle:{color:Ir,borderColor:Ir}},calendar:{itemStyle:{color:ST},dayLabel:{color:Ir},monthLabel:{color:Ir},yearLabel:{color:Ir}},timeAxis:lv(),logAxis:lv(),valueAxis:lv(),categoryAxis:lv(),line:{symbol:"circle"},graph:{color:bT},gauge:{title:{color:Ir},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ir},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};pE.categoryAxis.splitLine.show=!1;var r9=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(ht(e)){var i=Ia(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(e,function(l,u){for(var c=!1,h=0;h<o.length;h++){var v=o[h],p=u.lastIndexOf(v);if(p>0&&p===u.length-v.length){var d=u.slice(0,p);d!=="data"&&(t.mainType=d,t[v.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(h,v,p,d){return h[p]==null||v[d||p]===h[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),R_=["symbol","symbolSize","symbolRotate","symbolOffset"],AT=R_.concat(["symbolKeepAspect"]),n9={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<R_.length;o++){var s=R_[o],l=r.get(s);wt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(K({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=jt(a);function c(h,v){for(var p=r.getRawValue(v),d=r.getDataParams(v),m=0;m<u.length;m++){var x=u[m];h.setItemVisual(v,x,a[x](p,d))}}return{dataEach:i?c:null}}},a9={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<AT.length;s++){var l=AT[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function bx(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Eh(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function dE(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function gE(r,e){function t(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}R([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(a,i,o){a=K({},a),o.dispatchAction(K(a,{type:n[1],seriesIndex:t(i,a)}))})})}function _l(r,e,t,n,a){var i=r+e;t.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=o.getData(),v=ks(h,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:tt(v)?h.getName(v[0]):h.getName(v),selected:ht(l)?l:K({},l)})}})}function i9(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(_l("map","selectchanged",e,a,n),_l("pie","selectchanged",e,a,n)):n.fromAction==="select"?(_l("map","selected",e,a,n),_l("pie","selected",e,a,n)):n.fromAction==="unselect"&&(_l("map","unselected",e,a,n),_l("pie","unselected",e,a,n))})}function xs(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var o9=Math.round(Math.random()*9),s9=typeof Object.defineProperty=="function",l9=(function(){function r(){this._id="__ec_inner_"+o9++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return s9?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),u9=Ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),c9=Ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),h9=Ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),p=o*.6,d=o*.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-h*p,l+s+v*p,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-c+h*p,l+s+v*p,t-c,l+s),r.closePath()}}),f9=Ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),v9={line:ir,rect:Kt,roundRect:Kt,square:Kt,circle:Si,diamond:c9,pin:h9,arrow:f9,triangle:u9},p9={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Dp={};R(v9,function(r,e){Dp[e]=new r});var d9=Ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=mp(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Dp[n];a||(n="rect",a=Dp[n]),p9[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function g9(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function je(r,e,t,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=aR(r.slice(8),new zt(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=Sd(r.slice(7),{},new zt(e,t,n,a),o?"center":"cover"):l=new d9({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=g9,i&&l.setColor(i),l}function mu(r){return tt(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Us(r,e){if(r!=null)return tt(r)||(r=[r,r]),[ut(r[0],e[0])||0,ut(Rt(r[1],r[0]),e[1])||0]}function ws(r){return isFinite(r)}function y9(r,e,t){var n=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,a=a*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),n=ws(n)?n:0,a=ws(a)?a:1,i=ws(i)?i:0,o=ws(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function m9(r,e,t){var n=t.width,a=t.height,i=Math.min(n,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*a+t.y,l=l*i),o=ws(o)?o:.5,s=ws(s)?s:.5,l=l>=0&&ws(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function E_(r,e,t){for(var n=e.type==="radial"?m9(r,e,t):y9(r,e,t),a=e.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function _9(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function uv(r){return parseInt(r,10)}function zl(r,e,t){var n=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||uv(s[n])||uv(r.style[n]))-(uv(s[i])||0)-(uv(s[o])||0)|0}function x9(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ae(r)?[r]:tt(r)?r:null}function Ax(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&x9(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=et(t,function(i){return i/a}),n/=a)}return[t,n]}var w9=new Va(!0);function Ip(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function TT(r){return typeof r=="string"&&r!=="none"}function Pp(r){var e=r.fill;return e!=null&&e!=="none"}function CT(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function MT(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function k_(r,e,t){var n=j1(e.image,e.__image,t);if(dd(n)){var a=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Hv),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function S9(r,e,t,n){var a,i=Ip(t),o=Pp(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||w9,h=e.__dirty;if(!n){var v=t.fill,p=t.stroke,d=o&&!!v.colorStops,m=i&&!!p.colorStops,x=o&&!!v.image,y=i&&!!p.image,f=void 0,_=void 0,S=void 0,b=void 0,A=void 0;(d||m)&&(A=e.getBoundingRect()),d&&(f=h?E_(r,v,A):e.__canvasFillGradient,e.__canvasFillGradient=f),m&&(_=h?E_(r,p,A):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),x&&(S=h||!e.__canvasFillPattern?k_(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?k_(r,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=f:x&&(S?r.fillStyle=S:o=!1),m?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var M,L;r.setLineDash&&t.lineDash&&(a=Ax(e),M=a[0],L=a[1]);var D=!0;(u||h&Pl)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=L),n||(t.strokeFirst?(i&&MT(r,t),o&&CT(r,t)):(o&&CT(r,t),i&&MT(r,t))),M&&r.setLineDash([])}function b9(r,e,t){var n=e.__image=j1(t.image,e.__image,e,e.onload);if(!(!n||!dd(n))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(n,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=o-u,v=s-c;r.drawImage(n,u,c,h,v,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function A9(r,e,t){var n,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||so,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=Ax(e),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Ip(t)&&r.strokeText(a,t.x,t.y),Pp(t)&&r.fillText(a,t.x,t.y)):(Pp(t)&&r.fillText(a,t.x,t.y),Ip(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var LT=["shadowBlur","shadowOffsetX","shadowOffsetY"],DT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yE(r,e,t,n,a){var i=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){an(r,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Cs.opacity:o}(n||e.blend!==t.blend)&&(i||(an(r,a),i=!0),r.globalCompositeOperation=e.blend||Cs.blend);for(var s=0;s<LT.length;s++){var l=LT[s];(n||e[l]!==t[l])&&(i||(an(r,a),i=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(i||(an(r,a),i=!0),r.shadowColor=e.shadowColor||Cs.shadowColor),i}function IT(r,e,t,n,a){var i=sh(e,a.inHover),o=n?null:t&&sh(t,a.inHover)||{};if(i===o)return!1;var s=yE(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(an(r,a),s=!0),TT(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(an(r,a),s=!0),TT(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(an(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(an(r,a),s=!0),r.lineWidth=u)}for(var c=0;c<DT.length;c++){var h=DT[c],v=h[0];(n||i[v]!==o[v])&&(s||(an(r,a),s=!0),r[v]=i[v]||h[1])}return s}function T9(r,e,t,n,a){return yE(r,sh(e,a.inHover),t&&sh(t,a.inHover),n,a)}function mE(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function C9(r,e,t){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),mE(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=n}function M9(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var PT=1,RT=2,ET=3,kT=4;function L9(r){var e=Pp(r),t=Ip(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function an(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function sh(r,e){return e&&r.__hoverStyle||r.style}function _E(r,e){Ss(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ss(r,e,t,n){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~yn,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||_9(i,o))&&(o&&o.length&&(an(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(an(r,t),r.save(),C9(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof Ut&&e.autoBatch&&L9(e.style);s||M9(a,u.transform)?(an(r,t),mE(r,e)):c||an(r,t);var h=sh(e,t.inHover);e instanceof Ut?(t.lastDrawType!==PT&&(l=!0,t.lastDrawType=PT),IT(r,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),S9(r,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof jl?(t.lastDrawType!==ET&&(l=!0,t.lastDrawType=ET),IT(r,e,u,l,t),A9(r,e,h)):e instanceof dr?(t.lastDrawType!==RT&&(l=!0,t.lastDrawType=RT),T9(r,e,u,l,t),b9(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==kT&&(l=!0,t.lastDrawType=kT),D9(r,e,t)),c&&n&&an(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function D9(r,e,t){var n=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ss(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ss(r,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var nm=new l9,OT=new bh(100),NT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ql(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&nm.delete(r);var i=nm.get(r);if(i)return i;var o=bt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,nm.set(r,s),r.dirty=!1,s;function l(u){for(var c=[t],h=!0,v=0;v<NT.length;++v){var p=o[NT[v]];if(p!=null&&!tt(p)&&!ht(p)&&!ae(p)&&typeof p!="boolean"){h=!1;break}c.push(p)}var d;if(h){d=c.join(",")+(a?"-svg":"");var m=OT.get(d);m&&(a?u.svgElement=m:u.image=m)}var x=wE(o.dashArrayX),y=I9(o.dashArrayY),f=xE(o.symbol),_=P9(x),S=SE(y),b=!a&&lo.createCanvas(),A=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=L(),M;b&&(b.width=C.width*t,b.height=C.height*t,M=b.getContext("2d")),D(),h&&OT.put(d,b||A),u.image=b,u.svgElement=A,u.svgWidth=C.width,u.svgHeight=C.height;function L(){for(var P=1,E=0,O=_.length;E<O;++E)P=J2(P,_[E]);for(var N=1,E=0,O=f.length;E<O;++E)N=J2(N,f[E].length);P*=N;var z=S*_.length*f.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function D(){M&&(M.clearRect(0,0,b.width,b.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,b.width,b.height)));for(var P=0,E=0;E<y.length;++E)P+=y[E];if(P<=0)return;for(var O=-S,N=0,z=0,G=0;O<C.height;){if(N%2===0){for(var U=z/2%f.length,W=0,Y=0,q=0;W<C.width*2;){for(var Q=0,E=0;E<x[G].length;++E)Q+=x[G][E];if(Q<=0)break;if(Y%2===0){var rt=(1-o.symbolSize)*.5,ct=W+x[G][Y]*rt,vt=O+y[N]*rt,_t=x[G][Y]*o.symbolSize,Nt=y[N]*o.symbolSize,Jt=q/2%f[U].length;Mt(ct,vt,_t,Nt,f[U][Jt])}W+=x[G][Y],++q,++Y,Y===x[G].length&&(Y=0)}++G,G===x.length&&(G=0)}O+=y[N],++z,++N,N===y.length&&(N=0)}function Mt(mt,Pt,gt,St,se){var te=a?1:t,Zt=je(se,mt*te,Pt*te,gt*te,St*te,o.color,o.symbolKeepAspect);if(a){var ue=n.painter.renderOneToVNode(Zt);ue&&A.children.push(ue)}else _E(M,Zt)}}}}function xE(r){if(!r||r.length===0)return[["rect"]];if(ht(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!ht(r[t])){e=!1;break}if(e)return xE([r]);for(var n=[],t=0;t<r.length;++t)ht(r[t])?n.push([r[t]]):n.push(r[t]);return n}function wE(r){if(!r||r.length===0)return[[0,0]];if(ae(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!ae(r[n])){t=!1;break}if(t)return wE([r]);for(var a=[],n=0;n<r.length;++n)if(ae(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=et(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function I9(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ae(r)){var e=Math.ceil(r);return[e,e]}var t=et(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function P9(r){return et(r,function(e){return SE(e)})}function SE(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function R9(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ql(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ql(a,e)}}})}var na=new Yn,bE={};function E9(r,e){bE[r]=e}function k9(r){return bE[r]}var O9=1,N9=800,B9=900,z9=1e3,V9=2e3,F9=5e3,AE=1e3,G9=1100,Tx=2e3,TE=3e3,H9=4e3,kd=4500,W9=4600,U9=5e3,Y9=6e3,CE=7e3,Z9={PROCESSOR:{FILTER:z9,SERIES_FILTER:N9,STATISTIC:F9},VISUAL:{LAYOUT:AE,PROGRESSIVE_LAYOUT:G9,GLOBAL:Tx,CHART:TE,POST_CHART_LAYOUT:W9,COMPONENT:H9,BRUSH:U9,CHART_ITEM:kd,ARIA:Y9,DECAL:CE}},Lr="__flagInMainProcess",tn="__pendingUpdate",am="__needsUpdateStatus",BT=/^[a-zA-Z0-9_]+$/,im="__connectUpdateStatus",zT=0,X9=1,$9=2;function ME(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return DE(this,r,e)}}function LE(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return DE(this,r,e)}}function DE(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Yn.prototype[e].apply(r,t)}var IE=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Yn),PE=IE.prototype;PE.on=LE("on");PE.off=LE("off");var xl,om,cv,zi,sm,lm,um,ju,qu,VT,FT,cm,GT,hv,HT,RE,Dn,WT,EE=(function(r){j(e,r);function e(t,n,a){var i=r.call(this,new r9)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},ht(n)&&(n=kE[n]),i._dom=t;var o="canvas",s="auto",l=!1;a.ssr&&WW(function(v){var p=Dt(v),d=p.dataIndex;if(d!=null){var m=yt();return m.set("series_index",p.seriesIndex),m.set("data_index",d),p.ssrType&&m.set("ssr_type",p.ssrType),m}});var u=i._zr=j2(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Rt(a.useDirtyRect,l),useCoarsePointer:Rt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Sx(ft(u.flush,u),17),n=Ct(n),n&&VR(n,!0),i._theme=n,i._locale=v7(a.locale||pR),i._coordSysMgr=new Rh;var c=i._api=HT(i);function h(v,p){return v.__prio-p.__prio}return Yv(Ep,h),Yv(O_,h),i._scheduler=new cE(i,c,O_,Ep),i._messageCenter=new IE,i._initEvents(),i.resize=ft(i.resize,i),u.animation.on("frame",i._onframe,i),VT(u,i),FT(u,i),cp(i),i}return e.prototype._onframe=function(){if(!this._disposed){WT(this);var t=this._scheduler;if(this[tn]){var n=this[tn].silent;this[Lr]=!0;try{xl(this),zi.update.call(this,null,this[tn].updateParams)}catch(l){throw this[Lr]=!1,this[tn]=null,l}this._zr.flush(),this[Lr]=!1,this[tn]=null,ju.call(this,n),qu.call(this,n)}else if(t.unfinished){var a=O9,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),lm(this,i),t.performVisualTasks(i),hv(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[Lr]){if(this._disposed){this.id;return}var i,o,s;if(Tt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Lr]=!0,!this._model||n){var l=new z7(this._api),u=this._theme,c=this._model=new gx;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},N_);var h={seriesTransition:s,optionChanged:!0};if(a)this[tn]={silent:i,updateParams:h},this[Lr]=!1,this.getZr().wakeUp();else{try{xl(this),zi.update.call(this,null,h)}catch(v){throw this[tn]=null,this[Lr]=!1,v}this._ssr||this._zr.flush(),this[tn]=null,this[Lr]=!1,ju.call(this,i),qu.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Yt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Yt.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return R(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;R(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return R(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(UT[a]){var l=s,u=s,c=-s,h=-s,v=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();R(Hc,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ct(t)),A=_.getDom().getBoundingClientRect();l=i(A.left,l),u=i(A.top,u),c=o(A.right,c),h=o(A.bottom,h),v.push({dom:b,left:A.left,top:A.top})}}),l*=p,u*=p,c*=p,h*=p;var d=c-l,m=h-u,x=lo.createCanvas(),y=j2(x,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:m}),n){var f="";return R(v,function(_){var S=_.left-l,b=_.top-u;f+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=f,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new Kt({shape:{x:0,y:0,width:d,height:m},style:{fill:t.connectedBackgroundColor}})),R(v,function(_){var S=new dr({style:{x:_.left*p-l,y:_.top*p-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),x.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return sm(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return sm(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Oc(a,t);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Oc(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?bx(s,l,n):Eh(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;R(j9,function(n){var a=function(i){var o=t.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&xs(s,function(d){var m=Dt(d);if(m&&m.dataIndex!=null){var x=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=x&&x.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=K({},m.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var v=c&&h!=null&&o.getComponent(c,h),p=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:p},t.trigger(n,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)}),R(Gc,function(n,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),R(["selectchanged"],function(n){t._messageCenter.on(n,function(a){this.trigger(n,a)},t)}),i9(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&CP(this.getDom(),Mx,"");var n=this,a=n._api,i=n._model;R(n._componentsViews,function(o){o.dispose(i,a)}),R(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Hc[n.id]},e.prototype.resize=function(t){if(!this[Lr]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[tn]&&(i==null&&(i=this[tn].silent),a=!0,this[tn]=null),this[Lr]=!0;try{a&&xl(this),zi.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[Lr]=!1,o}this[Lr]=!1,ju.call(this,i),qu.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(Tt(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!B_[t]){var a=B_[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=K({},t);return n.type=Gc[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(Tt(n)||(n={silent:!!n}),!!Rp[t.type]&&this._model){if(this[Lr]){this._pendingActions.push(t);return}var a=n.silent;um.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&Yt.browser.weChat&&this._throttledZrFlush(),ju.call(this,a),qu.call(this,a)}},e.prototype.updateLabelLayout=function(){na.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){xl=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),om(h,!0),om(h,!1),v.plan()},om=function(h,v){for(var p=h._model,d=h._scheduler,m=v?h._componentsViews:h._chartsViews,x=v?h._componentsMap:h._chartsMap,y=h._zr,f=h._api,_=0;_<m.length;_++)m[_].__alive=!1;v?p.eachComponent(function(A,C){A!=="series"&&S(C)}):p.eachSeries(S);function S(A){var C=A.__requireNewView;A.__requireNewView=!1;var M="_ec_"+A.id+"_"+A.type,L=!C&&x[M];if(!L){var D=Ia(A.type),P=v?Ee.getClass(D.main,D.sub):we.getClass(D.sub);L=new P,L.init(p,f),x[M]=L,m.push(L),y.add(L.group)}A.__viewId=L.__id=M,L.__alive=!0,L.__model=A,L.group.__ecComponentInfo={mainType:A.mainType,index:A.componentIndex},!v&&d.prepareView(L,A,p,f)}for(var _=0;_<m.length;){var b=m[_];b.__alive?_++:(!v&&b.renderTask.dispose(),y.remove(b.group),b.dispose(p,f),m.splice(_,1),x[b.__id]===b&&delete x[b.__id],b.__id=b.group.__ecComponentInfo=null)}},cv=function(h,v,p,d,m){var x=h._model;if(x.setUpdatePayload(p),!d){R([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=p[d+"Id"],y[d+"Index"]=p[d+"Index"],y[d+"Name"]=p[d+"Name"];var f={mainType:d,query:y};m&&(f.subType=m);var _=p.excludeSeriesId,S;_!=null&&(S=yt(),R(me(_),function(A){var C=Ke(A,null);C!=null&&S.set(C,!0)})),x&&x.eachComponent(f,function(A){var C=S&&S.get(A.id)!=null;if(!C)if(TA(p))if(A instanceof Me)p.type===Ms&&!p.notBlur&&!A.get(["emphasis","disabled"])&&f8(A,p,h._api);else{var M=ex(A.mainType,A.componentIndex,p.name,h._api),L=M.focusSelf,D=M.dispatchers;p.type===Ms&&L&&!p.notBlur&&y_(A.mainType,A.componentIndex,h._api),D&&R(D,function(P){p.type===Ms?di(P):gi(P)})}else __(p)&&A instanceof Me&&(d8(A,p,h._api),bA(A),Dn(h))},h),x&&x.eachComponent(f,function(A){var C=S&&S.get(A.id)!=null;C||b(h[d==="series"?"_chartsMap":"_componentsMap"][A.__viewId])},h);function b(A){A&&A.__alive&&A[v]&&A[v](A.__model,x,h._api,p)}},zi={prepareAndUpdate:function(h){xl(this),zi.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var p=this._model,d=this._api,m=this._zr,x=this._coordSysMgr,y=this._scheduler;if(p){p.setUpdatePayload(h),y.restoreData(p,h),y.performSeriesTasks(p),x.create(p,d),y.performDataProcessorTasks(p,h),lm(this,p),x.update(p,d),t(p),y.performVisualTasks(p,h),cm(this,p,d,h,v);var f=p.get("backgroundColor")||"transparent",_=p.get("darkMode");m.setBackgroundColor(f),_!=null&&_!=="auto"&&m.setDarkMode(_),na.trigger("afterupdate",p,d)}},updateTransform:function(h){var v=this,p=this._model,d=this._api;if(p){p.setUpdatePayload(h);var m=[];p.eachComponent(function(y,f){if(y!=="series"){var _=v.getViewOfComponentModel(f);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(f,p,d,h);S&&S.update&&m.push(_)}else m.push(_)}});var x=yt();p.eachSeries(function(y){var f=v._chartsMap[y.__viewId];if(f.updateTransform){var _=f.updateTransform(y,p,d,h);_&&_.update&&x.set(y.uid,1)}else x.set(y.uid,1)}),t(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0,dirtyMap:x}),hv(this,p,d,h,{},x),na.trigger("afterupdate",p,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),we.markUpdateMethod(h,"updateView"),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),cm(this,v,this._api,h,{}),na.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,p=this._model;p&&(p.setUpdatePayload(h),p.eachSeries(function(d){d.getData().clearAllVisual()}),we.markUpdateMethod(h,"updateVisual"),t(p),this._scheduler.performVisualTasks(p,h,{visualType:"visual",setDirty:!0}),p.eachComponent(function(d,m){if(d!=="series"){var x=v.getViewOfComponentModel(m);x&&x.__alive&&x.updateVisual(m,p,v._api,h)}}),p.eachSeries(function(d){var m=v._chartsMap[d.__viewId];m.updateVisual(d,p,v._api,h)}),na.trigger("afterupdate",p,this._api))},updateLayout:function(h){zi.update.call(this,h)}},sm=function(h,v,p,d){if(h._disposed){h.id;return}for(var m=h._model,x=h._coordSysMgr.getCoordinateSystems(),y,f=Oc(m,p),_=0;_<x.length;_++){var S=x[_];if(S[v]&&(y=S[v](m,f,d))!=null)return y}},lm=function(h,v){var p=h._chartsMap,d=h._scheduler;v.eachSeries(function(m){d.updateStreamModes(m,p[m.__viewId])})},um=function(h,v){var p=this,d=this.getModel(),m=h.type,x=h.escapeConnect,y=Rp[m],f=y.actionInfo,_=(f.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&Ia(_[0]);this[Lr]=!0;var A=[h],C=!1;h.batch&&(C=!0,A=et(h.batch,function(N){return N=bt(K({},N),h),N.batch=null,N}));var M=[],L,D=__(h),P=TA(h);if(P&&XP(this._api),R(A,function(N){if(L=y.action(N,p._model,p._api),L=L||K({},N),L.type=f.event||L.type,M.push(L),P){var z=X1(h),G=z.queryOptionMap,U=z.mainTypeSpecified,W=U?G.keys()[0]:"series";cv(p,S,N,W),Dn(p)}else D?(cv(p,S,N,"series"),Dn(p)):b&&cv(p,S,N,b.main,b.sub)}),S!=="none"&&!P&&!D&&!b)try{this[tn]?(xl(this),zi.update.call(this,h),this[tn]=null):zi[S].call(this,h)}catch(N){throw this[Lr]=!1,N}if(C?L={type:f.event||m,escapeConnect:x,batch:M}:L=M[0],this[Lr]=!1,!v){var E=this._messageCenter;if(E.trigger(L.type,L),D){var O={type:"selectchanged",escapeConnect:x,selected:g8(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};E.trigger(O.type,O)}}},ju=function(h){for(var v=this._pendingActions;v.length;){var p=v.shift();um.call(this,p,h)}},qu=function(h){!h&&this.trigger("updated")},VT=function(h,v){h.on("rendered",function(p){v.trigger("rendered",p),h.animation.isFinished()&&!v[tn]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},FT=function(h,v){h.on("mouseover",function(p){var d=p.target,m=xs(d,th);m&&(v8(m,p,v._api),Dn(v))}).on("mouseout",function(p){var d=p.target,m=xs(d,th);m&&(p8(m,p,v._api),Dn(v))}).on("click",function(p){var d=p.target,m=xs(d,function(f){return Dt(f).dataIndex!=null},!0);if(m){var x=m.selected?"unselect":"select",y=Dt(m);v._api.dispatchAction({type:x,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],p=[],d=!1;if(h.eachComponent(function(f,_){var S=_.get("zlevel")||0,b=_.get("z")||0,A=_.getZLevelKey();d=d||!!A,(f==="series"?p:v).push({zlevel:S,z:b,idx:_.componentIndex,type:f,key:A})}),d){var m=v.concat(p),x,y;Yv(m,function(f,_){return f.zlevel===_.zlevel?f.z-_.z:f.zlevel-_.zlevel}),R(m,function(f){var _=h.getComponent(f.type,f.idx),S=f.zlevel,b=f.key;x!=null&&(S=Math.max(x,S)),b?(S===x&&b!==y&&S++,y=b):y&&(S===x&&S++,y=""),x=S,_.setZLevel(S)})}}cm=function(h,v,p,d,m){n(v),GT(h,v,p,d,m),R(h._chartsViews,function(x){x.__alive=!1}),hv(h,v,p,d,m),R(h._chartsViews,function(x){x.__alive||x.remove(v,p)})},GT=function(h,v,p,d,m,x){R(x||h._componentsViews,function(y){var f=y.__model;u(f,y),y.render(f,v,p,d),s(f,y),c(f,y)})},hv=function(h,v,p,d,m,x){var y=h._scheduler;m=K(m||{},{updatedSeries:v.getSeries()}),na.trigger("series:beforeupdate",v,p,m);var f=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),x&&x.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(f=!0),S.group.silent=!!_.get("silent"),o(_,S),bA(_)}),y.unfinished=f||y.unfinished,na.trigger("series:layoutlabels",v,p,m),na.trigger("series:transition",v,p,m),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),c(_,S)}),i(h,v),na.trigger("series:afterupdate",v,p,m)},Dn=function(h){h[am]=!0,h.getZr().wakeUp()},WT=function(h){h[am]&&(h.getZr().storage.traverse(function(v){Wl(v)||a(v)}),h[am]=!1)};function a(h){for(var v=[],p=h.currentStates,d=0;d<p.length;d++){var m=p[d];m==="emphasis"||m==="blur"||m==="select"||v.push(m)}h.selected&&h.states.select&&v.push("select"),h.hoverState===md&&h.states.emphasis?v.push("emphasis"):h.hoverState===Ch&&h.states.blur&&v.push("blur"),h.useStates(v)}function i(h,v){var p=h._zr,d=p.storage,m=0;d.traverse(function(x){x.isGroup||m++}),m>v.get("hoverLayerThreshold")&&!Yt.node&&!Yt.worker&&v.eachSeries(function(x){if(!x.preventUsingHoverLayer){var y=h._chartsMap[x.__viewId];y.__alive&&y.eachRendered(function(f){f.states.emphasis&&(f.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var p=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=p)})}function s(h,v){if(!h.preventAutoZ){var p=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(m){return l(m,p,d,-1/0),!0})}}function l(h,v,p,d){var m=h.getTextContent(),x=h.getTextGuideLine(),y=h.isGroup;if(y)for(var f=h.childrenRef(),_=0;_<f.length;_++)d=Math.max(l(f[_],v,p,d),d);else h.z=v,h.zlevel=p,d=Math.max(h.z2,d);if(m&&(m.z=v,m.zlevel=p,isFinite(d)&&(m.z2=d+2)),x){var S=h.textGuideLineConfig;x.z=v,x.zlevel=p,isFinite(d)&&(x.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(p){if(!Wl(p)){var d=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(h,v){var p=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=p.get("duration"),x=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wl(y))return;if(y instanceof Ut&&w8(y),y.__dirty){var f=y.prevStates;f&&y.useStates(f)}if(d){y.stateTransition=x;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=x),S&&(S.stateTransition=x)}y.__dirty&&a(y)}})}HT=function(h){return new((function(v){j(p,v);function p(){return v!==null&&v.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},p.prototype.enterEmphasis=function(d,m){di(d,m),Dn(h)},p.prototype.leaveEmphasis=function(d,m){gi(d,m),Dn(h)},p.prototype.enterBlur=function(d){WP(d),Dn(h)},p.prototype.leaveBlur=function(d){tx(d),Dn(h)},p.prototype.enterSelect=function(d){UP(d),Dn(h)},p.prototype.leaveSelect=function(d){YP(d),Dn(h)},p.prototype.getModel=function(){return h.getModel()},p.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},p.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},p})(BR))(h)},RE=function(h){function v(p,d){for(var m=0;m<p.length;m++){var x=p[m];x[im]=d}}R(Gc,function(p,d){h._messageCenter.on(d,function(m){if(UT[h.group]&&h[im]!==zT){if(m&&m.escapeConnect)return;var x=h.makeActionFromEvent(m),y=[];R(Hc,function(f){f!==h&&f.group===h.group&&y.push(f)}),v(y,zT),R(y,function(f){f[im]!==X9&&f.dispatchAction(x)}),v(y,$9)}})})}})(),e})(Yn),Cx=EE.prototype;Cx.on=ME("on");Cx.off=ME("off");Cx.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var j9=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Rp={},Gc={},O_=[],N_=[],Ep=[],kE={},B_={},Hc={},UT={},q9=+new Date-0,Mx="_echarts_instance_";function K9(r,e,t){var n=!(t&&t.ssr);if(n){var a=Q9(r);if(a)return a}var i=new EE(r,e,t);return i.id="ec_"+q9++,Hc[i.id]=i,n&&CP(r,Mx,i.id),RE(i),na.trigger("afterinit",i),i}function Q9(r){return Hc[u6(r,Mx)]}function OE(r,e){kE[r]=e}function NE(r){Gt(N_,r)<0&&N_.push(r)}function BE(r,e){Dx(O_,r,e,V9)}function J9(r){Lx("afterinit",r)}function tY(r){Lx("afterupdate",r)}function Lx(r,e){na.on(r,e)}function Ha(r,e,t){wt(e)&&(t=e,e="");var n=Tt(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!Gc[e]&&(Ur(BT.test(n)&&BT.test(e)),Rp[n]||(Rp[n]={action:t,actionInfo:r}),Gc[e]=n)}function eY(r,e){Rh.register(r,e)}function rY(r,e){Dx(Ep,r,e,AE,"layout")}function Ys(r,e){Dx(Ep,r,e,TE,"visual")}var YT=[];function Dx(r,e,t,n,a){if((wt(e)||Tt(e))&&(t=e,e=n),!(Gt(YT,t)>=0)){YT.push(t);var i=cE.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,r.push(i)}}function zE(r,e){B_[r]=e}function nY(r,e,t){var n=k9("registerMap");n&&n(r,e,t)}var aY=gU;Ys(Tx,HU);Ys(kd,WU);Ys(kd,UU);Ys(Tx,n9);Ys(kd,a9);Ys(CE,R9);NE(VR);BE(B9,q7);zE("default",YU);Ha({type:Ms,event:Ms,update:Ms},We);Ha({type:qv,event:qv,update:qv},We);Ha({type:Nc,event:Nc,update:Nc},We);Ha({type:Kv,event:Kv,update:Kv},We);Ha({type:Bc,event:Bc,update:Bc},We);OE("light",e9);OE("dark",pE);var ZT=[],iY={registerPreprocessor:NE,registerProcessor:BE,registerPostInit:J9,registerPostUpdate:tY,registerUpdateLifecycle:Lx,registerAction:Ha,registerCoordinateSystem:eY,registerLayout:rY,registerVisual:Ys,registerTransform:aY,registerLoading:zE,registerMap:nY,registerImpl:E9,PRIORITY:Z9,ComponentModel:$t,ComponentView:Ee,SeriesModel:Me,ChartView:we,registerComponentModel:function(r){$t.registerClass(r)},registerComponentView:function(r){Ee.registerClass(r)},registerSeriesModel:function(r){Me.registerClass(r)},registerChartView:function(r){we.registerClass(r)},registerSubTypeDefaulter:function(r,e){$t.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){GW(r,e)}};function Wt(r){if(tt(r)){R(r,function(e){Wt(e)});return}Gt(ZT,r)>=0||(ZT.push(r),wt(r)&&(r={install:r}),r.install(iY))}function Ku(r){return r==null?0:r.length||1}function XT(r){return r}var yi=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||XT,this._newKeyGetter=a||XT,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Ku(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],h=Ku(u),v=Ku(c);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(h===1&&v===1)this._update&&this._update(c,u),a[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Ku(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Ku(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),oY=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function sY(r,e){var t={},n=t.encode={},a=yt(),i=[],o=[],s={};R(r.dimensions,function(v){var p=r.getDimensionInfo(v),d=p.coordDim;if(d){var m=p.coordDimIndex;hm(n,d)[m]=v,p.isExtraCoord||(a.set(d,1),lY(p.type)&&(i[0]=v),hm(s,d)[m]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(v)}IR.each(function(x,y){var f=hm(n,y),_=p.otherDims[y];_!=null&&_!==!1&&(f[_]=p.name)})});var l=[],u={};a.each(function(v,p){var d=n[p];u[p]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=et(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new oY(s,e),t}function hm(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function kp(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function lY(r){return!(r==="ordinal"||r==="time")}var rp=(function(){function r(e){this.otherDims={},e!=null&&K(this,e)}return r})(),uY=Qt(),cY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},VE=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=HE(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Rt(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=GR(this.source),n=!WE(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=t?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=cY[u]||"f",c&&(a+=c.uid),a+="$"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function FE(r){return r instanceof VE}function GE(r){for(var e=yt(),t=0;t<(r||[]).length;t++){var n=r[t],a=Tt(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function HE(r){var e=uY(r);return e.dimNameMap||(e.dimNameMap=GE(r.dimensionsDefine))}function WE(r){return r>30}var Qu=Tt,Vi=et,hY=typeof Int32Array>"u"?Array:Int32Array,fY="e\0\0",$T=-1,vY=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pY=["_approximateExtent"],jT,fv,Ju,tc,fm,ec,vm,Hr=(function(){function r(e,t){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;FE(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var h=n[c],v=ht(h)?new rp({name:h}):h instanceof rp?h:new rp(h),p=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=p,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(p),i[p]=v,u[p]!=null&&(l=!0),v.createInvertedIndices&&(s[p]=[]),d.itemName===0&&(this._nameDimIdx=c),d.itemId===0&&(this._idDimIdx=c),a&&(v.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=yt();R(o,function(x){m.set(i[x].storeDimIndex,x)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof L_&&(i=e),!i){var o=this.dimensions,s=yx(e)||Rr(e)?new HR(e,o.length):e;i=new L_;var l=Vi(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=sY(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&vm(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ao&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Zn;if(l&&!a.pure)for(var u=[],c=e;c<t;c++){var h=a.getItem(c,u);if(!this.hasItemOption&&qW(h)&&(this.hasItemOption=!0),h){var v=h.name;i[c]==null&&v!=null&&(i[c]=Ke(v,null));var p=h.id;o[c]==null&&p!=null&&(o[c]=Ke(p,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)vm(this,c);jT(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Qu(e)?K(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Ju(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return fv(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return tt(e)?a.getValues(Vi(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?$T:a},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){wt(e)&&(n=t,t=e,e=[]);var a=n||this,i=Vi(tc(e),this._getStoreDimIndex,this);this._store.each(i,a?ft(t,a):t)},r.prototype.filterSelf=function(e,t,n){wt(e)&&(n=t,t=e,e=[]);var a=n||this,i=Vi(tc(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ft(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=jt(e);return R(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){wt(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Vi(tc(e),this._getStoreDimIndex,this),s=ec(this);return s._store=this._store.map(o,i?ft(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=Vi(tc(e),this._getStoreDimIndex,this);this._store.modify(o,i?ft(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=ec(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=ec(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=ec(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new ye(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new yi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return fv(e,n)},function(n){return fv(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Qu(e)?K(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),tt(i)?i=i.slice():Qu(i)&&(i=K({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Qu(t)?K(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Qu(e)?K(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?K(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;d_(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Vi(this.dimensions,this._getDimInfo,this),this.hostModel)),fm(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];wt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(B1(arguments)))})},r.internalField=(function(){jT=function(e){var t=e._invertedIndicesMap;R(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new hY(o.categories.length);for(var l=0;l<n.length;l++)n[l]=$T;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Ju=function(e,t,n){return Ke(e._getCategory(t,n),null)},fv=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Ju(e,e._idDimIdx,t)),n==null&&(n=fY+t),n},tc=function(e){return tt(e)||(e=e!=null?[e]:[]),e},ec=function(e){var t=new r(e._schema?e._schema:Vi(e.dimensions,e._getDimInfo,e),e.hostModel);return fm(t,e),t},fm=function(e,t){R(vY.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,R(pY,function(n){e[n]=Ct(t[n])}),e._calculationInfo=K({},t._calculationInfo)},vm=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=Ju(e,i,t)),l==null&&o!=null&&(a[t]=l=Ju(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[t]=l}}})(),r})();function kh(r,e){yx(r)||(r=mx(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=yt(),i=[],o=gY(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&WE(o),l=n===r.dimensionsDefine,u=l?HE(r):GE(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var h=yt(c),v=new qR(o),p=0;p<v.length;p++)v[p]=-1;function d(L){var D=v[L];if(D<0){var P=n[L],E=Tt(P)?P:{name:P},O=new rp,N=E.name;N!=null&&u.get(N)!=null&&(O.name=O.displayName=N),E.type!=null&&(O.type=E.type),E.displayName!=null&&(O.displayName=E.displayName);var z=i.length;return v[L]=z,O.storeDimIndex=L,i.push(O),O}return i[D]}if(!s)for(var p=0;p<o;p++)d(p);h.each(function(L,D){var P=me(L).slice();if(P.length===1&&!ht(P[0])&&P[0]<0){h.set(D,!1);return}var E=h.set(D,[]);R(P,function(O,N){var z=ht(O)?u.get(O):O;z!=null&&z<o&&(E[N]=z,x(d(z),D,N))})});var m=0;R(t,function(L){var D,P,E,O;if(ht(L))D=L,O={};else{O=L,D=O.name;var N=O.ordinalMeta;O.ordinalMeta=null,O=K({},O),O.ordinalMeta=N,P=O.dimsDef,E=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var z=h.get(D);if(z!==!1){if(z=me(z),!z.length)for(var G=0;G<(P&&P.length||1);G++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&z.push(m++)}R(z,function(U,W){var Y=d(U);if(l&&O.type!=null&&(Y.type=O.type),x(bt(Y,O),D,W),Y.name==null&&P){var q=P[W];!Tt(q)&&(q={name:q}),Y.name=Y.displayName=q.name,Y.defaultTooltip=q.defaultTooltip}E&&bt(Y.otherDims,E)})}});function x(L,D,P){IR.get(D)!=null?L.otherDims[D]=P:(L.coordDim=D,L.coordDimIndex=P,a.set(D,!0))}var y=e.generateCoord,f=e.generateCoordCount,_=f!=null;f=y?f||1:0;var S=y||"value";function b(L){L.name==null&&(L.name=L.coordDim)}if(s)R(i,function(L){b(L)}),i.sort(function(L,D){return L.storeDimIndex-D.storeDimIndex});else for(var A=0;A<o;A++){var C=d(A),M=C.coordDim;M==null&&(C.coordDim=yY(S,a,_),C.coordDimIndex=0,(!y||f<=0)&&(C.isExtraCoord=!0),f--),b(C),C.type==null&&(kR(r,A)===xr.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return dY(i),new VE({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function dY(r){for(var e=yt(),t=0;t<r.length;t++){var n=r[t],a=n.name,i=e.get(a)||0;i>0&&(n.name=a+(i-1)),i++,e.set(a,i)}}function gY(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return R(e,function(i){var o;Tt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function yY(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var mY=(function(){function r(e){this.coordSysDims=[],this.axisMap=yt(),this.categoryAxisMap=yt(),this.coordSysName=e}return r})();function _Y(r){var e=r.get("coordinateSystem"),t=new mY(e),n=xY[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var xY={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",$e).models[0],i=r.getReferringComponents("yAxis",$e).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),wl(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),wl(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",$e).models[0];e.coordSysDims=["single"],t.set("single",a),wl(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",$e).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),wl(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),wl(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();R(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),wl(u)&&(n.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function wl(r){return r.get("type")==="category"}function wY(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;SY(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,c,h,v;if(R(i,function(f,_){ht(f)&&(i[_]=f={name:f}),l&&!f.isExtraCoord&&(!n&&!u&&f.ordinalMeta&&(u=f),!c&&f.type!=="ordinal"&&f.type!=="time"&&(!a||a===f.coordDim)&&(c=f))}),c&&!n&&!u&&(n=!0),c){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,d=c.type,m=0;R(i,function(f){f.coordDim===p&&m++});var x={name:h,coordDim:p,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(x.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(x),o.appendCalculationDimension(y)):(i.push(x),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function SY(r){return!FE(r.schema)}function fo(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function UE(r,e){return fo(r,e)?r.getCalculationInfo("stackResultDimension"):e}function bY(r,e){var t=r.get("coordinateSystem"),n=Rh.get(t),a;return e&&e.coordSysDims&&(a=et(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=kp(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function AY(r,e,t){var n,a;return t&&R(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function bi(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;r?(i=!0,a=mx(r)):(a=n.getSource(),i=a.sourceFormat===Zn);var o=_Y(e),s=bY(e,o),l=t.useEncodeDefaulter,u=wt(l)?l:l?Et(ER,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=kh(a,c),v=AY(h.dimensions,t.createInvertedIndices,o),p=i?null:n.getSharedDataStore(h),d=wY(e,{schema:h,store:p}),m=new Hr(h,e);m.setCalculationInfo(d);var x=v!=null&&TY(a)?function(y,f,_,S){return S===v?_:this.defaultDimValueGetter(y,f,_,S)}:null;return m.hasItemOption=!1,m.initData(i?a:p,null,x),m}function TY(r){if(r.sourceFormat===Zn){var e=CY(r.data||[]);return!tt(lu(e))}}function CY(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Wa=(function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();pd(Wa);var MY=0,z_=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++MY}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&et(n,LY);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!ht(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},r})();function LY(r){return Tt(r)&&r.value!=null?r.value:r+""}function V_(r){return r.type==="interval"||r.type==="log"}function DY(r,e,t,n){var a={},i=r[1]-r[0],o=a.interval=mP(i/e);t!=null&&o<t&&(o=a.interval=t),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=YE(o),l=a.niceTickExtent=[Ve(Math.ceil(r[0]/o)*o,s),Ve(Math.floor(r[1]/o)*o,s)];return IY(l,r),a}function pm(r){var e=Math.pow(10,Y1(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ve(t*e)}function YE(r){return Da(r)+2}function qT(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function IY(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),qT(r,0,e),qT(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Od(r,e){return r>=e[0]&&r<=e[1]}function Nd(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Bd(r,e){return r*(e[1]-e[0])+e[0]}var zd=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new z_({})),tt(a)&&(a=new z_({categories:et(a,function(i){return Tt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:ht(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Od(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Nd(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Bd(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,a=n[0];a<=n[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(Wa);Wa.registerClass(zd);var es=Ve,mi=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Od(t,this._extent)},e.prototype.normalize=function(t){return Nd(t,this._extent)},e.prototype.scale=function(t){return Bd(t,this._extent)},e.prototype.setExtent=function(t,n){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(n)||(a[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=YE(t)},e.prototype.getTicks=function(t){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(t?s.push({value:es(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=es(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:es(c+n,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],h=s.value-l.value,v=h/t;u<t-1;){var p=es(l.value+(u+1)*v);p>i[0]&&p<i[1]&&c.push(p),u++}a.push(c)}return a},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Da(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=es(t.value,a,!0);return AR(i)},e.prototype.calcNiceTicks=function(t,n,a){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=DY(i,t,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);t.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=es(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=es(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e})(Wa);Wa.registerClass(mi);var ZE=typeof Float32Array<"u",PY=ZE?Float32Array:Array;function Pa(r){return tt(r)?ZE?new Float32Array(r):r:new PY(r)}var F_="__ec_stack_";function XE(r){return r.get("stack")||F_+r.seriesIndex}function Ix(r){return r.dim+r.index}function RY(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),i=0;i<r.count;i++)e.push(bt({bandWidth:a,axisKey:n,stackId:F_+i},r));for(var o=qE(e),s=[],i=0;i<r.count;i++){var l=o[n][F_+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function $E(r,e){var t=[];return e.eachSeriesByType(r,function(n){JE(n)&&t.push(n)}),t}function EY(r){var e={};R(r,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),v=c.dim+"_"+c.index,p=h.getDimensionIndex(h.mapDimension(c.dim)),d=h.getStore(),m=0,x=d.count();m<x;++m){var y=d.get(p,m);e[v]?e[v].push(y):e[v]=[y]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[n]=i}}return t}function jE(r){var e=EY(r),t=[];return R(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?c/v*u:c}else{var p=n.getData();s=Math.abs(o[1]-o[0])/p.count()}var d=ut(n.get("barWidth"),s),m=ut(n.get("barMaxWidth"),s),x=ut(n.get("barMinWidth")||(tk(n)?.5:1),s),y=n.get("barGap"),f=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:x,barGap:y,barCategoryGap:f,axisKey:Ix(i),stackId:XE(n)})}),qE(t)}function qE(r){var e={};R(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var p=n.barGap;p!=null&&(s.gap=p);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return R(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=jt(i).length;s=Math.max(35-l*4,15)+"%"}var u=ut(s,o),c=ut(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,p=(h-u)/(v+(v-1)*c);p=Math.max(p,0),R(i,function(y){var f=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;f&&(S=Math.min(S,f)),_&&(S=Math.max(S,_)),y.width=S,h-=S+c*S,v--}else{var S=p;f&&f<S&&(S=Math.min(f,h)),_&&_>S&&(S=_),S!==p&&(y.width=S,h-=S+c*S,v--)}}),p=(h-u)/(v+(v-1)*c),p=Math.max(p,0);var d=0,m;R(i,function(y,f){y.width||(y.width=p),m=y,d+=y.width*(1+c)}),m&&(d-=m.width*c);var x=-d/2;R(i,function(y,f){t[a][f]=t[a][f]||{bandWidth:o,offset:x,width:y.width},x+=y.width*(1+c)})}),t}function kY(r,e,t){if(r&&e){var n=r[Ix(e)];return n}}function KE(r,e){var t=$E(r,e),n=jE(t);R(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=XE(a),u=n[Ix(s)][l],c=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function QE(r){return{seriesType:r,plan:gu(),reset:function(e){if(JE(e)){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),h=fo(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),p=OY(a,i),d=tk(e),m=e.get("barMinHeight")||0,x=c&&t.getDimensionIndex(c),y=t.getLayout("size"),f=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,A=d&&Pa(b*3),C=d&&l&&Pa(b*3),M=d&&Pa(b),L=n.master.getRect(),D=v?L.width:L.height,P,E=S.getStore(),O=0;(P=_.next())!=null;){var N=E.get(h?x:o,P),z=E.get(s,P),G=p,U=void 0;h&&(U=+N-E.get(o,P));var W=void 0,Y=void 0,q=void 0,Q=void 0;if(v){var rt=n.dataToPoint([N,z]);if(h){var ct=n.dataToPoint([U,z]);G=ct[0]}W=G,Y=rt[1]+f,q=rt[0]-G,Q=y,Math.abs(q)<m&&(q=(q<0?-1:1)*m)}else{var rt=n.dataToPoint([z,N]);if(h){var ct=n.dataToPoint([z,U]);G=ct[1]}W=rt[0]+f,Y=G,q=y,Q=rt[1]-G,Math.abs(Q)<m&&(Q=(Q<=0?-1:1)*m)}d?(A[O]=W,A[O+1]=Y,A[O+2]=v?q:Q,C&&(C[O]=v?L.x:W,C[O+1]=v?Y:L.y,C[O+2]=D),M[P]=P):S.setItemLayout(P,{x:W,y:Y,width:q,height:Q}),O+=3}d&&S.setLayout({largePoints:A,largeDataIndices:M,largeBackgroundPoints:C,valueAxisHorizontal:v})}}}}}}function JE(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function tk(r){return r.pipelineContext&&r.pipelineContext.large}function OY(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var NY=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},Px=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Td(t.value,FA[g7(Yl(this._minLevelUnit))]||FA.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return y7(t,n,a,o,i)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,a=[];if(!t)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=WY(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Gn,n[1]+=Gn),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Gn}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,a){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=vv.length,l=Math.min(NY(vv,this._approxInterval,0,s),s-1);this._interval=vv[l][1],this._minLevelUnit=vv[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return ae(t)?t:+za(t)},e.prototype.contain=function(t){return Od(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Nd(this.parse(t),this._extent)},e.prototype.scale=function(t){return Bd(t,this._extent)},e.type="time",e})(mi),vv=[["second",ux],["minute",cx],["hour",Vc],["quarter-day",Vc*6],["half-day",Vc*12],["day",Gn*1.2],["half-week",Gn*3.5],["week",Gn*7],["month",Gn*31],["quarter",Gn*95],["half-year",VA/2],["year",VA]];function BY(r,e,t,n){var a=za(e),i=za(t),o=function(d){return GA(a,d,n)===GA(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},v=function(){return h()&&o("second")},p=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return v();case"millisecond":return p()}}function zY(r,e){return r/=Gn,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function VY(r){var e=30*Gn;return r/=e,r>6?6:r>3?3:r>2?2:1}function FY(r){return r/=Vc,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function KT(r,e){return r/=e?cx:ux,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function GY(r){return mP(r)}function HY(r,e,t){var n=new Date(r);switch(Yl(e)){case"year":case"month":n[mR(t)](0);case"day":n[_R(t)](1);case"hour":n[xR(t)](0);case"minute":n[wR(t)](0);case"second":n[SR(t)](0),n[bR(t)](0)}return n.getTime()}function WY(r,e,t,n){var a=1e4,i=gR,o=0;function s(D,P,E,O,N,z,G){for(var U=new Date(P),W=P,Y=U[O]();W<E&&W<=n[1];)G.push({value:W}),Y+=D,U[N](Y),W=U.getTime();G.push({value:W,notAdd:!0})}function l(D,P,E){var O=[],N=!P.length;if(!BY(Yl(D),n[0],n[1],t)){N&&(P=[{value:HY(new Date(n[0]),D,t)},{value:n[1]}]);for(var z=0;z<P.length-1;z++){var G=P[z].value,U=P[z+1].value;if(G!==U){var W=void 0,Y=void 0,q=void 0,Q=!1;switch(D){case"year":W=Math.max(1,Math.round(e/Gn/365)),Y=hx(t),q=m7(t);break;case"half-year":case"quarter":case"month":W=VY(e),Y=Zl(t),q=mR(t);break;case"week":case"half-week":case"day":W=zY(e),Y=Cd(t),q=_R(t),Q=!0;break;case"half-day":case"quarter-day":case"hour":W=FY(e),Y=rh(t),q=xR(t);break;case"minute":W=KT(e,!0),Y=Md(t),q=wR(t);break;case"second":W=KT(e,!1),Y=Ld(t),q=SR(t);break;case"millisecond":W=GY(e),Y=Dd(t),q=bR(t);break}s(W,G,U,Y,q,Q,O),D==="year"&&E.length>1&&z===0&&E.unshift({value:E[0].value-W})}}for(var z=0;z<O.length;z++)E.push(O[z]);return O}}for(var u=[],c=[],h=0,v=0,p=0;p<i.length&&o++<a;++p){var d=Yl(i[p]);if(d7(i[p])){l(i[p],u[u.length-1]||[],c);var m=i[p+1]?Yl(i[p+1]):null;if(d!==m){if(c.length){v=h,c.sort(function(D,P){return D.value-P.value});for(var x=[],y=0;y<c.length;++y){var f=c[y].value;(y===0||c[y-1].value!==f)&&(x.push(c[y]),f>=n[0]&&f<=n[1]&&h++)}var _=(n[1]-n[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(x),h>_||r===i[p]))break}c=[]}}}for(var S=fe(et(u,function(D){return fe(D,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(D){return D.length>0}),b=[],A=S.length-1,p=0;p<S.length;++p)for(var C=S[p],M=0;M<C.length;++M)b.push({value:C[M].value,level:A-p});b.sort(function(D,P){return D.value-P.value});for(var L=[],p=0;p<b.length;++p)(p===0||b[p].value!==b[p-1].value)&&L.push(b[p]);return L}Wa.registerClass(Px);var QT=Wa.prototype,Wc=mi.prototype,UY=Ve,YY=Math.floor,ZY=Math.ceil,pv=Math.pow,ta=Math.log,Rx=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new mi,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Wc.getTicks.call(this,t);return et(o,function(s){var l=s.value,u=Ve(pv(this.base,l));return u=l===a[0]&&this._fixMin?dv(u,i[0]):u,u=l===a[1]&&this._fixMax?dv(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var a=ta(this.base);t=ta(Math.max(0,t))/a,n=ta(Math.max(0,n))/a,Wc.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=QT.getExtent.call(this);n[0]=pv(t,n[0]),n[1]=pv(t,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=dv(n[0],i[0])),this._fixMax&&(n[1]=dv(n[1],i[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=ta(t[0])/ta(n),t[1]=ta(t[1])/ta(n),QT.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=jW(a),o=t/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Ve(ZY(n[0]/i)*i),Ve(YY(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Wc.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=ta(t)/ta(this.base),Od(t,this._extent)},e.prototype.normalize=function(t){return t=ta(t)/ta(this.base),Nd(t,this._extent)},e.prototype.scale=function(t){return t=Bd(t,this._extent),pv(this.base,t)},e.type="log",e})(Wa),ek=Rx.prototype;ek.getMinorTicks=Wc.getMinorTicks;ek.getLabel=Wc.getLabel;function dv(r,e){return UY(r,Da(e))}Wa.registerClass(Rx);var XY=(function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;wt(o)?this._modelMinNum=gv(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=gv(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(wt(s)?this._modelMaxNum=gv(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=gv(e,s)),a)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=tt(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ca(u[0],1),ca(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:t-i[0]*o),l==null&&(l=e?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Zc(s)||Zc(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var v=this._determinedMin,p=this._determinedMax;return v!=null&&(s=v,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[jY[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=$Y[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),$Y={min:"_determinedMin",max:"_determinedMax"},jY={min:"_dataMin",max:"_dataMax"};function rk(r,e,t){var n=r.rawExtentInfo;return n||(n=new XY(r,e,t),r.rawExtentInfo=n,n)}function gv(r,e){return e==null?null:Zc(e)?NaN:r.parse(e)}function nk(r,e){var t=r.type,n=rk(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=e.ecModel;if(o&&t==="time"){var s=$E("bar",o),l=!1;if(R(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=jE(s),c=qY(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function qY(r,e,t,n){var a=t.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=kY(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;R(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;R(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-r,h=1-(s+l)/i,v=c/h-c;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function Jl(r,e){var t=e,n=nk(r,t),a=n.extent,i=t.get("splitNumber");r instanceof Rx&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Vd(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new zd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Px({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Wa.getClass(e)||mi)}}function KY(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function _u(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}})(e):ht(e)?(function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}})(e):wt(e)?(function(n){return function(a,i){return t!=null&&(i=a.value-t),n(Ex(r,a),i,a.level!=null?{level:a.level}:null)}})(e):function(n){return r.scale.getLabel(n)}}function Ex(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function QY(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,a,i=t.getExtent();t instanceof zd?a=t.count():(n=t.getTicks(),a=n.length);var o=r.getLabelModel(),s=_u(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var h=n?n[c]:{value:i[0]+c},v=s(h,c),p=o.getTextRect(v),d=JY(p,o.get("rotate")||0);l?l.union(d):l=d}return l}}function JY(r,e){var t=e*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(t))+Math.abs(a*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(a*Math.cos(t)),s=new zt(r.x,r.y,i,o);return s}function kx(r){var e=r.get("interval");return e??"auto"}function ak(r){return r.type==="category"&&kx(r.getLabelModel())===0}function Op(r,e){var t={};return R(r.mapDimensionsAll(e),function(n){t[UE(r,n)]=!0}),jt(t)}function tZ(r,e,t){e&&R(Op(e,t),function(n){var a=e.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var Oh=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})(),eZ=1e-8;function JT(r,e){return Math.abs(r-e)<eZ}function fs(r,e,t){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=ii(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!JT(a[0],s[0])||!JT(a[1],s[1]))&&(n+=ii(a[0],a[1],s[0],s[1],e,t)),n!==0}var rZ=[];function dm(r,e){for(var t=0;t<r.length;t++)wr(r[t],r[t],e)}function tC(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(ji(e,e,i),qi(t,t,i))}}function nZ(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],c=i*u-l*o;e+=c,t+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var ik=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),eC=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),rC=(function(){function r(e){this.type="linestring",this.points=e}return r})(),ok=(function(r){j(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return nZ(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?tC(s.exterior,a,i,t):R(s.points,function(l){tC(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new zt(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(fs(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(fs(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new zt(t,n,a,i),u=o.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var v=c[h];v.type==="polygon"?(dm(v.exterior,u),R(v.interiors,function(p){dm(p,u)})):R(v.points,function(p){dm(p,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(ik),aZ=(function(r){j(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=cd(rZ),o=t;o&&!o.isGeoSVGGraphicRoot;)ui(i,o.getLocalTransform(),i),o=o.parent;return su(i,i),wr(a,a,i),a},e})(ik);function iZ(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return R(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=sk(s,o,t);break;case"Polygon":gm(s,o,t);break;case"MultiLineString":gm(s,o,t);break;case"MultiPolygon":R(s,function(l,u){return gm(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function gm(r,e,t){for(var n=0;n<r.length;n++)r[n]=sk(r[n],e[n],t)}function sk(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function oZ(r,e){return r=iZ(r),et(fe(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new eC(o[0],o.slice(1)));break;case"MultiPolygon":R(a.coordinates,function(l){l[0]&&i.push(new eC(l[0],l.slice(1)))});break;case"LineString":i.push(new rC([a.coordinates]));break;case"MultiLineString":i.push(new rC(a.coordinates))}var s=new ok(n[e||"name"],i,n.cp);return s.properties=n,s})}var lh=Qt();function lk(r,e){var t=et(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function sZ(r){var e=r.getLabelModel().get("customValues");if(e){var t=_u(r),n=r.scale.getExtent(),a=lk(r,e),i=fe(a,function(o){return o>=n[0]&&o<=n[1]});return{labels:et(i,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?uZ(r):hZ(r)}function lZ(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),a=lk(r,t);return{ticks:fe(a,function(i){return i>=n[0]&&i<=n[1]})}}return r.type==="category"?cZ(r,e):{ticks:et(r.scale.getTicks(),function(i){return i.value})}}function uZ(r){var e=r.getLabelModel(),t=uk(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function uk(r,e){var t=ck(r,"labels"),n=kx(e),a=hk(t,n);if(a)return a;var i,o;return wt(n)?i=pk(r,n):(o=n==="auto"?fZ(r):n,i=vk(r,o)),fk(t,n,{labels:i,labelCategoryInterval:o})}function cZ(r,e){var t=ck(r,"ticks"),n=kx(e),a=hk(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),wt(n))i=pk(r,n,!0);else if(n==="auto"){var s=uk(r,r.getLabelModel());o=s.labelCategoryInterval,i=et(s.labels,function(l){return l.tickValue})}else o=n,i=vk(r,o,!0);return fk(t,n,{ticks:i,tickCategoryInterval:o})}function hZ(r){var e=r.scale.getTicks(),t=_u(r);return{labels:et(e,function(n,a){return{level:n.level,formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function ck(r,e){return lh(r)[e]||(lh(r)[e]=[])}function hk(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function fk(r,e,t){return r.push({key:e,value:t}),t}function fZ(r){var e=lh(r).autoInterval;return e??(lh(r).autoInterval=r.calculateCategoryInterval())}function vZ(r){var e=pZ(r),t=_u(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,p=0;l<=i[1];l+=s){var d=0,m=0,x=Ah(t({value:l}),e.font,"center","top");d=x.width*1.3,m=x.height*1.3,v=Math.max(v,d,7),p=Math.max(p,m,7)}var y=v/c,f=p/h;isNaN(y)&&(y=1/0),isNaN(f)&&(f=1/0);var _=Math.max(0,Math.floor(Math.min(y,f))),S=lh(r.model),b=r.getExtent(),A=S.lastAutoInterval,C=S.lastTickCount;return A!=null&&C!=null&&Math.abs(A-_)<=1&&Math.abs(C-o)<=1&&A>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=A:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function pZ(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function vk(r,e,t){var n=_u(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=ak(r),v=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;v&&u!==i[0]&&m(i[0]);for(var d=u;d<=i[1];d+=l)m(d);p&&d-l!==i[1]&&m(i[1]);function m(x){var y={value:x};s.push(t?x:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:x})}return s}function pk(r,e,t){var n=r.scale,a=_u(r),i=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var nC=[0,1],va=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return gP(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(n=n.slice(),aC(n,a.count())),ge(e,nC,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),aC(n,a.count()));var i=ge(e,n,nC,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=lZ(this,t),a=n.ticks,i=et(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return dZ(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=et(n,function(i){return et(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return sZ(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return vZ(this)},r})();function aC(r,e){var t=r[1]-r[0],n=e,a=t/n/2;r[0]+=a,r[1]-=a}function dZ(r,e,t,n){var a=e.length;if(!r.onBand||t||!a)return;var i=r.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;R(e,function(p){p.coord-=u/2});var c=r.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s,tickValue:c[1]+1},e.push(o)}var h=i[0]>i[1];v(e[0].coord,i[0])&&(n?e[0].coord=i[0]:e.shift()),n&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(n?o.coord=i[1]:e.pop()),n&&v(o.coord,i[1])&&e.push({coord:i[1]});function v(p,d){return p=Ve(p),d=Ve(d),h?p>d:p<d}}var rc=Math.PI*2,rs=Va.CMD,gZ=["top","right","bottom","left"];function yZ(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function mZ(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,h=s*t+e;if(Math.abs(n-a)%rc<1e-4)return l[0]=c,l[1]=h,u-t;if(i){var v=n;n=mn(a),a=mn(v)}else n=mn(n),a=mn(a);n>a&&(a+=rc);var p=Math.atan2(s,o);if(p<0&&(p+=rc),p>=n&&p<=a||p+rc>=n&&p+rc<=a)return l[0]=c,l[1]=h,u-t;var d=t*Math.cos(n)+r,m=t*Math.sin(n)+e,x=t*Math.cos(a)+r,y=t*Math.sin(a)+e,f=(d-o)*(d-o)+(m-s)*(m-s),_=(x-o)*(x-o)+(y-s)*(y-s);return f<_?(l[0]=d,l[1]=m,Math.sqrt(f)):(l[0]=x,l[1]=y,Math.sqrt(_))}function Np(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,c=t-r,h=n-e,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var p=l*c+u*h,d=p/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var m=o[0]=r+d*c,x=o[1]=e+d*h;return Math.sqrt((m-a)*(m-a)+(x-i)*(x-i))}function dk(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var aa=[];function _Z(r,e,t){var n=dk(e.x,e.y,e.width,e.height,r.x,r.y,aa);return t.set(aa[0],aa[1]),n}function xZ(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,h=r.x,v=r.y,p=0;p<c.length;){var d=c[p++];p===1&&(n=c[p],a=c[p+1],i=n,o=a);var m=u;switch(d){case rs.M:i=c[p++],o=c[p++],n=i,a=o;break;case rs.L:m=Np(n,a,c[p],c[p+1],h,v,aa,!0),n=c[p++],a=c[p++];break;case rs.C:m=QI(n,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,v,aa),n=c[p++],a=c[p++];break;case rs.Q:m=tP(n,a,c[p++],c[p++],c[p],c[p+1],h,v,aa),n=c[p++],a=c[p++];break;case rs.A:var x=c[p++],y=c[p++],f=c[p++],_=c[p++],S=c[p++],b=c[p++];p+=1;var A=!!(1-c[p++]);s=Math.cos(S)*f+x,l=Math.sin(S)*_+y,p<=1&&(i=s,o=l);var C=(h-x)*_/f+x;m=mZ(x,y,_,S,S+b,A,C,v,aa),n=Math.cos(S+b)*f+x,a=Math.sin(S+b)*_+y;break;case rs.R:i=n=c[p++],o=a=c[p++];var M=c[p++],L=c[p++];m=dk(i,o,M,L,h,v,aa);break;case rs.Z:m=Np(n,a,i,o,h,v,aa,!0),n=i,a=o;break}m<u&&(u=m,t.set(aa[0],aa[1]))}return u}var sa=new Bt,Te=new Bt,He=new Bt,Ra=new Bt,La=new Bt;function iC(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||gZ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=r.getComputedTransform(),h=c&&su([],c),v=e.get("length2")||0;u&&He.copy(u);for(var p=0;p<o.length;p++){var d=o[p];yZ(d,0,s,sa,Ra),Bt.scaleAndAdd(Te,sa,Ra,v),Te.transform(h);var m=r.getBoundingRect(),x=u?u.distance(Te):r instanceof Ut?xZ(Te,r.path,He):_Z(Te,m,He);x<l&&(l=x,Te.transform(c),He.transform(c),He.toArray(i[0]),Te.toArray(i[1]),sa.toArray(i[2]))}gk(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Bp=[],Fr=new Bt;function gk(r,e){if(e<=180&&e>0){e=e/180*Math.PI,sa.fromArray(r[0]),Te.fromArray(r[1]),He.fromArray(r[2]),Bt.sub(Ra,sa,Te),Bt.sub(La,He,Te);var t=Ra.len(),n=La.len();if(!(t<.001||n<.001)){Ra.scale(1/t),La.scale(1/n);var a=Ra.dot(La),i=Math.cos(e);if(i<a){var o=Np(Te.x,Te.y,He.x,He.y,sa.x,sa.y,Bp,!1);Fr.fromArray(Bp),Fr.scaleAndAdd(La,o/Math.tan(Math.PI-e));var s=He.x!==Te.x?(Fr.x-Te.x)/(He.x-Te.x):(Fr.y-Te.y)/(He.y-Te.y);if(isNaN(s))return;s<0?Bt.copy(Fr,Te):s>1&&Bt.copy(Fr,He),Fr.toArray(r[1])}}}}function wZ(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,sa.fromArray(r[0]),Te.fromArray(r[1]),He.fromArray(r[2]),Bt.sub(Ra,Te,sa),Bt.sub(La,He,Te);var n=Ra.len(),a=La.len();if(!(n<.001||a<.001)){Ra.scale(1/n),La.scale(1/a);var i=Ra.dot(e),o=Math.cos(t);if(i<o){var s=Np(Te.x,Te.y,He.x,He.y,sa.x,sa.y,Bp,!1);Fr.fromArray(Bp);var l=Math.PI/2,u=Math.acos(La.dot(e)),c=l+u-t;if(c>=l)Bt.copy(Fr,He);else{Fr.scaleAndAdd(La,s/Math.tan(Math.PI/2-c));var h=He.x!==Te.x?(Fr.x-Te.x)/(He.x-Te.x):(Fr.y-Te.y)/(He.y-Te.y);if(isNaN(h))return;h<0?Bt.copy(Fr,Te):h>1&&Bt.copy(Fr,He)}Fr.toArray(r[1])}}}}function ym(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function SZ(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=$i(n[0],n[1]),i=$i(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=Uv([],n[1],n[0],o/a),l=Uv([],n[1],n[2],o/i),u=Uv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)r.lineTo(n[c][0],n[c][1])}function Ox(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Jc.length;l++){var u=Jc[l],c=e[u],h=u==="normal";if(c){var v=c.get("show"),p=h?s:Rt(a.states[u]&&a.states[u].ignore,s);if(p||!Rt(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&ym(n,!0,u,c);continue}n||(n=new $r,r.setTextGuideLine(n),!h&&(s||!o)&&ym(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),ym(n,!1,u,c)}}if(n){bt(n.style,t),n.style.fill=null;var m=i.get("showAbove"),x=r.textGuideLineConfig=r.textGuideLineConfig||{};x.showAbove=m||!1,n.buildPath=SZ}}function Nx(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Yr.length;n++){var a=Yr[n];t[a]=r.getModel([a,e])}return t}function yk(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new wp(o,i):null;e.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return e}function mk(r,e,t,n,a,i){var o=r.length;if(o<2)return;r.sort(function(A,C){return A.rect[e]-C.rect[e]});for(var s=0,l,u=!1,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[e]-s,l<0&&(v[e]-=l,h.label[e]-=l,u=!0),s=v[e]+v[t]}var p=r[0],d=r[o-1],m,x;y(),m<0&&S(-m,.8),x<0&&S(x,.8),y(),f(m,x,1),f(x,m,-1),y(),m<0&&b(-m),x<0&&b(x);function y(){m=p.rect[e]-n,x=a-d.rect[e]-d.rect[t]}function f(A,C,M){if(A<0){var L=Math.min(C,-A);if(L>0){_(L*M,0,o);var D=L+A;D<0&&S(-D*M,1)}else S(-A*M,1)}}function _(A,C,M){A!==0&&(u=!0);for(var L=C;L<M;L++){var D=r[L],P=D.rect;P[e]+=A,D.label[e]+=A}}function S(A,C){for(var M=[],L=0,D=1;D<o;D++){var P=r[D-1].rect,E=Math.max(r[D].rect[e]-P[e]-P[t],0);M.push(E),L+=E}if(L){var O=Math.min(Math.abs(A)/L,C);if(A>0)for(var D=0;D<o-1;D++){var N=M[D]*O;_(N,0,D+1)}else for(var D=o-1;D>0;D--){var N=M[D-1]*O;_(-N,D,o)}}}function b(A){var C=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),L=0;L<o-1;L++)if(C>0?_(M,0,L+1):_(-M,o-L-1,o),A-=M,A<=0)return}return u}function bZ(r,e,t,n){return mk(r,"x","width",e,t)}function _k(r,e,t,n){return mk(r,"y","height",e,t)}function xk(r){var e=[];r.sort(function(m,x){return x.priority-m.priority});var t=new zt(0,0,0,0);function n(m){if(!m.ignore){var x=m.ensureState("emphasis");x.ignore==null&&(x.ignore=!1)}m.ignore=!0}for(var a=0;a<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=i.obb,v=!1,p=0;p<e.length;p++){var d=e[p];if(t.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new wp(d.localRect,d.transform)),h||(h=new wp(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function AZ(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function TZ(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:AZ(n&&n.shape.points)}}var oC=["align","verticalAlign","width","height","fontSize"],Br=new oi,mm=Qt(),CZ=Qt();function yv(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var mv=["x","y","rotation"],MZ=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();zt.applyTransform(c,c,u),u?Br.setLocalTransform(u):(Br.x=Br.y=Br.rotation=Br.originX=Br.originY=0,Br.scaleX=Br.scaleY=1),Br.rotation=mn(Br.rotation);var h=a.__hostTarget,v;if(h){v=h.getBoundingRect().plain();var p=h.getComputedTransform();zt.applyTransform(v,v,p)}var d=v&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Br.x,y:Br.y,scaleX:Br.scaleX,scaleY:Br.scaleY,rotation:Br.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(wt(a)||jt(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Dt(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){iC(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;wt(o.layoutOption)?c=o.layoutOption(TZ(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var v=!1;if(c.x!=null?(s.x=ut(c.x,t),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ut(c.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),v=!1)}var d=mm(s);d.needsUpdateLabelLine=v,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var m=0;m<oC.length;m++){var x=oC[m];s.setStyle(x,c[x]!=null?c[x]:u.style[x])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var f=o.seriesModel.getData(o.dataType);y=f.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=yk(this._labelList),i=fe(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=fe(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});bZ(i,0,t),_k(o,0,n);var s=fe(a,function(l){return l.layoutOption.hideOverlap});xk(s)},r.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=mm(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=Dt(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");Ox(e,Nx(s),l),iC(e,h)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Wl(e))){var i=mm(n),o=i.oldLayout,s=Dt(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(s.dataType);if(o){n.attr(o);var v=e.prevStates;v&&(Gt(v,"select")>=0&&n.attr(i.oldLayoutSelect),Gt(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),oe(n,u,t,l)}else if(n.attr(u),!hu(n).valueAnimation){var h=Rt(n.style.opacity,1);n.style.opacity=0,Pe(n,{style:{opacity:h}},t,l)}if(i.oldLayout=u,n.states.select){var p=i.oldLayoutSelect={};yv(p,u,mv),yv(p,n.states.select,mv)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};yv(d,u,mv),yv(d,n.states.emphasis,mv)}hR(n,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=CZ(a),o=i.oldLayout,m={points:a.shape.points};o?(a.attr({shape:o}),oe(a,{shape:m},t)):(a.setShape(m),a.style.strokePercent=0,Pe(a,{style:{strokePercent:1}},t)),i.oldLayout=m}},r})(),_m=Qt();function LZ(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=_m(t).labelManager;a||(a=_m(t).labelManager=new MZ),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=_m(t).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var xm=Math.sin,wm=Math.cos,wk=Math.PI,ns=Math.PI*2,DZ=180/wk,Sk=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,n,a,i,o){this._add("C",e,t,n,a,i,o)},r.prototype.quadraticCurveTo=function(e,t,n,a){this._add("Q",e,t,n,a)},r.prototype.arc=function(e,t,n,a,i,o){this.ellipse(e,t,n,n,0,a,i,o)},r.prototype.ellipse=function(e,t,n,a,i,o,s,l){var u=s-o,c=!l,h=Math.abs(u),v=Ji(h-ns)||(c?u>=ns:-u>=ns),p=u>0?u%ns:u%ns+ns,d=!1;v?d=!0:Ji(h)?d=!1:d=p>=wk==!!c;var m=e+n*wm(o),x=t+a*xm(o);this._start&&this._add("M",m,x);var y=Math.round(i*DZ);if(v){var f=1/this._p,_=(c?1:-1)*(ns-f);this._add("A",n,a,y,1,+c,e+n*wm(o+_),t+a*xm(o+_)),f>.01&&this._add("A",n,a,y,0,+c,m,x)}else{var S=e+n*wm(s),b=t+a*xm(s);this._add("A",n,a,y,+d,+c,S,b)}},r.prototype.rect=function(e,t,n,a){this._add("M",e,t),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,a,i,o,s,l,u){for(var c=[],h=this._p,v=1;v<arguments.length;v++){var p=arguments[v];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Bx="none",IZ=Math.round;function PZ(r){var e=r.fill;return e!=null&&e!==Bx}function RZ(r){var e=r.stroke;return e!=null&&e!==Bx}var G_=["lineCap","miterLimit","lineJoin"],EZ=et(G_,function(r){return"stroke-"+r.toLowerCase()});function kZ(r,e,t,n){var a=e.opacity==null?1:e.opacity;if(t instanceof dr){r("opacity",a);return}if(PZ(e)){var i=qc(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;o<1&&r("fill-opacity",o)}else r("fill",Bx);if(RZ(e)){var s=qc(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,h=e.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var v=Ax(t),p=v[0],d=v[1];p&&(d=IZ(d||0),r("stroke-dasharray",p.join(",")),(d||n)&&r("stroke-dashoffset",d))}for(var m=0;m<G_.length;m++){var x=G_[m];if(e[x]!==_p[x]){var y=e[x]||_p[x];y&&r(EZ[m],y)}}}}var bk="http://www.w3.org/2000/svg",Ak="http://www.w3.org/1999/xlink",OZ="http://www.w3.org/2000/xmlns/",NZ="http://www.w3.org/XML/1998/namespace",sC="ecmeta_";function Tk(r){return document.createElementNS(bk,r)}function or(r,e,t,n,a){return{tag:r,attrs:t||{},children:n,text:a,key:e}}function BZ(r,e){var t=[];if(e)for(var n in e){var a=e[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function zZ(r){return"</"+r+">"}function zx(r,e){e=e||{};var t=e.newline?`
|
|
34
|
+
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return BZ(o,s)+(o!=="style"?Gr(l):l||"")+(i?""+t+et(i,function(u){return n(u)}).join(t)+t:"")+zZ(o)}return n(r)}function VZ(r,e,t){t=t||{};var n=t.newline?`
|
|
35
|
+
`:"",a=" {"+n,i=n+"}",o=et(jt(r),function(l){return l+a+et(jt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=et(jt(e),function(l){return"@keyframes "+l+a+et(jt(e[l]),function(u){return u+a+et(jt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function H_(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lC(r,e,t,n){return or("svg","root",{width:r,height:e,xmlns:bk,"xmlns:xlink":Ak,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var FZ=0;function Ck(){return FZ++}var uC={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"},os="transform-origin";function GZ(r,e,t){var n=K({},r.shape);K(n,e),r.buildPath(t,n);var a=new Sk;return a.reset(sP(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function HZ(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[os]=t+"px "+n+"px")}var WZ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Mk(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function UZ(r,e,t){var n=r.shape.paths,a={},i,o;if(R(n,function(l){var u=H_(t.zrId);u.animation=!0,Fd(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,v=jt(c),p=v.length;if(p){o=v[p-1];var d=c[o];for(var m in d){var x=d[m];a[m]=a[m]||{d:""},a[m].d+=x.d||""}for(var y in h){var f=h[y].animation;f.indexOf(o)>=0&&(i=f)}}}),!!i){e.d=!1;var s=Mk(a,t);return i.replace(o,s)}}function cC(r){return ht(r)?uC[r]?"cubic-bezier("+uC[r]+")":H1(r)?r:"":""}function Fd(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof nx){var s=UZ(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],h=[c.getMaxTime()/1e3+"s"],v=cC(c.getClip().easing),p=c.getDelay();v?h.push(v):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function m(f){var _=f[1],S=_.length,b={},A={},C={},M="animation-timing-function";function L(Mt,mt,Pt){for(var gt=Mt.getTracks(),St=Mt.getMaxTime(),se=0;se<gt.length;se++){var te=gt[se];if(te.needsAnimate()){var Zt=te.keyframes,ue=te.propName;if(Pt&&(ue=Pt(ue)),ue)for(var ke=0;ke<Zt.length;ke++){var De=Zt[ke],Ue=Math.round(De.time/St*100)+"%",sn=cC(De.easing),cr=De.rawValue;(ht(cr)||ae(cr))&&(mt[Ue]=mt[Ue]||{},mt[Ue][ue]=De.rawValue,sn&&(mt[Ue][M]=sn))}}}}for(var D=0;D<S;D++){var P=_[D],E=P.targetName;E?E==="shape"&&L(P,A):!n&&L(P,b)}for(var O in b){var N={};fP(N,r),K(N,b[O]);var z=lP(N),G=b[O][M];C[O]=z?{transform:z}:{},HZ(C[O],N),G&&(C[O][M]=G)}var U,W=!0;for(var O in A){C[O]=C[O]||{};var Y=!U,G=A[O][M];Y&&(U=new Va);var q=U.len();U.reset(),C[O].d=GZ(r,A[O],U);var Q=U.len();if(!Y&&q!==Q){W=!1;break}G&&(C[O][M]=G)}if(!W)for(var O in C)delete C[O].d;if(!n)for(var D=0;D<S;D++){var P=_[D],E=P.targetName;E==="style"&&L(P,C,function(gt){return WZ[gt]})}for(var rt=jt(C),ct=!0,vt,D=1;D<rt.length;D++){var _t=rt[D-1],Nt=rt[D];if(C[_t][os]!==C[Nt][os]){ct=!1;break}vt=C[_t][os]}if(ct&&vt){for(var O in C)C[O][os]&&delete C[O][os];e[os]=vt}if(fe(rt,function(Mt){return jt(C[Mt]).length>0}).length){var Jt=Mk(C,t);return Jt+" "+f[0]+" both"}}for(var x in l){var s=m(l[x]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+Ck();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function YZ(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};hC(n,e,t)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=t_(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),hC(n,e,t)}}function hC(r,e,t,n){var a=JSON.stringify(r),i=t.cssStyleCache[a];i||(i=t.zrId+"-cls-"+Ck(),t.cssStyleCache[a]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var uh=Math.round;function Lk(r){return r&&ht(r.src)}function Dk(r){return r&&wt(r.toDataURL)}function Vx(r,e,t,n){kZ(function(a,i){var o=a==="fill"||a==="stroke";o&&oP(i)?Pk(e,r,a,n):o&&W1(i)?Rk(t,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),QZ(t,r,n)}function Fx(r,e){var t=HW(e);t&&(t.each(function(n,a){n!=null&&(r[(sC+a).toLowerCase()]=n+"")}),e.isSilent()&&(r[sC+"silent"]="true"))}function fC(r){return Ji(r[0]-1)&&Ji(r[1])&&Ji(r[2])&&Ji(r[3]-1)}function ZZ(r){return Ji(r[4])&&Ji(r[5])}function Gx(r,e,t){if(e&&!(ZZ(e)&&fC(e))){var n=1e4;r.transform=fC(e)?"translate("+uh(e[4]*n)/n+" "+uh(e[5]*n)/n+")":hW(e)}}function vC(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(uh(n[i][0]*t)/t),a.push(uh(n[i][1]*t)/t);e.points=a.join(" ")}function pC(r){return!r.smooth}function XZ(r){var e=et(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=uh(s*a)/a)}}}var $Z={circle:[XZ(["cx","cy","r"])],polyline:[vC,pC],polygon:[vC,pC]};function jZ(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Ik(r,e){var t=r.style,n=r.shape,a=$Z[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&sP(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&jZ(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var p=v.getVersion(),d=r,m=d.__svgPathBuilder;(d.__svgPathVersion!==p||!m||l!==d.__svgPathStrokePercent)&&(m||(m=d.__svgPathBuilder=new Sk),m.reset(u),v.rebuildPath(m,l),m.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),i.d=m.getStr()}return Gx(i,r.transform),Vx(i,t,r,e),Fx(i,r),e.animation&&Fd(r,i,e),e.emphasis&&YZ(r,i,e),or(s,r.id+"",i)}function qZ(r,e){var t=r.style,n=t.image;if(n&&!ht(n)&&(Lk(n)?n=n.src:Dk(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Gx(l,r.transform),Vx(l,t,r,e),Fx(l,r),e.animation&&Fd(r,l,e),or("image",r.id+"",l)}}function KZ(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||so,i=t.x||0,o=vW(t.y||0,fd(a),t.textBaseline),s=fW[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(zP(t)){var u="",c=t.fontStyle,h=BP(t.fontSize);if(!parseFloat(h))return;var v=t.fontFamily||BI,p=t.fontWeight;u+="font-size:"+h+";font-family:"+v+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Gx(l,r.transform),Vx(l,t,r,e),Fx(l,r),e.animation&&Fd(r,l,e),or("text",r.id+"",l,void 0,n)}}function dC(r,e){if(r instanceof Ut)return Ik(r,e);if(r instanceof dr)return qZ(r,e);if(r instanceof jl)return KZ(r,e)}function QZ(r,e,t){var n=r.style;if(pW(n)){var a=dW(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,h=n.shadowOffsetY||0,v=n.shadowBlur,p=qc(n.shadowColor),d=p.opacity,m=p.color,x=v/2/l,y=v/2/u,f=x+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=or("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[or("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:f,"flood-color":m,"flood-opacity":d})]),i[a]=o}e.filter=hd(o)}}function Pk(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(aP(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(iP(a))i="radialGradient",o.cx=Rt(a.x,.5),o.cy=Rt(a.y,.5),o.r=Rt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=e_(s[u].offset)*100+"%",v=s[u].color,p=qc(v),d=p.color,m=p.opacity,x={offset:h};x["stop-color"]=d,m<1&&(x["stop-opacity"]=m),l.push(or("stop",u+"",x))}var y=or(i,"",o,l),f=zx(y),_=n.gradientCache,S=_[f];S||(S=n.zrId+"-g"+n.gradientIdx++,_[f]=S,o.id=S,n.defs[S]=or(i,S,o,l)),e[t]=hd(S)}function Rk(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(nP(a)){var v=a.imageWidth,p=a.imageHeight,d=void 0,m=a.image;if(ht(m)?d=m:Lk(m)?d=m.src:Dk(m)&&(d=m.toDataURL()),typeof Image>"u"){var x="Image width/height must been given explictly in svg-ssr renderer.";Ur(v,x),Ur(p,x)}else if(v==null||p==null){var y=function(D,P){if(D){var E=D.elm,O=v||P.width,N=p||P.height;D.tag==="pattern"&&(u?(N=1,O/=i.width):c&&(O=1,N/=i.height)),D.attrs.width=O,D.attrs.height=N,E&&(E.setAttribute("width",O),E.setAttribute("height",N))}},f=j1(d,null,r,function(D){l||y(A,D),y(h,D)});f&&f.width&&f.height&&(v=v||f.width,p=p||f.height)}h=or("image","img",{href:d,width:v,height:p}),o.width=v,o.height=p}else a.svgElement&&(h=Ct(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=lP(a);b&&(o.patternTransform=b);var A=or("pattern","",o,[h]),C=zx(A),M=n.patternCache,L=M[C];L||(L=n.zrId+"-p"+n.patternIdx++,M[C]=L,o.id=L,A=n.defs[L]=or("pattern",L,o,[h])),e[t]=hd(L)}}function JZ(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=or("clipPath",i,o,[Ik(r,t)])}e["clip-path"]=hd(i)}function gC(r){return document.createTextNode(r)}function vs(r,e,t){r.insertBefore(e,t)}function yC(r,e){r.removeChild(e)}function mC(r,e){r.appendChild(e)}function Ek(r){return r.parentNode}function kk(r){return r.nextSibling}function Sm(r,e){r.textContent=e}var _C=58,tX=120,eX=or("","");function W_(r){return r===void 0}function Ca(r){return r!==void 0}function rX(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function Ac(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function ch(r){var e,t=r.children,n=r.tag;if(Ca(n)){var a=r.elm=Tk(n);if(Hx(eX,r),tt(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&mC(a,ch(i))}else Ca(r.text)&&!Tt(r.text)&&mC(a,gC(r.text))}else r.elm=gC(r.text);return r.elm}function Ok(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&vs(r,ch(i),e)}}function zp(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(Ca(a.tag)){var i=Ek(a.elm);yC(i,a.elm)}else yC(r,a.elm)}}function Hx(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==tX?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(OZ,t,o):t.charCodeAt(3)===_C?n.setAttributeNS(NZ,t,o):t.charCodeAt(5)===_C?n.setAttributeNS(Ak,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function nX(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],c=t[l],h,v,p,d;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:c==null?c=t[--l]:Ac(o,u)?(El(o,u),o=e[++n],u=t[++a]):Ac(s,c)?(El(s,c),s=e[--i],c=t[--l]):Ac(o,c)?(El(o,c),vs(r,o.elm,kk(s.elm)),o=e[++n],c=t[--l]):Ac(s,u)?(El(s,u),vs(r,s.elm,o.elm),s=e[--i],u=t[++a]):(W_(h)&&(h=rX(e,n,i)),v=h[u.key],W_(v)?vs(r,ch(u),o.elm):(p=e[v],p.tag!==u.tag?vs(r,ch(u),o.elm):(El(p,u),e[v]=void 0,vs(r,p.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(d=t[l+1]==null?null:t[l+1].elm,Ok(r,d,t,a,l)):zp(r,e,n,i))}function El(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(Hx(r,e),W_(e.text)?Ca(n)&&Ca(a)?n!==a&&nX(t,n,a):Ca(a)?(Ca(r.text)&&Sm(t,""),Ok(t,null,a,0,a.length-1)):Ca(n)?zp(t,n,0,n.length-1):Ca(r.text)&&Sm(t,""):r.text!==e.text&&(Ca(n)&&zp(t,n,0,n.length-1),Sm(t,e.text)))}function aX(r,e){if(Ac(r,e))El(r,e);else{var t=r.elm,n=Ek(t);ch(e),n!==null&&(vs(n,e.elm,kk(t)),zp(n,[r],0,0))}return e}var iX=0,oX=(function(){function r(e,t,n){if(this.type="svg",this.refreshHover=xC(),this.configLayer=xC(),this.storage=t,this._opts=n=K({},n),this.root=e,this._id="zr"+iX++,this._oldVNode=lC(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Tk("svg");Hx(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",aX(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return dC(e,H_(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=H_(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=sX(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=or("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=et(jt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(or("defs","defs",{},u)),e.animation){var c=VZ(i.cssNodes,i.cssAnims,{newline:!0});if(c){var h=or("style","stl",{},[],c);o.push(h)}}return lC(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},zx(this.renderToVNode({animation:Rt(e.cssAnimation,!0),emphasis:Rt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Rt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var h=e[c];if(!h.invisible){var v=h.__clipPaths,p=v&&v.length||0,d=l&&l.length||0,m=void 0;for(m=Math.max(p-1,d-1);m>=0&&!(v&&l&&v[m]===l[m]);m--);for(var x=d-1;x>m;x--)o--,s=i[o-1];for(var y=m+1;y<p;y++){var f={};JZ(v[y],f,t);var _=or("g","clip-g-"+u++,f,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var S=dC(h,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=zl(a,0,n),t=zl(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(W1(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=yW(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r})();function xC(r){return function(){}}function sX(r,e,t,n){var a;if(t&&t!=="none")if(a=or("rect","bg",{width:r,height:e,x:"0",y:"0"}),oP(t))Pk({fill:t},a.attrs,"fill",n);else if(W1(t))Rk({style:{fill:t},dirty:We,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=qc(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function lX(r){r.registerPainter("svg",oX)}function wC(r,e,t){var n=lo.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var bm=(function(r){Le(e,r);function e(t,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||yp,typeof t=="string"?o=wC(t,n,a):Tt(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(WI(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=wC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new zt(0,0,0,0);function c(f){if(!(!f.isFinite()||f.isZero()))if(o.length===0){var _=new zt(0,0,0,0);_.copy(f),o.push(_)}else{for(var S=!1,b=1/0,A=0,C=0;C<o.length;++C){var M=o[C];if(M.intersect(f)){var L=new zt(0,0,0,0);L.copy(M),L.union(f),o[C]=L,S=!0;break}else if(l){u.copy(f),u.union(M);var D=f.width*f.height,P=M.width*M.height,E=u.width*u.height,O=E-D-P;O<b&&(b=O,A=C)}}if(l&&(o[A].union(f),S=!0),!S){var _=new zt(0,0,0,0);_.copy(f),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=t[h];if(v){var p=v.shouldBePainted(a,i,!0,!0),d=v.__isRendered&&(v.__dirty&yn||!p)?v.getPrevPaintRect():null;d&&c(d);var m=p&&(v.__dirty&yn||!v.__isRendered)?v.getPaintRect():null;m&&c(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],p=v&&v.shouldBePainted(a,i,!0,!0);if(v&&(!p||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&c(d)}}var x;do{x=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(x=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(x);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var p=this.domBack;function d(m,x,y,f){if(o.clearRect(m,x,y,f),n&&n!=="transparent"){var _=void 0;if(ld(n)){var S=n.global||n.__width===y&&n.__height===f;_=S&&n.__canvasGradient||E_(o,n,{x:0,y:0,width:y,height:f}),n.__canvasGradient=_,n.__width=y,n.__height=f}else TH(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=k_(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,x,y,f),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,m,x,y,f),o.restore())}!a||u?d(0,0,s,l):a.length&&R(a,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},e})(Yn),SC=1e5,as=314159,_v=.01,uX=.001;function cX(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function hX(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var fX=(function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||yp,this._singleCanvas=i,this.root=e;var o=e.style;o&&(WI(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,h=c.width,v=c.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,c.width=h*this.dpr,c.height=v*this.dpr,this._width=h,this._height=v;var p=new bm(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[as]=p,p.zlevel=as,s.push(as),this._domRoot=e}else{this._width=zl(e,0,n),this._height=zl(e,1,n);var u=this._domRoot=hX(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(SC)),i||(i=n.ctx,i.save()),Ss(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(SC)},r.prototype.paintOne=function(e,t){_E(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;hp(function(){l._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(as).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,h=!1,v=function(m){var x=i[m],y=x.ctx,f=o&&x.createRepaintRects(e,t,p._width,p._height),_=n?x.__startIndex:x.__drawIndex,S=!n&&x.incremental&&Date.now,b=S&&Date.now(),A=x.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(x.__startIndex===x.__endIndex)x.clear(!1,A,f);else if(_===x.__startIndex){var C=e[_];(!C.incremental||!C.notClear||n)&&x.clear(!1,A,f)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=x.__startIndex);var M,L=function(O){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(M=_;M<x.__endIndex;M++){var z=e[M];if(z.__inHover&&(h=!0),a._doPaintEl(z,x,o,O,N,M===x.__endIndex-1),S){var G=Date.now()-b;if(G>15)break}}N.prevElClipPaths&&y.restore()};if(f)if(f.length===0)M=x.__endIndex;else for(var D=p.dpr,P=0;P<f.length;++P){var E=f[P];y.save(),y.beginPath(),y.rect(E.x*D,E.y*D,E.width*D,E.height*D),y.clip(),L(E),y.restore()}else y.save(),L(),y.restore();x.__drawIndex=M,x.__drawIndex<x.__endIndex&&(c=!1)},p=this,d=0;d<i.length;d++)v(d);return Yt.wxa&&R(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:h}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(Ss(s,e,i,o),e.setPrevPaintRect(l))}else Ss(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=as);var n=this._layers[e];return n||(n=new bm("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ot(n,this._layerConfig[e],!0):this._layerConfig[e-_v]&&Ot(n,this._layerConfig[e-_v],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&cX(t)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function t(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+uX,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?_v:0),this._needsManuallyCompositing),c.__builtin__||O1("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&yn&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,R(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ot(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+_v){var o=this._layers[i];Ot(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(Gt(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=zl(i,0,a),t=zl(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(as).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[as].dom;var t=new bm("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,a,i):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Ss(n,c,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function vX(r){r.registerPainter("canvas",fX)}var pX=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new Lt,a=je("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=je(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Me);function tu(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=Kl(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(Kl(r,e,t[o]));return i.join(" ")}}function Nk(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!tt(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var Nh=(function(r){j(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o){this.removeAll();var s=je(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=dX,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){di(this.childAt(0))},e.prototype.downplay=function(){gi(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(p):oe(v,p,s,n),ha(v)}if(this._updateCommon(t,n,l,a,i),u){var v=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Pe(v,p,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,h,v,p,d,m,x,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,p=i.blurScope,m=i.labelStatesModels,x=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var f=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=f.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=f.getModel(["select","itemStyle"]).getItemStyle(),c=f.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),p=_.get("blurScope"),d=_.get("disabled"),m=lr(f),x=_.getShallow("scale"),y=f.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Us(t.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var A=t.getItemVisual(n,"style"),C=A.fill;if(s instanceof dr){var M=s.style;s.useStyle(K({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},A))}else s.__isEmptyBrush?s.useStyle(K({},A)):s.useStyle(A),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var L=t.getItemVisual(n,"liftZ"),D=this._z2;L!=null?D==null&&(this._z2=s.z2,s.z2+=L):D!=null&&(s.z2=D,this._z2=null);var P=o&&o.useNameLabel;br(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:C,defaultOpacity:A.opacity});function E(z){return P?t.getName(z):tu(t,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var N=x==null||x===!0?Math.max(1.1,3/this._sizeY):isFinite(x)&&x>0?+x:1;O.scaleX=this._sizeX*N,O.scaleY=this._sizeY*N,this.setSymbolScale(1),Ne(this,v,p,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=Dt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&co(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();co(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return mu(t.getItemVisual(n,"symbolSize"))},e})(Lt);function dX(r,e){this.parent.drift(r,e)}function Am(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function bC(r){return r!=null&&!Tt(r)&&(r={isIgnore:r}),r||{}}function AC(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:lr(e),cursorStyle:e.get("cursor")}}var Bh=(function(){function r(e){this.group=new Lt,this._SymbolCtor=e||Nh}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=bC(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=AC(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||n.removeAll(),e.diff(i).add(function(h){var v=c(h);if(Am(e,v,h,t)){var p=new o(e,h,l,u);p.setPosition(v),e.setItemGraphicEl(h,p),n.add(p)}}).update(function(h,v){var p=i.getItemGraphicEl(v),d=c(h);if(!Am(e,d,h,t)){n.remove(p);return}var m=e.getItemVisual(h,"symbol")||"circle",x=p&&p.getSymbolType&&p.getSymbolType();if(!p||x&&x!==m)n.remove(p),p=new o(e,h,l,u),p.setPosition(d);else{p.updateData(e,h,l,u);var y={x:d[0],y:d[1]};s?p.attr(y):oe(p,y,a)}n.add(p),e.setItemGraphicEl(h,p)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=AC(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=bC(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Am(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){go(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r})();function Bk(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=gX(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,h=et(r.dimensions,function(d){return e.mapDimension(d)}),v=!1,p=e.getCalculationInfo("stackResultDimension");return fo(e,h[0])&&(v=!0,h[0]=p),fo(e,h[1])&&(v=!0,h[1]=p),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gX(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:ae(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function zk(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function yX(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function mX(r,e,t,n,a,i,o,s){for(var l=yX(r,e),u=[],c=[],h=[],v=[],p=[],d=[],m=[],x=Bk(a,e,o),y=r.getLayout("points")||[],f=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,A=void 0,C=void 0;switch(S.cmd){case"=":A=S.idx*2,C=S.idx1*2;var M=y[A],L=y[A+1],D=f[C],P=f[C+1];(isNaN(M)||isNaN(L))&&(M=D,L=P),u.push(M,L),c.push(D,P),h.push(t[A],t[A+1]),v.push(n[C],n[C+1]),m.push(e.getRawIndex(S.idx1));break;case"+":var E=S.idx,O=x.dataDimsForPoint,N=a.dataToPoint([e.get(O[0],E),e.get(O[1],E)]);C=E*2,u.push(N[0],N[1]),c.push(f[C],f[C+1]);var z=zk(x,a,e,E);h.push(z[0],z[1]),v.push(n[C],n[C+1]),m.push(e.getRawIndex(E));break;case"-":b=!1}b&&(p.push(S),d.push(d.length))}d.sort(function(_t,Nt){return m[_t]-m[Nt]});for(var G=u.length,U=Pa(G),W=Pa(G),Y=Pa(G),q=Pa(G),Q=[],_=0;_<d.length;_++){var rt=d[_],ct=_*2,vt=rt*2;U[ct]=u[vt],U[ct+1]=u[vt+1],W[ct]=c[vt],W[ct+1]=c[vt+1],Y[ct]=h[vt],Y[ct+1]=h[vt+1],q[ct]=v[vt],q[ct+1]=v[vt+1],Q[_]=p[rt]}return{current:U,next:W,stackedOnCurrent:Y,stackedOnNext:q,status:Q}}var Fi=Math.min,Gi=Math.max;function Ps(r,e){return isNaN(r)||isNaN(e)}function U_(r,e,t,n,a,i,o,s,l){for(var u,c,h,v,p,d,m=t,x=0;x<n;x++){var y=e[m*2],f=e[m*2+1];if(m>=a||m<0)break;if(Ps(y,f)){if(l){m+=i;continue}break}if(m===t)r[i>0?"moveTo":"lineTo"](y,f),h=y,v=f;else{var _=y-u,S=f-c;if(_*_+S*S<.5){m+=i;continue}if(o>0){for(var b=m+i,A=e[b*2],C=e[b*2+1];A===y&&C===f&&x<n;)x++,b+=i,m+=i,A=e[b*2],C=e[b*2+1],y=e[m*2],f=e[m*2+1],_=y-u,S=f-c;var M=x+1;if(l)for(;Ps(A,C)&&M<n;)M++,b+=i,A=e[b*2],C=e[b*2+1];var L=.5,D=0,P=0,E=void 0,O=void 0;if(M>=n||Ps(A,C))p=y,d=f;else{D=A-u,P=C-c;var N=y-u,z=A-y,G=f-c,U=C-f,W=void 0,Y=void 0;if(s==="x"){W=Math.abs(N),Y=Math.abs(z);var q=D>0?1:-1;p=y-q*W*o,d=f,E=y+q*Y*o,O=f}else if(s==="y"){W=Math.abs(G),Y=Math.abs(U);var Q=P>0?1:-1;p=y,d=f-Q*W*o,E=y,O=f+Q*Y*o}else W=Math.sqrt(N*N+G*G),Y=Math.sqrt(z*z+U*U),L=Y/(Y+W),p=y-D*o*(1-L),d=f-P*o*(1-L),E=y+D*o*L,O=f+P*o*L,E=Fi(E,Gi(A,y)),O=Fi(O,Gi(C,f)),E=Gi(E,Fi(A,y)),O=Gi(O,Fi(C,f)),D=E-y,P=O-f,p=y-D*W/Y,d=f-P*W/Y,p=Fi(p,Gi(u,y)),d=Fi(d,Gi(c,f)),p=Gi(p,Fi(u,y)),d=Gi(d,Fi(c,f)),D=y-p,P=f-d,E=y+D*Y/W,O=f+P*Y/W}r.bezierCurveTo(h,v,p,d,y,f),h=E,v=O}else r.lineTo(y,f)}u=y,c=f,m+=i}return x}var Vk=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),_X=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Vk},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ps(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ps(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=U_(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Va.CMD,s,l,u=n==="x",c=[],h=0;h<i.length;){var v=i[h++],p=void 0,d=void 0,m=void 0,x=void 0,y=void 0,f=void 0,_=void 0;switch(v){case o.M:s=i[h++],l=i[h++];break;case o.L:if(p=i[h++],d=i[h++],_=u?(t-s)/(p-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(p-s)*_+s;return u?[t,S]:[S,t]}s=p,l=d;break;case o.C:p=i[h++],d=i[h++],m=i[h++],x=i[h++],y=i[h++],f=i[h++];var b=u?vp(s,p,m,y,t,c):vp(l,d,x,f,t,c);if(b>0)for(var A=0;A<b;A++){var C=c[A];if(C<=1&&C>=0){var S=u?rr(l,d,x,f,C):rr(s,p,m,y,C);return u?[t,S]:[S,t]}}s=y,l=f;break}}},e})(Ut),xX=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Vk),Fk=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new xX},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ps(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ps(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=U_(t,a,o,s,s,1,n.smooth,l,n.connectNulls);U_(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e})(Ut);function Gk(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Kt({shape:{x:o,y:s,width:l,height:u}});if(e){var v=r.getBaseAxis(),p=v.isHorizontal(),d=v.inverse;p?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var m=wt(a)?function(x){a(x,h)}:null;Pe(h,{shape:{width:l,height:u,x:o,y:s}},t,null,n,m)}return h}function Hk(r,e,t){var n=r.getArea(),a=Ve(n.r0,1),i=Ve(n.r,1),o=new Zr({shape:{cx:Ve(r.cx,1),cy:Ve(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Pe(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function zh(r,e,t,n,a){if(r){if(r.type==="polar")return Hk(r,e,t);if(r.type==="cartesian2d")return Gk(r,e,t,n,a)}else return null;return null}function Zs(r,e){return r.type===e}function TC(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function CC(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function MC(r,e){var t=CC(r),n=t[0],a=t[1],i=CC(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function LC(r){return ae(r)?r:r?.5:0}function wX(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=Pa(n*2),i=0;i<n;i++){var o=zk(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Hi(r,e,t,n,a){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],v=[];if(a){for(l=0;l<r.length;l+=2){var p=e||r;!isNaN(p[l])&&!isNaN(p[l+1])&&v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),n){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+h[o])/2,m=[];u[o]=m[o]=d,u[1-o]=c[1-o],m[1-o]=h[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function SX(r,e){var t=[],n=r.length,a,i;function o(c,h,v){var p=c.coord,d=(v-p)/(h.coord-p),m=cW(d,[c.color,h.color]);return{coord:v,color:m}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function bX(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=e.getAxis(a),u=et(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,h=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var v=SX(u,a==="x"?t.getWidth():t.getHeight()),p=v.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var d=10,m=v[0].coord-d,x=v[p-1].coord+d,y=x-m;if(y<.001)return"transparent";R(v,function(_){_.offset=(_.coord-m)/y}),v.push({offset:p?v[p-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:p?v[0].offset:.5,color:h[0]||"transparent"});var f=new Dh(0,0,0,0,v,!0);return f[a]=m,f[a+"2"]=x,f}}}function AX(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&TX(i,e))){var o=e.mapDimension(i.dim),s={};return R(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function TX(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Nh.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function CX(r,e){return isNaN(r)||isNaN(e)}function MX(r){for(var e=r.length/2;e>0&&CX(r[e*2-2],r[e*2-1]);e--);return e-1}function DC(r,e){return[r[e*2],r[e*2+1]]}function LX(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function Wk(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Yr.length;e++)if(r.get([Yr[e],"endLabel","show"]))return!0;return!1}function Tm(r,e,t,n){if(Zs(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Wk(n)?function(p,d){r._endLabelOnDuring(p,d,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Gk(e,t,n,function(){var p=r._endLabel;p&&t&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=c.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,c),c}else return Hk(e,t,n)}function DX(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var IX=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Lt,n=new Bh;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=ft(this._changePolyState,this)},e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],h=i.type==="polar",v=this._coordSys,p=this._symbolDraw,d=this._polyline,m=this._polygon,x=this._lineGroup,y=!n.ssr&&t.get("animation"),f=!u.isEmpty(),_=u.get("origin"),S=Bk(i,s,_),b=f&&wX(i,s,S),A=t.get("showSymbol"),C=t.get("connectNulls"),M=A&&!h&&AX(t,s,i),L=this._data;L&&L.eachItemGraphicEl(function(_t,Nt){_t.__temp&&(o.remove(_t),L.setItemGraphicEl(Nt,null))}),A||p.remove(),o.add(x);var D=h?!1:t.get("step"),P;i&&i.getArea&&t.get("clip",!0)&&(P=i.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var E=bX(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&D===this._step))A&&p.updateData(s,{isIgnore:M,clipShape:P,disableAnimation:!0,getSymbolPoint:function(_t){return[c[_t*2],c[_t*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,P),D&&(b&&(b=Hi(b,c,i,D,C)),c=Hi(c,null,i,D,C)),d=this._newPolyline(c),f?m=this._newPolygon(c,b):m&&(x.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,Bs(E)),x.setClipPath(Tm(this,i,!0,t));else{f&&!m?m=this._newPolygon(c,b):m&&!f&&(x.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,Bs(E));var O=x.getClipPath();if(O){var N=Tm(this,i,!1,t);Pe(O,{shape:N.shape},t)}else x.setClipPath(Tm(this,i,!0,t));A&&p.updateData(s,{isIgnore:M,clipShape:P,disableAnimation:!0,getSymbolPoint:function(_t){return[c[_t*2],c[_t*2+1]]}}),(!TC(this._stackedOnPoints,b)||!TC(this._points,c))&&(y?this._doUpdateAnimation(s,b,i,a,D,_,C):(D&&(b&&(b=Hi(b,c,i,D,C)),c=Hi(c,null,i,D,C)),d.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:b})))}var z=t.getModel("emphasis"),G=z.get("focus"),U=z.get("blurScope"),W=z.get("disabled");if(d.useStyle(bt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Sr(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Y=d.getState("emphasis").style;Y.lineWidth=+d.style.lineWidth+1}Dt(d).seriesIndex=t.seriesIndex,Ne(d,G,U,W);var q=LC(t.get("smooth")),Q=t.get("smoothMonotone");if(d.setShape({smooth:q,smoothMonotone:Q,connectNulls:C}),m){var rt=s.getCalculationInfo("stackedOnSeries"),ct=0;m.useStyle(bt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),rt&&(ct=LC(rt.get("smooth"))),m.setShape({smooth:q,stackedOnSmooth:ct,smoothMonotone:Q,connectNulls:C}),Sr(m,t,"areaStyle"),Dt(m).seriesIndex=t.seriesIndex,Ne(m,G,U,W)}var vt=this._changePolyState;s.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=vt)}),this._polyline.onHoverStateChange=vt,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=D,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,n){Dt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=ks(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var v=t.get("zlevel")||0,p=t.get("z")||0;u=new Nh(o,s),u.x=c,u.y=h,u.setZ(v,p);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=p,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else we.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=ks(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else we.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;xp(this._polyline,t),n&&xp(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _X({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Fk({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");wt(c)&&(c=c(null));var h=u.get("animationDelay")||0,v=wt(h)?h(null):h;t.eachItemGraphicEl(function(p,d){var m=p;if(m){var x=[p.x,p.y],y=void 0,f=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(x);i?(y=S.startAngle,f=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,f=S.r,_=b[0])}else{var A=a;i?(y=A.x,f=A.x+A.width,_=p.x):(y=A.y+A.height,f=A.y,_=p.y)}var C=f===y?0:(_-y)/(f-y);l&&(C=1-C);var M=wt(h)?h(d):c*C+v,L=m.getSymbolPath(),D=L.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:M}),L.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(Wk(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new re({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=MX(l);c>=0&&(br(s,lr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(h,v,p){return p!=null?Nk(o,p):tu(o,h)},enableTextSetter:!0},DX(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=a.getLayout("points"),v=a.hostModel,p=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,x=l.getBaseAxis(),y=x.isHorizontal(),f=x.inverse,_=n.shape,S=f?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?m:0)*(f?-1:1),A=(y?0:-m)*(f?-1:1),C=y?"x":"y",M=LX(h,S,C),L=M.range,D=L[1]-L[0],P=void 0;if(D>=1){if(D>1&&!p){var E=DC(h,L[0]);u.attr({x:E[0]+b,y:E[1]+A}),o&&(P=v.getRawValue(L[0]))}else{var E=c.getPointOn(S,C);E&&u.attr({x:E[0]+b,y:E[1]+A});var O=v.getRawValue(L[0]),N=v.getRawValue(L[1]);o&&(P=MP(a,d,O,N,M.t))}i.lastFrameIndex=L[0]}else{var z=t===1||i.lastFrameIndex>0?L[0]:0,E=DC(h,z);o&&(P=v.getRawValue(z)),u.attr({x:E[0]+b,y:E[1]+A})}if(o){var G=hu(u);typeof G.setLabelText=="function"&&G.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,v=mX(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),p=v.current,d=v.stackedOnCurrent,m=v.next,x=v.stackedOnNext;if(o&&(d=Hi(v.stackedOnCurrent,v.current,a,o,l),p=Hi(v.current,null,a,o,l),x=Hi(v.stackedOnNext,v.next,a,o,l),m=Hi(v.next,null,a,o,l)),MC(p,m)>3e3||c&&MC(d,x)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:x}));return}u.shape.__points=v.current,u.shape.points=p;var y={shape:{points:m}};v.current!==p&&(y.shape.__points=v.next),u.stopAnimation(),oe(u,y,h),c&&(c.setShape({points:p,stackedOnPoints:d}),c.stopAnimation(),oe(c,{shape:{stackedOnPoints:x}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var f=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var A=t.getItemGraphicEl(_[S].idx1);A&&f.push({el:A,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,M=0;M<f.length;M++){var L=f[M].el,D=f[M].ptIdx*2;L.x=C[D],L.y=C[D+1],L.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(we);function Vh(r,e){return{seriesType:r,plan:gu(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(a){var s=et(a.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");fo(n,s[0])&&(s[0]=u),fo(n,s[1])&&(s[1]=u);var c=n.getStore(),h=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(p,d){for(var m=p.end-p.start,x=o&&Pa(m*l),y=[],f=[],_=p.start,S=0;_<p.end;_++){var b=void 0;if(l===1){var A=c.get(h,_);b=a.dataToPoint(A,null,f)}else y[0]=c.get(h,_),y[1]=c.get(v,_),b=a.dataToPoint(y,null,f);o?(x[S++]=b[0],x[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",x)}}}}}}var PX={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},RX=function(r){return Math.round(r.length/2)};function Uk(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(h||1),p=Math.round(s/v);if(isFinite(p)&&p>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/p)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/p));var d=void 0;ht(i)?d=PX[i]:wt(i)&&(d=i),d&&e.setData(a.downSample(a.mapDimension(u.dim),1/p,d,RX))}}}}}function EX(r){r.registerChartView(IX),r.registerSeriesModel(pX),r.registerLayout(Vh("line",!0)),r.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)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Uk("line"))}var hh=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)R(i.getAxes(),function(v,p){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),m=v.getTickModel().get("alignWithLabel"),x=o[p],y=n[p]==="x1"||n[p]==="y1";if(y&&!m&&(x+=1),d.length<2)return;if(d.length===2){s[p]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var f=void 0,_=void 0,S=1,b=0;b<d.length;b++){var A=d[b].coord,C=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(C===x){_=A;break}else if(C<x)f=A;else if(f!=null&&C>x){_=(A+f)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(f?f&&(_=d[d.length-1].coord):_=d[0].coord),s[p]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e})(Me);Me.registerClass(hh);var kX=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return bi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=yo(hh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e})(hh),OX=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Vp=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new OX},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,h=n.endAngle,v=n.clockwise,p=Math.PI*2,d=v?h-c<p:c-h<p;d||(c=h-(v?p:-p));var m=Math.cos(c),x=Math.sin(c),y=Math.cos(h),f=Math.sin(h);d?(t.moveTo(m*o+a,x*o+i),t.arc(m*u+a,x*u+i,l,-Math.PI+c,c,!v)):t.moveTo(m*s+a,x*s+i),t.arc(a,i,s,c,h,!v),t.arc(y*u+a,f*u+i,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&t.arc(a,i,o,h,c,v)},e})(Ut);function NX(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return mp(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,h=u.cy,v=u.r,p=u.r0,d=(v+p)/2,m=u.startAngle,x=u.endAngle,y=(m+x)/2,f=t?Math.abs(v-p)/2:0,_=Math.cos,S=Math.sin,b=c+v*_(m),A=h+v*S(m),C="left",M="top";switch(s){case"startArc":b=c+(p-l)*_(y),A=h+(p-l)*S(y),C="center",M="top";break;case"insideStartArc":b=c+(p+l)*_(y),A=h+(p+l)*S(y),C="center",M="bottom";break;case"startAngle":b=c+d*_(m)+xv(m,l+f,!1),A=h+d*S(m)+wv(m,l+f,!1),C="right",M="middle";break;case"insideStartAngle":b=c+d*_(m)+xv(m,-l+f,!1),A=h+d*S(m)+wv(m,-l+f,!1),C="left",M="middle";break;case"middle":b=c+d*_(y),A=h+d*S(y),C="center",M="middle";break;case"endArc":b=c+(v+l)*_(y),A=h+(v+l)*S(y),C="center",M="bottom";break;case"insideEndArc":b=c+(v-l)*_(y),A=h+(v-l)*S(y),C="center",M="top";break;case"endAngle":b=c+d*_(x)+xv(x,l+f,!0),A=h+d*S(x)+wv(x,l+f,!0),C="left",M="middle";break;case"insideEndAngle":b=c+d*_(x)+xv(x,-l+f,!0),A=h+d*S(x)+wv(x,-l+f,!0),C="right",M="middle";break;default:return mp(n,a,i)}return n=n||{},n.x=b,n.y=A,n.align=C,n.verticalAlign=M,n}}function BX(r,e,t,n){if(ae(n)){r.setTextConfig({rotation:n});return}else if(tt(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function xv(r,e,t){return e*Math.sin(r)*(t?-1:1)}function wv(r,e,t){return e*Math.cos(r)*(t?1:-1)}function bs(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;tt(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:et(n,function(i){return ca(i,a)})}}var Cm=Math.max,Mm=Math.min;function zX(r,e){var t=r.getArea&&r.getArea();if(Zs(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var VX=(function(r){j(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){go(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var v=t.isAnimationEnabled()?t:null,p=FX(t,u);p&&this._enableRealtimeSort(p,s,a);var d=t.get("clip",!0)||p,m=zX(u,s);o.removeClipPath();var x=t.get("roundCap",!0),y=t.get("showBackground",!0),f=t.getModel("backgroundStyle"),_=f.get("borderRadius")||0,S=[],b=this._backgroundEls,A=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function M(P){var E=Sv[u.type](s,P),O=XX(u,h,E);return O.useStyle(f.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),S[P]=O,O}s.diff(l).add(function(P){var E=s.getItemModel(P),O=Sv[u.type](s,P,E);if(y&&M(P),!(!s.hasValue(P)||!kC[u.type](O))){var N=!1;d&&(N=IC[u.type](m,O));var z=PC[u.type](t,s,P,O,h,v,c.model,!1,x);p&&(z.forceLabelAnimation=!0),OC(z,s,P,E,O,t,h,u.type==="polar"),A?z.attr({shape:O}):p?RC(p,v,z,O,P,h,!1,!1):Pe(z,{shape:O},t,P),s.setItemGraphicEl(P,z),o.add(z),z.ignore=N}}).update(function(P,E){var O=s.getItemModel(P),N=Sv[u.type](s,P,O);if(y){var z=void 0;b.length===0?z=M(E):(z=b[E],z.useStyle(f.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",_):z.setShape("cornerRadius",_),S[P]=z);var G=Sv[u.type](s,P),U=Zk(h,G,u);oe(z,{shape:U},v,P)}var W=l.getItemGraphicEl(E);if(!s.hasValue(P)||!kC[u.type](N)){o.remove(W);return}var Y=!1;if(d&&(Y=IC[u.type](m,N),Y&&o.remove(W)),W?ha(W):W=PC[u.type](t,s,P,N,h,v,c.model,!!W,x),p&&(W.forceLabelAnimation=!0),C){var q=W.getTextContent();if(q){var Q=hu(q);Q.prevValue!=null&&(Q.prevValue=Q.value)}}else OC(W,s,P,O,N,t,h,u.type==="polar");A?W.attr({shape:N}):p?RC(p,v,W,N,P,h,!0,C):oe(W,{shape:N},t,P,null),s.setItemGraphicEl(P,W),W.ignore=Y,o.add(W)}).remove(function(P){var E=l.getItemGraphicEl(P);E&&eh(E,t,P)}).execute();var L=this._backgroundGroup||(this._backgroundGroup=new Lt);L.removeAll();for(var D=0;D<S.length;++D)L.add(S[D]);o.add(L),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),BC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),BC(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&zh(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:et(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:n(t.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){eh(i,t,Dt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(we),IC={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Cm(e.x,r.x),s=Mm(e.x+e.width,a),l=Cm(e.y,r.y),u=Mm(e.y+e.height,i),c=s<o,h=u<l;return e.x=c&&o>a?s:o,e.y=h&&l>i?u:l,e.width=c?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Mm(e.r,r.r),i=Cm(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},PC={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new Kt({shape:K({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,h=a?"height":"width";c[h]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Vp:Zr,c=new u({shape:n,z2:1});c.name="item";var h=Yk(a);if(c.calculateTextPosition=NX(h,{isRoundCap:u===Vp}),i){var v=c.shape,p=a?"r":"endAngle",d={};v[p]=a?n.r0:n.startAngle,d[p]=n[p],(s?oe:Pe)(c,{shape:d},i)}return c}};function FX(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function RC(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?oe:Pe)(t,{shape:l},e,a,null);var c=e?r.baseAxis.model:null;(o?oe:Pe)(t,{shape:u},c,a)}function EC(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var GX=["x","y","width","height"],HX=["cx","cy","r","startAngle","endAngle"],kC={cartesian2d:function(r){return!EC(r,GX)},polar:function(r){return!EC(r,HX)}},Sv={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),a=t?UX(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function WX(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Yk(r){return(function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}})(r)}function OC(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=r.shape,h=bs(n.getModel("itemStyle"),c,!0);K(c,h),r.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var p=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=lr(n);br(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:tu(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var m=r.getTextContent();if(s&&m){var x=n.get(["label","position"]);r.textConfig.inside=x==="middle"?!0:null,BX(r,x==="outside"?p:x,Yk(o),n.get(["label","rotate"]))}cR(m,d,i.getRawValue(t),function(f){return Nk(e,f)});var y=n.getModel(["emphasis"]);Ne(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Sr(r,n),WX(a)&&(r.style.fill="none",r.style.stroke="none",R(r.states,function(f){f.style&&(f.style.fill=f.style.stroke="none")}))}function UX(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var YX=(function(){function r(){}return r})(),NC=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new YX},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],t.rect(s[0],s[1],l[0],l[1])},e})(Ut);function BC(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new NC({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new NC({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(a.getVisual("style")),h.style.stroke=null,Dt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",zC),h.on("mousemove",zC)),t&&t.push(h)}var zC=Sx(function(r){var e=this,t=ZX(e,r.offsetX,r.offsetY);Dt(e).dataIndex=t>=0?t:null},30,!1);function ZX(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,h=i.length/3;c<h;c++){var v=c*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Zk(r,e,t){if(Zs(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function XX(r,e,t){var n=r.type==="polar"?Zr:Kt;return new n({shape:Zk(e,t,r),silent:!0,z2:0})}function $X(r){r.registerChartView(VX),r.registerSeriesModel(kX),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(KE,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QE("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Uk("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var VC=Math.PI*2,bv=Math.PI/180;function Xk(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $k(r,e){var t=Xk(r,e),n=r.get("center"),a=r.get("radius");tt(a)||(a=[0,a]);var i=ut(t.width,e.getWidth()),o=ut(t.height,e.getHeight()),s=Math.min(i,o),l=ut(a[0],s/2),u=ut(a[1],s/2),c,h,v=r.coordinateSystem;if(v){var p=v.dataToPoint(n);c=p[0]||0,h=p[1]||0}else tt(n)||(n=[n,n]),c=ut(n[0],i)+t.x,h=ut(n[1],o)+t.y;return{cx:c,cy:h,r0:l,r:u}}function jX(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Xk(n,t),s=$k(n,t),l=s.cx,u=s.cy,c=s.r,h=s.r0,v=-n.get("startAngle")*bv,p=n.get("endAngle"),d=n.get("padAngle")*bv;p=p==="auto"?v-VC:-p*bv;var m=n.get("minAngle")*bv,x=m+d,y=0;a.each(i,function(U){!isNaN(U)&&y++});var f=a.getSum(i),_=Math.PI/(f||y)*2,S=n.get("clockwise"),b=n.get("roseType"),A=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var M=S?1:-1,L=[v,p],D=M*d/2;q1(L,!S),v=L[0],p=L[1];var P=jk(n);P.startAngle=v,P.endAngle=p,P.clockwise=S;var E=Math.abs(p-v),O=E,N=0,z=v;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(U,W){var Y;if(isNaN(U)){a.setItemLayout(W,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:c});return}b!=="area"?Y=f===0&&A?_:U*_:Y=E/y,Y<x?(Y=x,O-=x):N+=U;var q=z+M*Y,Q=0,rt=0;d>Y?(Q=z+M*Y/2,rt=Q):(Q=z+D,rt=q-D),a.setItemLayout(W,{angle:Y,startAngle:Q,endAngle:rt,clockwise:S,cx:l,cy:u,r0:h,r:b?ge(U,C,[h,c]):c}),z=q}),O<VC&&y)if(O<=.001){var G=E/y;a.each(i,function(U,W){if(!isNaN(U)){var Y=a.getItemLayout(W);Y.angle=G;var q=0,Q=0;G<d?(q=v+M*(W+1/2)*G,Q=q):(q=v+M*W*G+D,Q=v+M*(W+1)*G-D),Y.startAngle=q,Y.endAngle=Q}})}else _=O/N,z=v,a.each(i,function(U,W){if(!isNaN(U)){var Y=a.getItemLayout(W),q=Y.angle===x?x:U*_,Q=0,rt=0;q<d?(Q=z+M*q/2,rt=Q):(Q=z+D,rt=z+M*q-D),Y.startAngle=Q,Y.endAngle=rt,z+=M*q}})})}var jk=Qt();function Fh(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var qX=Math.PI/180;function FC(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function c(m){for(var x=m.rB,y=x*x,f=0;f<m.list.length;f++){var _=m.list[f],S=Math.abs(_.label.y-t),b=n+_.len,A=b*b,C=Math.sqrt(Math.abs((1-S*S/y)*A)),M=e+(C+_.len2)*a,L=M-_.label.x,D=_.targetTextWidth-L*a;qk(_,D,!0),_.label.x=M}}function h(m){for(var x={list:[],maxY:0},y={list:[],maxY:0},f=0;f<m.length;f++)if(m[f].labelAlignTo==="none"){var _=m[f],S=_.label.y>t?y:x,b=Math.abs(_.label.y-t);if(b>=S.maxY){var A=_.label.x-e-_.len2*a,C=n+_.len,M=Math.abs(A)<C?Math.sqrt(b*b/(1-A*A/C/C)):C;S.rB=M,S.maxY=b}S.list.push(_)}c(x),c(y)}for(var v=r.length,p=0;p<v;p++)if(r[p].position==="outer"&&r[p].labelAlignTo==="labelLine"){var d=r[p].label.x-u;r[p].linePoints[1][0]+=d,r[p].label.x=u}_k(r,l,l+o)&&h(r)}function KX(r,e,t,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var p=r[v].label;Lm(r[v])||(p.x<e?(c=Math.min(c,p.x),l.push(r[v])):(h=Math.max(h,p.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!Lm(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var p=d.label,m=d.linePoints,x=void 0;d.labelAlignTo==="edge"?p.x<e?x=m[2][0]-d.labelDistance-o-d.edgeDistance:x=o+a-d.edgeDistance-m[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?p.x<e?x=c-o-d.bleedMargin:x=o+a-h-d.bleedMargin:p.x<e?x=p.x-o-d.bleedMargin:x=o+a-p.x-d.bleedMargin,d.targetTextWidth=x,qk(d,x)}}FC(u,e,t,n,1,a,i,o,s,h),FC(l,e,t,n,-1,a,i,o,s,c);for(var v=0;v<r.length;v++){var d=r[v];if(!Lm(d)&&d.linePoints){var p=d.label,m=d.linePoints,y=d.labelAlignTo==="edge",f=p.style.padding,_=f?f[1]+f[3]:0,S=p.style.backgroundColor?0:_,b=d.rect.width+S,A=m[1][0]-m[2][0];y?p.x<e?m[2][0]=o+d.edgeDistance+b+d.labelDistance:m[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(p.x<e?m[2][0]=p.x+d.labelDistance:m[2][0]=p.x-d.labelDistance,m[1][0]=m[2][0]+A),m[1][1]=m[2][1]=p.y}}}function qk(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||t){var h=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var p=e-l,d=e<c?p:t?p>r.unconstrainedWidth?null:p:null;n.setStyle("width",d)}var m=n.getBoundingRect();i.width=m.width;var x=(n.style.margin||0)+2.1;i.height=m.height+x,i.y-=(i.height-h)/2}}}function Lm(r){return r.position==="center"}function QX(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*qX,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,v=s.height;function p(A){A.ignore=!0}function d(A){if(!A.ignore)return!0;for(var C in A.states)if(A.states[C].ignore===!1)return!0;return!1}e.each(function(A){var C=e.getItemGraphicEl(A),M=C.shape,L=C.getTextContent(),D=C.getTextGuideLine(),P=e.getItemModel(A),E=P.getModel("label"),O=E.get("position")||P.get(["emphasis","label","position"]),N=E.get("distanceToLabelLine"),z=E.get("alignTo"),G=ut(E.get("edgeDistance"),u),U=E.get("bleedMargin"),W=P.getModel("labelLine"),Y=W.get("length");Y=ut(Y,u);var q=W.get("length2");if(q=ut(q,u),Math.abs(M.endAngle-M.startAngle)<o){R(L.states,p),L.ignore=!0,D&&(R(D.states,p),D.ignore=!0);return}if(d(L)){var Q=(M.startAngle+M.endAngle)/2,rt=Math.cos(Q),ct=Math.sin(Q),vt,_t,Nt,Jt;n=M.cx,a=M.cy;var Mt=O==="inside"||O==="inner";if(O==="center")vt=M.cx,_t=M.cy,Jt="center";else{var mt=(Mt?(M.r+M.r0)/2*rt:M.r*rt)+n,Pt=(Mt?(M.r+M.r0)/2*ct:M.r*ct)+a;if(vt=mt+rt*3,_t=Pt+ct*3,!Mt){var gt=mt+rt*(Y+l-M.r),St=Pt+ct*(Y+l-M.r),se=gt+(rt<0?-1:1)*q,te=St;z==="edge"?vt=rt<0?c+G:c+u-G:vt=se+(rt<0?-N:N),_t=te,Nt=[[mt,Pt],[gt,St],[se,te]]}Jt=Mt?"center":z==="edge"?rt>0?"right":"left":rt>0?"left":"right"}var Zt=Math.PI,ue=0,ke=E.get("rotate");if(ae(ke))ue=ke*(Zt/180);else if(O==="center")ue=0;else if(ke==="radial"||ke===!0){var De=rt<0?-Q+Zt:-Q;ue=De}else if(ke==="tangential"&&O!=="outside"&&O!=="outer"){var Ue=Math.atan2(rt,ct);Ue<0&&(Ue=Zt*2+Ue);var sn=ct>0;sn&&(Ue=Zt+Ue),ue=Ue-Zt}if(i=!!ue,L.x=vt,L.y=_t,L.rotation=ue,L.setStyle({verticalAlign:"middle"}),Mt){L.setStyle({align:Jt});var ln=L.states.select;ln&&(ln.x+=L.x,ln.y+=L.y)}else{var cr=L.getBoundingRect().clone();cr.applyTransform(L.getComputedTransform());var hr=(L.style.margin||0)+2.1;cr.y-=hr/2,cr.height+=hr,t.push({label:L,labelLine:D,position:O,len:Y,len2:q,minTurnAngle:W.get("minTurnAngle"),maxSurfaceAngle:W.get("maxSurfaceAngle"),surfaceNormal:new Bt(rt,ct),linePoints:Nt,textAlign:Jt,labelDistance:N,labelAlignTo:z,edgeDistance:G,bleedMargin:U,rect:cr,unconstrainedWidth:cr.width,labelStyleWidth:L.style.width})}C.setTextConfig({inside:Mt})}}),!i&&r.get("avoidLabelOverlap")&&KX(t,n,a,l,u,v,c,h);for(var m=0;m<t.length;m++){var x=t[m],y=x.label,f=x.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:x.textAlign}),_&&(R(y.states,p),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(f){var b=x.linePoints;_||!b?(R(f.states,p),f.ignore=!0):(gk(b,x.minTurnAngle),wZ(b,x.surfaceNormal,x.maxSurfaceAngle),f.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new Bt(b[0][0],b[0][1])})}}}var JX=(function(r){j(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new re;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),c=t.getItemLayout(n),h=K(bs(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(Pe(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=c.r0,Pe(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Pe(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,oe(o,{shape:{endAngle:c.endAngle}},s,n))}else ha(o),oe(o,{shape:h},s,n);o.useStyle(t.getItemVisual(n,"style")),Sr(o,l);var p=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(p)*d,x=Math.sin(p)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=K({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},bs(u.getModel("itemStyle"),c)),K(o.ensureState("select"),{x:m,y:x,shape:bs(l.getModel(["select","itemStyle"]),c)}),K(o.ensureState("blur"),{shape:bs(l.getModel(["blur","itemStyle"]),c)});var f=o.getTextGuideLine(),_=o.getTextContent();f&&K(f.ensureState("select"),{x:m,y:x}),K(_.ensureState("select"),{x:m,y:x}),Ne(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;br(i,lr(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new $r,this.setTextGuideLine(p)),Ox(this,Nx(o),{stroke:u,opacity:Ea(s.get(["lineStyle","opacity"]),c,1)})}},e})(Zr),t$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var v=jk(t),p=new Zr({shape:K($k(t,a),v)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(d){var m=new JX(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var x=s.getItemGraphicEl(m);x.updateData(o,d,u),x.off("click"),l.add(x),o.setItemGraphicEl(d,x)}).remove(function(d){var m=s.getItemGraphicEl(d);eh(m,t,d)}).execute(),QX(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e})(we);function xu(r,e,t){e=tt(e)&&{coordDimensions:e}||K({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=kh(n,e).dimensions,i=new Hr(a,r);return i.initData(n,t),i}var Gh=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r})(),e$=Qt(),r$=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gh(ft(this.getData,this),ft(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xu(this,{coordDimensions:["value"],encodeDefaulter:Et(vx,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=e$(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=ZW(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Es(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Me);function n$(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ae(o)&&!isNaN(o)&&o<0)})}}}function a$(r){r.registerChartView(t$),r.registerSeriesModel(r$),gE("pie",r.registerAction),r.registerLayout(Et(jX,"pie")),r.registerProcessor(Fh("pie")),r.registerProcessor(n$("pie"))}var i$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e})(Me),Kk=4,o$=(function(){function r(){}return r})(),s$=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new o$},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<Kk,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<a.length;){var v=a[h++],p=a[h++];isNaN(v)||isNaN(p)||c&&!c.contain(v,p)||(s.x=v-i[0]/2,s.y=p-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,h=i[c]-s/2,v=i[c+1]-l/2;if(t>=h&&n>=v&&t<=h+s&&n<=v+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,h=-1/0,v=0;v<a.length;){var p=a[v++],d=a[v++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(d,u),h=Math.max(d,h)}t=this._rect=new zt(l-o/2,u-s/2,c-l+o,h-u+s)}return t},e})(Ut),l$=(function(){function r(){this.group=new Lt}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new s$({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=je(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Kk;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Dt(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),u$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Vh("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new l$:new Bh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(we),c$=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e})($t),Y_=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$e).models[0]},e.type="cartesian2dAxis",e})($t);qe(Y_,Oh);var Qk={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,showMinLine:!0,showMaxLine:!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)"]}}},h$=Ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Qk),Wx=Ot({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}}},Qk),f$=Ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Wx),v$=bt({logBase:10},Wx);const Jk={category:h$,value:Wx,time:f$,log:v$};var p$={value:1,category:1,time:1,log:1};function eu(r,e,t,n){R(p$,function(a,i){var o=Ot(Ot({},Jk[i],!0),n,!0),s=(function(l){j(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var v=nh(this),p=v?pu(c):{},d=h.getTheme();Ot(c,d.get(i+"Axis")),Ot(c,this.getDefaultOption()),c.type=GC(c),v&&ho(c,p,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=z_.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",GC)}function GC(r){return r.type||(r.data?"category":"value")}var d$=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return et(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),fe(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),Z_=["x","y"];function HC(r){return r.type==="interval"||r.type==="time"}var g$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Z_,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!HC(t)||!HC(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-a[0]*c,p=o[1]-i[0]*h,d=this._transform=[c,0,0,h,v,p];this._invTransform=su([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new zt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var a=[];if(this._invTransform)return wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(n[0],n[1])-i+t,l=Math.max(a[0],a[1])-o+t;return new zt(i,o,s,l)},e})(d$),y$=(function(r){j(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(va);function X_(r,e,t){t=t||{};var n=r.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],v={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,d=u==="x"?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(m,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var x={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=x[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),pr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function WC(r){return r.get("coordinateSystem")==="cartesian2d"}function UC(r){var e={xAxisModel:null,yAxisModel:null};return R(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,$e).models[0];e[n]=i}),e}var Dm=Math.log;function tO(r,e,t){var n=mi.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,!0),o=a.length-1,s=n.getInterval.call(t),l=nk(r,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Dm(r.base);u=[Dm(u[0])/v,Dm(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=n.getExtent.call(r);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var d=n.getInterval.call(r),m=u[0],x=u[1];if(c&&h)d=(x-m)/o;else if(c)for(x=u[0]+d*o;x<u[1]&&isFinite(x)&&isFinite(u[1]);)d=pm(d),x=u[0]+d*o;else if(h)for(m=u[1]-d*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)d=pm(d),m=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=pm(d));var f=d*o;x=Math.ceil(u[1]/d)*d,m=Ve(x-f),m<0&&u[0]>=0?(m=0,x=Ve(f)):x>0&&u[1]<=0&&(x=0,m=-Ve(f))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,m+d*_,x+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,m+d,x-d)}var m$=(function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Z_,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=jt(o),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var v=+l[h],p=o[v],d=p.model,m=p.scale;V_(m)&&d.get("alignTicks")&&d.get("interval")==null?c.push(p):(Jl(m,d),V_(m)&&(s=p))}c.length&&(s||(s=c.pop(),Jl(s.scale,s.model)),R(c,function(x){tO(x.scale,x.model,s.scale)}))}}a(n.x),a(n.y);var i={};R(n.x,function(o){YC(n,"y",o,i)}),R(n.y,function(o){YC(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Qe(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=QY(u);if(c){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+v,u.position==="top"?o.y+=c.height+v:u.position==="left"&&(o.x+=c.width+v)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),_$(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}Tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",$e).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",$e).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Gt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,R(s.x,function(c,h){R(s.y,function(v,p){var d="x"+h+"y"+p,m=new g$(d);m.master=a,m.model=e,a._coordsMap[d]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(v)})});function u(c){return function(h,v){if(Im(h,e)){var p=h.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var d=new y$(c,Vd(h),[0,0],h.get("type"),p),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=i,d.index=v,i._axesList.push(d),s[c][v]=d,l[c]++}}}},r.prototype._updateScale=function(e,t){R(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(WC(a)){var i=UC(a),o=i.xAxisModel,s=i.yAxisModel;if(!Im(o,t)||!Im(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),h=l.getAxis("y");n(u,c),n(u,h)}},this);function n(a,i){R(Op(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return R(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Gt(t,i)<0&&t.push(i),Gt(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(WC(a)){var i=UC(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Z_,r})();function Im(r,e){return r.getCoordSysModel()===e}function YC(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)ZC(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&ZC(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(h){return h.dim+"_"+h.index}}function ZC(r){return r&&r.type!=="category"&&r.type!=="time"&&KY(r)}function _$(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}var to=Math.PI,Wr=(function(){function r(e,t){this.group=new Lt,this.opt=t,this.axisModel=e,bt(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Lt({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!XC[e]},r.prototype.add=function(e){XC[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var a=yP(t-e),i,o;return Kc(a)?(o=n>0?"top":"bottom",i="center"):Kc(a-to)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<to?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),XC={axisLine:function(r,e,t,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(wr(s,s,o),wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ir({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});ql(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var p=e.get(["axisLine","symbolSize"]);ht(v)&&(v=[v,v]),(ht(p)||ae(p))&&(p=[p,p]);var d=Us(e.get(["axisLine","symbolOffset"])||0,p),m=p[0],x=p[1];R([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,f){if(v[f]!=="none"&&v[f]!=null){var _=je(v[f],-m/2,-x/2,m,x,c.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var a=S$(t,n,e,r),i=A$(t,n,e,r);if(w$(e,i,a),b$(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=yk(et(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));xk(o)}},axisName:function(r,e,t,n){var a=pr(r.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,jC(i)?r.labelOffset+o*l:0],v,p=e.get("nameRotate");p!=null&&(p=p*to/180);var d;jC(i)?v=Wr.innerTextLayout(r.rotation,p??r.rotation,o):(v=x$(r.rotation,i,p||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var m=s.getFont(),x=e.get("nameTruncate",!0)||{},y=x.ellipsis,f=pr(r.nameTruncateMaxWidth,x.maxWidth,d),_=new re({x:h[0],y:h[1],rotation:v.rotation,silent:Wr.isLabelSilent(e),style:Ce(s,{text:a,font:m,overflow:"truncate",width:f,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Hs({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Wr.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,Dt(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function x$(r,e,t,n){var a=yP(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Kc(a-to/2)?(o=l?"bottom":"top",i="center"):Kc(a-to*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<to*1.5&&a>to/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function w$(r,e,t){if(!ak(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],v=t[t.length-2];n===!1?(In(i),In(u)):$C(i,o)&&(n?(In(o),In(c)):(In(i),In(u))),a===!1?(In(s),In(h)):$C(l,s)&&(a?(In(l),In(v)):(In(s),In(h)))}}function In(r){r&&(r.ignore=!0)}function $C(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var a=cd([]);return Gs(a,a,-r.rotation),t.applyTransform(ui([],a,r.getLocalTransform())),n.applyTransform(ui([],a,e.getLocalTransform())),t.intersect(n)}}function jC(r){return r==="middle"||r==="center"}function eO(r,e,t,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(wr(o,o,e),wr(s,s,e));var c=new ir({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ql(c.shape,c.style.lineWidth),c.anid=a+"_"+r[l].tickValue,i.push(c)}return i}function S$(r,e,t,n){var a=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=eO(u,e.transform,l,bt(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)r.add(c[h]);return c}}function b$(r,e,t,n){var a=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=bt(s.getLineStyle(),bt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=eO(o[c],e.transform,l,u,"minorticks_"+c),v=0;v<h.length;v++)r.add(h[v])}}function A$(r,e,t,n){var a=t.axis,i=pr(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(pr(n.labelRotate,o.get("rotate"))||0)*to/180,c=Wr.innerTextLayout(n.rotation,u,n.labelDirection),h=t.getCategories&&t.getCategories(!0),v=[],p=Wr.isLabelSilent(t),d=t.get("triggerEvent");return R(l,function(m,x){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,f=m.formattedLabel,_=m.rawLabel,S=o;if(h&&h[y]){var b=h[y];Tt(b)&&b.textStyle&&(S=new ye(b.textStyle,o,t.ecModel))}var A=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(y),M=S.getShallow("align",!0)||c.textAlign,L=Rt(S.getShallow("alignMinLabel",!0),M),D=Rt(S.getShallow("alignMaxLabel",!0),M),P=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,E=Rt(S.getShallow("verticalAlignMinLabel",!0),P),O=Rt(S.getShallow("verticalAlignMaxLabel",!0),P),N=new re({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(m.level||0),style:Ce(S,{text:f,align:x===0?L:x===l.length-1?D:M,verticalAlign:x===0?E:x===l.length-1?O:P,fill:wt(A)?A(a.type==="category"?_:a.type==="value"?y+"":y,x):A})});if(N.anid="label_"+y,Hs({el:N,componentModel:t,itemName:f,formatterParamsExtra:{isTruncated:function(){return N.isTruncated},value:_,tickIndex:x}}),d){var z=Wr.makeAxisEventDataBase(t);z.targetType="axisLabel",z.value=_,z.tickIndex=x,a.type==="category"&&(z.dataIndex=y),Dt(N).eventData=z}e.add(N),N.updateTransform(),v.push(N),r.add(N),N.decomposeTransform()}),v}}function T$(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return C$(t,r,e),t.seriesInvolved&&L$(t,r),t}function C$(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];R(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fh(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",n);if(R(s.getAxes(),Et(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",p=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||p)&&R(d.baseAxes,Et(m,p?"cross":!0,v)),p&&R(d.otherAxes,Et(m,"cross",!1))}function m(x,y,f){var _=f.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!x&&!$_(_))){y==null&&(y=_.get("triggerTooltip")),_=x?M$(f,h,a,e,x,y):_;var b=_.get("snap"),A=_.get("triggerEmphasis"),C=fh(f.model),M=y||b||f.type==="category",L=r.axesInfo[C]={key:C,axis:f,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:A,involveSeries:M,snap:b,useHandle:$_(_),seriesModels:[],linkGroup:null};u[C]=L,r.seriesInvolved=r.seriesInvolved||M;var D=D$(i,f);if(D!=null){var P=o[D]||(o[D]={axesInfo:{}});P.axesInfo[C]=L,P.mapper=i[D].mapper,L.linkGroup=P}}}})}function M$(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(v){l[v]=Ct(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&bt(u,h.textStyle)}}return r.model.getModel("axisPointer",new ye(l,t,n))}function L$(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||R(r.coordSysAxesInfo[fh(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function D$(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Pm(i[n+"AxisId"],t.id)||Pm(i[n+"AxisIndex"],t.componentIndex)||Pm(i[n+"AxisName"],t.name))return a}}function Pm(r,e){return r==="all"||tt(r)&&Gt(r,e)>=0||r===e}function I$(r){var e=Ux(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=$_(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Ux(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[fh(r)]}function P$(r){var e=Ux(r);return e&&e.axisPointerModel}function $_(r){return!!r.get(["handle","show"])}function fh(r){return r.type+"||"+r.id}var qC={},Xs=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&I$(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=P$(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){qC[t]=n},e.getAxisPointerClass=function(t){return t&&qC[t]},e.type="axis",e})(Ee),j_=Qt();function rO(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,h=j_(r).splitAreaColors,v=yt(),p=0;if(h)for(var d=0;d<u.length;d++){var m=h.get(u[d].tickValue);if(m!=null){p=(m+(c-1)*d)%c;break}}var x=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=tt(s)?s:[s];for(var d=1;d<u.length;d++){var f=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,A=void 0;a.isHorizontal()?(_=x,S=l.y,b=f-_,A=l.height,x=_+b):(_=l.x,S=x,b=l.width,A=f-S,x=S+A);var C=u[d-1].tickValue;C!=null&&v.set(C,p),e.add(new Kt({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:b,height:A},style:bt({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}j_(r).splitAreaColors=v}}}function nO(r){j_(r).splitAreaColors=null}var R$=["axisLine","axisTickLabel","axisName"],E$=["splitArea","splitLine","minorSplitLine"],aO=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=X_(s,t),u=new Wr(t,K({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),p=0;p<v.length;p++)if(V_(v[p].getOtherAxis(t.axis).scale))return!0;return!1}},l));R(R$,u.add,u),this._axisGroup.add(u.getGroup()),R(E$,function(h){t.get([h,"show"])&&k$[h](this,this._axisGroup,t,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Ih(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){nO(this)},e.type="cartesianAxis",e})(Xs),k$={splitLine:function(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color"),l=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;s=tt(s)?s:[s];for(var c=n.coordinateSystem.getRect(),h=a.isHorizontal(),v=0,p=a.getTicksCoords({tickModel:i}),d=[],m=[],x=o.getLineStyle(),y=0;y<p.length;y++){var f=a.toGlobalCoord(p[y].coord);if(!(y===0&&!l||y===p.length-1&&!u)){var _=p[y].tickValue;h?(d[0]=f,d[1]=c.y,m[0]=f,m[1]=c.y+c.height):(d[0]=c.x,d[1]=f,m[0]=c.x+c.width,m[1]=f);var S=v++%s.length,b=new ir({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:bt({stroke:s[S]},x),silent:!0});ql(b.shape,x.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,n){var a=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],h=[],v=o.getLineStyle(),p=0;p<u.length;p++)for(var d=0;d<u[p].length;d++){var m=a.toGlobalCoord(u[p][d].coord);l?(c[0]=m,c[1]=s.y,h[0]=m,h[1]=s.y+s.height):(c[0]=s.x,c[1]=m,h[0]=s.x+s.width,h[1]=m);var x=new ir({anid:"minor_line_"+u[p][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});ql(x.shape,v.lineWidth),e.add(x)}},splitArea:function(r,e,t,n){rO(r,e,t,n)}},iO=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(aO),O$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=iO.type,t}return e.type="yAxis",e})(aO),N$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Kt({shape:t.coordinateSystem.getRect(),style:bt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Ee),KC={offset:0};function oO(r){r.registerComponentView(N$),r.registerComponentModel(c$),r.registerCoordinateSystem("cartesian2d",m$),eu(r,"x",Y_,KC),eu(r,"y",Y_,KC),r.registerComponentView(iO),r.registerComponentView(O$),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function B$(r){Wt(oO),r.registerSeriesModel(i$),r.registerChartView(u$),r.registerLayout(Vh("scatter"))}function z$(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();R(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=QC(c)?c:JC(a)})}),t.each(function(o){var s=bH(n[o],function(l){return QC(l)})||JC(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function QC(r){return!isNaN(r[0])&&!isNaN(r[1])}function JC(r){return[r.cx,r.cy]}function V$(r){var e=r.polar;if(e){tt(e)||(e=[e]);var t=[];R(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],tt(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}R(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var F$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(v,p){var d=v.getItemVisual(p,"symbol")||"circle";if(d!=="none"){var m=mu(v.getItemVisual(p,"symbolSize")),x=je(d,-1,-1,2,2),y=v.getItemVisual(p,"symbolRotate")||0;return x.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:y*Math.PI/180||0}),x}}function c(v,p,d,m,x,y){d.removeAll();for(var f=0;f<p.length-1;f++){var _=u(m,x);_&&(_.__dimIdx=f,v[f]?(_.setPosition(v[f]),Ws[y?"initProps":"updateProps"](_,{x:p[f][0],y:p[f][1]},t,x)):_.setPosition(p[f]),d.add(_))}}function h(v){return et(v,function(p){return[i.cx,i.cy]})}s.diff(l).add(function(v){var p=s.getItemLayout(v);if(p){var d=new Xr,m=new $r,x={shape:{points:p}};d.shape.points=h(p),m.shape.points=h(p),Pe(d,x,t,v),Pe(m,x,t,v);var y=new Lt,f=new Lt;y.add(m),y.add(d),y.add(f),c(m.shape.points,p,f,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,p){var d=l.getItemGraphicEl(p),m=d.childAt(0),x=d.childAt(1),y=d.childAt(2),f={shape:{points:s.getItemLayout(v)}};f.shape.points&&(c(m.shape.points,f.shape.points,y,s,v,!1),ha(x),ha(m),oe(m,f,t),oe(x,f,t),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,p){var d=s.getItemModel(p),m=v.childAt(0),x=v.childAt(1),y=v.childAt(2),f=s.getItemVisual(p,"style"),_=f.fill;o.add(v),m.useStyle(bt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Sr(m,d,"lineStyle"),Sr(x,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();x.ignore=b,R(["emphasis","select","blur"],function(M){var L=d.getModel([M,"areaStyle"]),D=L.isEmpty()&&L.parentModel.isEmpty();x.ensureState(M).ignore=D&&b}),x.useStyle(bt(S.getAreaStyle(),{fill:_,opacity:.7,decal:f.decal}));var A=d.getModel("emphasis"),C=A.getModel("itemStyle").getItemStyle();y.eachChild(function(M){if(M instanceof dr){var L=M.style;M.useStyle(K({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},f))}else M.useStyle(f),M.setColor(_),M.style.strokeNoScale=!0;var D=M.ensureState("emphasis");D.style=Ct(C);var P=s.getStore().get(s.getDimensionIndex(M.__dimIdx),p);(P==null||isNaN(P))&&(P=""),br(M,lr(d),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:M.__dimIdx,defaultText:P,inheritColor:_,defaultOpacity:f.opacity})}),Ne(v,A.get("focus"),A.get("blurScope"),A.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(we),G$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gh(ft(this.getData,this),ft(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return xu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=aE(this,t);return ur("section",{header:u,sortBlocks:!0,blocks:et(s,function(h){var v=i.get(i.mapDimension(h.dim),t);return ur("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(et(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(Me),nc=Jk.value;function Av(r,e){return bt({show:e},r)}var H$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),p=et(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var m=l;d.color!=null&&(m=bt({color:d.color},l));var x=Ot(Ct(d),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:m,triggerEvent:v},!1);if(ht(c)){var y=x.name;x.name=c.replace("{value}",y??"")}else wt(c)&&(x.name=c(x.name,x));var f=new ye(x,null,this.ecModel);return qe(f,Oh.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ot({lineStyle:{color:"#bbb"}},nc.axisLine),axisLabel:Av(nc.axisLabel,!1),axisTick:Av(nc.axisTick,!1),splitLine:Av(nc.splitLine,!0),splitArea:Av(nc.splitArea,!0),indicator:[]},e})($t),W$=["axisLine","axisTickLabel","axisName"],U$=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes(),i=et(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Wr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(i,function(o){R(W$,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),v=l.get("color"),p=u.get("color"),d=tt(v)?v:[v],m=tt(p)?p:[p],x=[],y=[];function f(z,G,U){var W=U%G.length;return z[W]=z[W]||[],W}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,A=0;A<_.length;A++){if(c){var C=f(x,d,A);x[C].push(new Si({shape:{cx:S,cy:b,r:_[A].coord}}))}if(h&&A<_.length-1){var C=f(y,m,A);y[C].push(new Mh({shape:{cx:S,cy:b,r0:_[A].coord,r:_[A+1].coord}}))}}else for(var M,L=et(a,function(z,G){var U=z.getTicksCoords();return M=M==null?U.length-1:Math.min(U.length-1,M),et(U,function(W){return n.coordToPoint(W.coord,G)})}),D=[],A=0;A<=M;A++){for(var P=[],E=0;E<a.length;E++)P.push(L[E][A]);if(P[0]&&P.push(P[0].slice()),c){var C=f(x,d,A);x[C].push(new $r({shape:{points:P}}))}if(h&&D){var C=f(y,m,A-1);y[C].push(new Xr({shape:{points:P.concat(D)}}))}D=P.slice().reverse()}var O=l.getLineStyle(),N=u.getAreaStyle();R(y,function(z,G){this.group.add(Fn(z,{style:bt({stroke:"none",fill:m[G%m.length]},N),silent:!0}))},this),R(x,function(z,G){this.group.add(Fn(z,{style:bt({fill:"none",stroke:d[G%d.length]},O),silent:!0}))},this)},e.type="radar",e})(Ee),Y$=(function(r){j(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e})(va),Z$=(function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=et(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new Y$(o,new mi);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(i-c.angle);h<o&&(s=c,l=u,o=h)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight(),o=Math.min(a,i)/2;this.cx=ut(n[0],a),this.cy=ut(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(ht(s)||ae(s))&&(s=[0,s]),this.r0=ut(s[0],o),this.r=ut(s[1],o),R(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;R(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();R(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new mi;o.setExtent(0,i),o.setInterval(1),R(n,function(s,l){tO(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r})();function X$(r){r.registerCoordinateSystem("radar",Z$),r.registerComponentModel(H$),r.registerComponentView(U$),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function $$(r){Wt(X$),r.registerChartView(F$),r.registerSeriesModel(G$),r.registerLayout(z$),r.registerProcessor(Fh("radar")),r.registerPreprocessor(V$)}var tM="\0_ec_interaction_mutex";function j$(r,e,t){var n=Yx(r);n[e]=t}function q$(r,e,t){var n=Yx(r),a=n[e];a===t&&(n[e]=null)}function eM(r,e){return!!Yx(r)[e]}function Yx(r){return r[tM]||(r[tM]={})}Ha({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},We);var Hh=(function(r){j(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=ft(n._mousedownHandler,n),i=ft(n._mousemoveHandler,n),o=ft(n._mouseupHandler,n),s=ft(n._mousewheelHandler,n),l=ft(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=bt(Ct(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",a),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",a),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!M2(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!np("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||eM(this._zr,"globalPan"))){var n=t.offsetX,a=t.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&vi(t.event),sO(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){M2(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=np("zoomOnMouseWheel",t,this._opt),a=np("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Rm(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Rm(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!eM(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;Rm(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Yn);function Rm(r,e,t,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(vi(n.event),sO(r,e,t,n,a))}function sO(r,e,t,n,a){a.isAvailableBehavior=ft(np,null,t,n),r.trigger(e,a)}function np(r,e,t){var n=t[r];return!r||n&&(!ht(n)||e.event[n+"Key"])}function Zx(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function Xx(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var K$={axisPointer:1,tooltip:1,brush:1};function Gd(r,e,t){var n=e.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==t&&!K$.hasOwnProperty(n.mainType)&&a&&a.model!==t}function lO(r){if(ht(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Em,Fp={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"},rM=jt(Fp),Gp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nM=jt(Gp),Q$=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=lO(e);this._defsUsePending=[];var a=new Lt;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),gn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ej(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var v=Hd(o);v.length>=4&&(c={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(c&&s!=null&&l!=null&&(h=cO(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=a;a=new Lt,a.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Kt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=Em[s];if(c&&dt(Em,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var p=aM[s];if(p&&dt(aM,s)){var d=p.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=d)}}if(l&&l.isGroup)for(var x=e.firstChild;x;)x.nodeType===1?this._parseNode(x,l,n,u,i,o):x.nodeType===3&&o&&this._parseText(x,l),x=x.nextSibling},r.prototype._parseText=function(e,t){var n=new jl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pn(t,n),gn(e,n,this._defsUsePending,!1,!1),J$(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=(function(){Em={g:function(e,t){var n=new Lt;return Pn(t,n),gn(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Kt;return Pn(t,n),gn(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 Si;return Pn(t,n),gn(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 ir;return Pn(t,n),gn(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 xd;return Pn(t,n),gn(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=e.getAttribute("points"),a;n&&(a=sM(n));var i=new Xr({shape:{points:a||[]},silent:!0});return Pn(t,i),gn(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=sM(n));var i=new $r({shape:{points:a||[]},silent:!0});return Pn(t,i),gn(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new dr;return Pn(t,n),gn(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",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Lt;return Pn(t,s),gn(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Lt;return Pn(t,s),gn(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=QP(n);return Pn(t,a),gn(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),aM={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Dh(e,t,n,a);return iM(r,i),oM(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new rR(e,t,n);return iM(r,a),oM(r,a),a}};function iM(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function oM(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};uO(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Pn(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),bt(e.__inheritedStyle,r.__inheritedStyle))}function sM(r){for(var e=Hd(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function gn(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(aj(r,e),uO(r,o,s),n||ij(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=lM(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=lM(i,"stroke",o.stroke,t)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=et(Hd(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function J$(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var tj=/^url\(\s*#(.*?)\)/;function lM(r,e,t,n){var a=t&&t.match(tj);if(a){var i=oa(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function ej(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var rj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hd(r){return r.match(rj)||[]}var nj=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,km=Math.PI/180;function aj(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace(nj,function(h,v,p){return n.push(v,p),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Hd(o);switch(a=a||_n(),s){case"translate":Na(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":G1(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Gs(a,a,-parseFloat(l[0])*km,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*km);ui(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*km);ui(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var uM=/([^\s:;]+)\s*:\s*([^:;]+)/g;function uO(r,e,t){var n=r.getAttribute("style");if(n){uM.lastIndex=0;for(var a;(a=uM.exec(n))!=null;){var i=a[1],o=dt(Fp,i)?Fp[i]:null;o&&(e[o]=a[2]);var s=dt(Gp,i)?Gp[i]:null;s&&(t[s]=a[2])}}}function ij(r,e,t){for(var n=0;n<rM.length;n++){var a=rM[n],i=r.getAttribute(a);i!=null&&(e[Fp[a]]=i)}for(var n=0;n<nM.length;n++){var a=nM[n],i=r.getAttribute(a);i!=null&&(t[Gp[a]]=i)}}function cO(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function oj(r,e){var t=new Q$;return t.parse(r,e)}var sj=yt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),lj=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=yt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=lO(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=cj(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&oj(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Ur(n!=null)}catch(x){throw new Error(`Invalid svg format
|
|
36
|
+
`+x.message)}var a=new Lt;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var p=n.getBoundingRect();u==null&&(u=p.x,h=p.width),c==null&&(c=p.y,v=p.height)}l=this._boundingRect=new zt(u,c,h,v)}if(s){var d=cO(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Kt({shape:l.plain()}));var m=[];return R(t.named,function(x){sj.get(x.svgNodeTagLower)!=null&&(m.push(x),uj(x.el))}),{root:a,boundingRect:l,named:m}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r})();function uj(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function cj(r){var e=[],t=yt();return R(r,function(n){if(n.namedFrom==null){var a=new aZ(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var q_=[126,25],cM="南海诸岛",ss=[[[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]]];for(var is=0;is<ss.length;is++)for(var Sl=0;Sl<ss[is].length;Sl++)ss[is][Sl][0]/=10.5,ss[is][Sl][1]/=-10.5/.75,ss[is][Sl][0]+=q_[0],ss[is][Sl][1]+=q_[1];function hj(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===cM)return;e.push(new ok(cM,et(ss,function(n){return{type:"polygon",exterior:n}}),q_))}}var fj={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function vj(r,e){if(r==="china"){var t=fj[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var pj=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function dj(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:pj[0]})}var gj="name",yj=(function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=yt(),this._mapName=e,this._specialAreas=n,this._geoJSON=_j(t)}return r.prototype.load=function(e,t){t=t||gj;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:mj(a)})}var i=yt(),o=[];return R(n.regions,function(s){var l=s.name;e&&dt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new zt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?oZ(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
37
|
+
`+i.message)}return hj(t,a),R(a,function(i){var o=i.name;vj(t,i),dj(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function mj(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function _j(r){return ht(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ac=yt();const _i={registerMap:function(r,e,t){if(e.svg){var n=new lj(r,e.svg);ac.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new yj(r,a,t);ac.set(r,n)}},getGeoResource:function(r){return ac.get(r)},getMapForUser:function(r){var e=ac.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=ac.get(r);if(n)return n.load(e,t)}};var $x=["rect","circle","line","ellipse","polygon","polyline","path"],xj=yt($x),wj=yt($x.concat(["g"])),Sj=yt($x.concat(["g"])),hO=Qt();function Tv(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function hM(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var fO=(function(){function r(e){var t=new Lt;this.uid=fu("ec_map_draw"),this._controller=new Hh(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Lt),t.add(this._svgGroup=new Lt)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),v=h.raw,p=h.roam,d=!u.childAt(0)||i;d?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):oe(c,p,e);var m=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,x={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(x):l.resourceType==="geoSVG"&&this._buildSVG(x),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=yt(),n=yt(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(p,d){return d&&(p=d(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function h(p){for(var d=[],m=!u&&l&&l.project,x=0;x<p.length;++x){var y=c(p[x],m);y&&d.push(y)}return d}function v(p){return{shape:{points:h(p)}}}a.removeAll(),R(e.geo.regions,function(p){var d=p.name,m=t.get(d),x=n.get(d)||{},y=x.dataIdx,f=x.regionModel;if(!m){m=t.set(d,new Lt),a.add(m),y=s?s.indexOfName(d):null,f=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=f.get("silent",!0);_!=null&&(m.silent=_),n.set(d,{dataIdx:y,regionModel:f})}var S=[],b=[];R(p.geometries,function(M){if(M.type==="polygon"){var L=[M.exterior].concat(M.interiors||[]);u&&(L=yM(L,u)),R(L,function(P){S.push(new Xr(v(P)))})}else{var D=M.points;u&&(D=yM(D,u,!0)),R(D,function(P){b.push(new $r(v(P)))})}});var A=c(p.getCenter(),l&&l.project);function C(M,L){if(M.length){var D=new nx({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});m.add(D),fM(e,D,y,f),vM(e,D,d,f,o,y,A),L&&(hM(D),R(D.states,hM))}}C(S),C(b,!0)}),t.each(function(p,d){var m=n.get(d),x=m.dataIdx,y=m.regionModel;pM(e,p,d,y,o,x),dM(e,p,d,y,o),gM(e,p,d,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=yt(),i=!1;R(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,p=l.getRegionModel(s);xj.get(c)!=null&&h instanceof Un&&fM(e,h,v,p),h instanceof Un&&(h.culling=!0);var d=p.get("silent",!0);if(d!=null&&(h.silent=d),h.z2EmphasisLift=0,!o.namedFrom&&(Sj.get(c)!=null&&vM(e,h,s,p,l,v,null),pM(e,h,s,p,l,v),dM(e,h,s,p,l),wj.get(c)!=null)){var m=gM(e,h,s,p,l);m==="self"&&(i=!0);var x=a.get(s)||a.set(s,[]);x.push(h)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Ns(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=_i.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=_i.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Zx(o,u.dx,u.dy),n.dispatchAction(K(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Xx(o,u.scale,u.originX,u.originY),n.dispatchAction(K(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,h){return a.containPoint([c,h])&&!Gd(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=hO(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function fM(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Tv(a),u=Tv(i),c=Tv(s),h=Tv(o),v=r.data;if(v){var p=v.getItemVisual(t,"style"),d=v.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),d&&(l.decal=Ql(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Ns(e)}function vM(r,e,t,n,a,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var h=l?t:i,v=void 0;(!s||i>=0)&&(v=a);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;br(e,lr(n),{labelFetcher:v,labelDataIndex:h,defaultText:t},p);var d=e.getTextContent();if(d&&(hO(d).ignore=d.ignore,e.textConfig&&o)){var m=e.getBoundingRect().clone();e.textConfig.layoutRect=m,e.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function pM(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):Dt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function dM(r,e,t,n,a){r.data||Hs({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function gM(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Ne(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&_8(e,a,t),o}function yM(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),R(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}var bj=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new fO(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,v=new Si({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:uu+1)});if(!h){var p=t.mainSeries.getData(),d=i.getName(l),m=p.indexOfName(d),x=i.getItemModel(l),y=x.getModel("label"),f=p.getItemGraphicEl(m);br(v,lr(x),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(m,S)}},defaultText:d}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(_){xp(v,_)}}o.add(v)}}})},e.type="map",e})(we),Aj=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=xu(this,{coordDimensions:["value"],encodeDefaulter:Et(vx,this)}),a=yt(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=_i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return R(u.regions,function(c){var h=c.name,v=a.get(h),p=c.properties&&c.properties.echartsStyle,d;v==null?(d={name:h},i.push(d)):d=n.getRawDataItem(v),p&&Ot(d,p)}),n.appendData(i),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),v=i.mapDimension("value");isNaN(l[c].originalData.get(v,h))||u.push(l[c].name)}return ur("section",{header:u.join(", "),noHeader:!u.length,blocks:[ur("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=je(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e})(Me);function Tj(r,e){var t={};return R(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c<u;c++)s=Math.min(s,t[i][c]),l=Math.max(l,t[i][c]),o+=t[i][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function Cj(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),R(e,function(t,n){for(var a=Tj(et(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function Mj(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};R(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),v=s.getRegion(h);if(!(!v||isNaN(u))){var p=a[h]||0,d=s.dataToPoint(v.getCenter());a[h]=p+1,l.setItemLayout(c,{point:d,offset:p})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var mM=wr,Wh=(function(r){j(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new oi,n._rawTransformable=new oi,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new zt(t,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new zt(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new zt(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[ut(t[0],n.getWidth()),ut(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=wr([],i,t),a=wr([],a,t),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),F1(this.transform||(this.transform=[]),n.transform||_n()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],su(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new oi;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?mM(a,t,i):zr(a,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?mM([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,a){var i=_M(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=_M(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(oi);function _M(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var Lj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vO=["lng","lat"],K_=(function(r){j(e,r);function e(t,n,a){var i=r.call(this,t)||this;i.dimensions=vO,i.type="geo",i._nameCoordMap=yt(),i.map=n;var o=a.projection,s=_i.load(n,a.nameMap,a.nameProperty),l=_i.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=Lj[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var h;if(o)for(var v=0;v<u.length;v++){var p=u[v].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:Rt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new zt(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(ht(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=xM(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=xM(n);return i===this?i.pointToData(a):null},e})(Wh);qe(K_,Wh);function xM(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",$e).models[0]||{}).coordinateSystem:null}function wM(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(A,C,M,L){for(var D=M-A,P=L-C,E=0;E<=100;E++){var O=E/100,N=i.project([A+D*O,C+P*O]);ji(n,n,N),qi(a,a,N)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var h=this.getBoundingRect(),v=r.get("layoutCenter"),p=r.get("layoutSize"),d=e.getWidth(),m=e.getHeight(),x=h.width/h.height*this.aspectScale,y=!1,f,_;v&&p&&(f=[ut(v[0],d),ut(v[1],m)],_=ut(p,Math.min(d,m)),!isNaN(f[0])&&!isNaN(f[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},x>1?(S.width=_,S.height=_/x):(S.height=_,S.width=_*x),S.y=f[1]-S.height/2,S.x=f[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=x,S=Qe(b,{width:d,height:m})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function Dj(r,e){R(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var Ij=(function(){function r(){this.dimensions=vO}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new K_(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=wM,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),R(i,function(o,s){var l=et(o,function(c){return c.get("nameMap")}),u=new K_(s,s,K({nameMap:N1(l)},a(o[0])));u.zoomLimit=pr.apply(null,et(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=wM,u.resize(o[0],t),R(o,function(c){c.coordinateSystem=u,Dj(u,c)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=yt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=_i.load(t,n,a);return R(l.regions,function(u){var c=u.name,h=o.get(c),v=u.properties&&u.properties.echartsStyle;h||(h={name:c},i.push(h)),v&&Ot(h,v)}),i},r})(),pO=new Ij,Pj=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=_i.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),Es(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=pO.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Oa(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new ye(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},yt()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ye(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(wt(i))return o.status=n,i(o);if(ht(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})($t);function SM(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function jx(r,e,t,n){var a=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(SM(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=c,r.y-=h,r.updateTransform(),r.setCenter(SM(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var Rj=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new fO(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;xs(t.target,function(a){return(n=Dt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Dt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(Ee);function Ej(r,e,t){_i.registerMap(r,e,t)}function dO(r){r.registerCoordinateSystem("geo",pO),r.registerComponentModel(Pj),r.registerComponentView(Rj),r.registerImpl("registerMap",Ej),r.registerImpl("getMap",function(t){return _i.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;R(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var c=[];R(o,function(h,v){o[v]&&c.push(v)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=jx(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&R(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function kj(r){Wt(dO),r.registerChartView(bj),r.registerSeriesModel(Aj),r.registerLayout(Mj),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Cj),gE("map",r.registerAction)}function Oj(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function Nj(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){Vj(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Fj(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function Bj(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function bM(r){return arguments.length?r:Wj}function Tc(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function zj(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Vj(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Fj(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;s=Om(s),i=Nm(i),s&&i;){a=Om(a),o=Nm(o),a.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+n(s,i);v>0&&(Hj(Gj(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!Om(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=h-l),i&&!Nm(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function Om(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Nm(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Gj(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Hj(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function Wj(r,e){return r.parentNode===e.parentNode?1:2}var Uj=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Yj=(function(r){j(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Uj},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,v=ut(n.forkPosition,1),p=[];p[c]=o[c],p[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(p[0],p[1]),t.moveTo(s[0],s[1]),p[c]=s[c],t.lineTo(p[0],p[1]),p[c]=l[c],t.lineTo(p[0],p[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var m=a[d];t.moveTo(m[0],m[1]),p[c]=m[c],t.lineTo(p[0],p[1])}},e})(Ut),Zj=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Lt,t}return e.prototype.init=function(t,n){this._controller=new Hh(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,n,a);var u=this._data;i.diff(u).add(function(c){AM(i,c)&&TM(i,c,null,s,t)}).update(function(c,h){var v=u.getItemGraphicEl(h);if(!AM(i,c)){v&&MM(u,h,v,s,t);return}TM(i,c,v,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&MM(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(h){var v=a.getItemLayout(h);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];yd(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new Wh;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(t.get("center"),n),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Gd(u,a,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Zx(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Xx(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e})(we);function AM(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function TM(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=r.tree.root,h=o.parentNode===c?o:o.parentNode||o,v=r.getItemGraphicEl(h.dataIndex),p=h.getLayout(),d=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:p,m=o.getLayout();i?(t=new Nh(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=m.rawX,t.__radialRawY=m.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,oe(t,{x:m.x,y:m.y},a);var x=t.getSymbolPath();if(a.get("layout")==="radial"){var y=c.children[0],f=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(m.x===f.x&&o.isExpand===!0&&y.children.length){var A={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(A.y-f.y,A.x-f.x),S<0&&(S=Math.PI*2+S),b=A.x<f.x,b&&(S=S-Math.PI)}else S=Math.atan2(m.y-f.y,m.x-f.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=m.x<f.x,b&&(S=S-Math.PI)):(b=m.x>f.x,b||(S=S-Math.PI));var C=b?"left":"right",M=s.getModel("label"),L=M.get("rotate"),D=L*(Math.PI/180),P=x.getTextContent();P&&(x.setTextConfig({position:M.get("position")||C,rotation:L==null?-S:D,origin:"center"}),P.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),O=E==="relative"?Xc(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;O&&(Dt(t).focus=O),Xj(a,o,c,t,d,p,m,n),t.__edge&&(t.onHoverStateChange=function(N){if(N!=="blur"){var z=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);z&&z.hoverState===Ch||xp(t.__edge,N)}})}function Xj(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),m=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(m||(m=n.__edge=new Lh({shape:Q_(c,h,v,a,a)})),oe(m,{shape:Q_(c,h,v,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var x=e.children,y=[],f=0;f<x.length;f++){var _=x[f].getLayout();y.push([_.x,_.y])}m||(m=n.__edge=new Yj({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),oe(m,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}m&&!(u==="polyline"&&!e.isExpand)&&(m.useStyle(bt({strokeNoScale:!0,fill:null},d)),Sr(m,l,"lineStyle"),Ns(m),s.add(m))}function CM(r,e,t,n,a){var i=e.tree.root,o=gO(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),p=n.get("edgeShape"),d=n.get("layout"),m=n.get("orient"),x=n.get(["lineStyle","curveness"]);v&&(p==="curve"?co(v,{shape:Q_(d,m,x,l,l),style:{opacity:0}},n,{cb:function(){t.remove(v)},removeOpt:a}):p==="polyline"&&n.get("layout")==="orthogonal"&&co(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(v)},removeOpt:a}))}}function gO(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function MM(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=gO(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};co(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){CM(u,r,n,a,l)}),CM(i,r,n,a,l)}function Q_(r,e,t,n,a){var i,o,s,l,u,c,h,v;if(r==="radial"){u=n.rawX,h=n.rawY,c=a.rawX,v=a.rawY;var p=Tc(u,h),d=Tc(u,h+(v-h)*t),m=Tc(c,v+(h-v)*t),x=Tc(c,v);return{x1:p.x||0,y1:p.y||0,x2:x.x||0,y2:x.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:m.x||0,cpy2:m.y||0}}else u=n.x,h=n.y,c=a.x,v=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=h,s=c+(u-c)*t,l=v),(e==="TB"||e==="BT")&&(i=u,o=h+(v-h)*t,s=c,l=v+(h-v)*t);return{x1:u,y1:h,x2:c,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var Wn=Qt();function yO(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,mO(e,t,r),R(t,function(n){R(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Et($j,r))})}),e.wrapMethod("cloneShallow",Et(qj,r)),R(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Et(jj,r))}),Ur(t[e.dataType]===e)}function $j(r,e){if(Jj(this)){var t=K({},Wn(this).datas);t[this.dataType]=e,mO(e,t,r)}else qx(e,this.dataType,Wn(this).mainData,r);return e}function jj(r,e){return r.struct&&r.struct.update(),e}function qj(r,e){return R(Wn(e).datas,function(t,n){t!==e&&qx(t.cloneShallow(),n,e,r)}),e}function Kj(r){var e=Wn(this).mainData;return r==null||e==null?e:Wn(e).datas[r]}function Qj(){var r=Wn(this).mainData;return r==null?[{data:r}]:et(jt(Wn(r).datas),function(e){return{type:e,data:Wn(r).datas[e]}})}function Jj(r){return Wn(r).mainData===r}function mO(r,e,t){Wn(r).datas={},R(e,function(n,a){qx(n,a,r,t)})}function qx(r,e,t,n){Wn(t).datas[e]=r,Wn(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=Kj,r.getLinkedDataAll=Qj}var tq=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){wt(e)&&(n=t,t=e,e=null),e=e||{},ht(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),Kx=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(c,h){var v=c.value;o=Math.max(o,tt(v)?v.length:1),i.push(c);var p=new tq(Ke(c.name,""),a);h?eq(p,h):a.root=p,a._nodes.push(p);var d=c.children;if(d)for(var m=0;m<d.length;m++)s(d[m],p)}a.root.updateDepthAndHeight(0);var l=kh(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Hr(l,t);return u.initData(i),n&&n(u),yO({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function eq(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function vh(r,e,t){if(r&&Gt(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(ht(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function _O(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Qx(r,e){var t=_O(r);return Gt(t,e)>=0}function Wd(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var rq=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new ye(a,this,this.ecModel),o=Kx.createTree(n,this,s);function s(h){h.wrapMethod("getItemModel",function(v,p){var d=o.getNodeByDataIndex(p);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ur("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Wd(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(Me);function nq(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function ic(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function aq(r,e){r.eachSeriesByType("tree",function(t){iq(t,e)})}function iq(r,e){var t=zj(r,e);r.layoutInfo=t;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=bM(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=bM());var s=r.getData().tree.root,l=s.children[0];if(l){Oj(s),nq(l,Nj,o),s.hierNode.modifier=-l.hierNode.prelim,ic(l,Bj);var u=l,c=l,h=l;ic(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>c.getLayout().x&&(c=_),_.depth>h.depth&&(h=_)});var v=u===c?1:o(u,c)/2,p=v-u.getLayout().x,d=0,m=0,x=0,y=0;if(n==="radial")d=a/(c.getLayout().x+v+p),m=i/(h.depth-1||1),ic(l,function(_){x=(_.getLayout().x+p)*d,y=(_.depth-1)*m;var S=Tc(x,y);_.setLayout({x:S.x,y:S.y,rawX:x,rawY:y},!0)});else{var f=r.getOrient();f==="RL"||f==="LR"?(m=i/(c.getLayout().x+v+p),d=a/(h.depth-1||1),ic(l,function(_){y=(_.getLayout().x+p)*m,x=f==="LR"?(_.depth-1)*d:a-(_.depth-1)*d,_.setLayout({x,y},!0)})):(f==="TB"||f==="BT")&&(d=a/(c.getLayout().x+v+p),m=i/(h.depth-1||1),ic(l,function(_){x=(_.getLayout().x+p)*d,y=f==="TB"?(_.depth-1)*m:i-(_.depth-1)*m,_.setLayout({x,y},!0)}))}}}function oq(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function sq(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=jx(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function lq(r){r.registerChartView(Zj),r.registerSeriesModel(rq),r.registerLayout(aq),r.registerVisual(oq),sq(r)}var LM=["treemapZoomToNode","treemapRender","treemapMove"];function uq(r){for(var e=0;e<LM.length;e++)r.registerAction({type:LM[e],update:"updateView"},We);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=vh(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=Qx(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function xO(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=C_(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var cq=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};wO(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ye({itemStyle:o},this,n);i=t.levels=hq(i,n);var l=et(i||[],function(h){return new ye(h,s,n)},this),u=Kx.createTree(a,this,c);function c(h){h.wrapMethod("getItemModel",function(v,p){var d=u.getNodeByDataIndex(p),m=d?l[d.depth]:null;return v.parentModel=m||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ur("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Wd(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=yt(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){xO(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(Me);function wO(r){var e=0;R(r.children,function(n){wO(n);var a=n.value;tt(a)&&(a=a[0]),e+=a});var t=r.value;tt(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),tt(r.value)?r.value[0]=t:r.value=t}function hq(r,e){var t=me(e.get("color")),n=me(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;R(r,function(s){var l=new ye(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var fq=8,DM=8,Bm=5,vq=(function(){function r(e){this.group=new Lt,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,u),this._renderContent(e,h,s,l,u,c,a),Id(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=Ke(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+fq*2,t.emptyItemWidth);t.totalWidth+=s+DM,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=w7(t.pos,t.box),v=t.totalWidth,p=t.renderList,d=a.getModel("itemStyle").getItemStyle(),m=p.length-1;m>=0;m--){var x=p[m],y=x.node,f=x.width,_=x.text;v>h.width&&(v-=f-u,f=u,_=null);var S=new Xr({shape:{points:pq(l,0,f,c,m===p.length-1,m===0)},style:bt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new re({style:Ce(i,{text:_})}),textConfig:{position:"inside"},z2:uu*1e4,onclick:Et(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ce(o,{text:_}),S.ensureState("emphasis").style=d,Ne(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),dq(S,e,y),l+=f+DM}},r.prototype.remove=function(){this.group.removeAll()},r})();function pq(r,e,t,n,a,i){var o=[[a?r:r-Bm,e],[r+t,e],[r+t,e+n],[a?r:r-Bm,e+n]];return!i&&o.splice(2,0,[r+t+Bm,e+n/2]),!a&&o.push([r,e+n/2]),o}function dq(r,e,t){Dt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Wd(t,e)}}var gq=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.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())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function yq(){return new gq}var J_=Lt,IM=Kt,PM=3,RM="label",EM="upperLabel",mq=uu*10,_q=uu*2,xq=uu*3,ls=Os([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),kM=function(r){var e=ls(r);return e.stroke=e.fill=e.lineWidth=null,e},Hp=Qt(),wq=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=oc(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Gt(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=vh(i,s,t),u=i&&i.type,c=t.layoutInfo,h=!this._oldTree,v=this._storage,p=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(c),m=t.get("animation"),x=this._doRender(d,t,p);m&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,x,t,p):x.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new J_,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=oc(),l=oc(),u=this._storage,c=[];function h(f,_,S,b){return Sq(n,l,u,a,s,c,f,_,S,b)}m(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var v=x(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===p.width&&d.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:v,renderFinally:y};function m(f,_,S,b,A){b?(_=f,R(f,function(L,D){!L.isRemoved()&&M(D,D)})):new yi(_,f,C,C).add(M).update(M).remove(Et(M,null)).execute();function C(L){return L.getId()}function M(L,D){var P=L!=null?f[L]:null,E=D!=null?_[D]:null,O=h(P,E,S,A);O&&m(P&&P.viewChildren||[],E&&E.viewChildren||[],O,b,A+1)}}function x(f){var _=oc();return f&&R(f,function(S,b){var A=_[b];R(S,function(C){C&&(A.push(C),Hp(C).willDelete=!0)})}),_}function y(){R(v,function(f){R(f,function(_){_.parent&&_.parent.remove(_)})}),R(c,function(f){f.invisible=!0,f.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(wt(o)?0:o)||0,u=(wt(s)?null:s)||"cubicOut",c=yq();R(n.willDeleteEls,function(h,v){R(h,function(p,d){if(!p.invisible){var m=p.parent,x,y=Hp(m);if(i&&i.direction==="drillDown")x=m===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var f=0,_=0;y.willDelete||(f=y.nodeWidth/2,_=y.nodeHeight/2),x=v==="nodeGroup"?{x:f,y:_,style:{opacity:0}}:{shape:{x:f,y:_,width:0,height:0},style:{opacity:0}}}x&&c.add(p,x,l,0,u)}})}),R(this._storage,function(h,v){R(h,function(p,d){var m=n.lastsForAnimation[v][d],x={};m&&(p instanceof Lt?m.oldX!=null&&(x.x=p.x,x.y=p.y,p.x=m.oldX,p.y=m.oldY):(m.oldShape&&(x.shape=K({},p.shape),p.setShape(m.oldShape)),m.fadein?(p.setStyle("opacity",0),x.style={opacity:1}):p.style.opacity!==1&&(x.style={opacity:1})),c.add(p,x,l,0,u))})},this),this._state="animating",c.finished(ft(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),n||(n=this._controller=new Hh(t.getZr()),n.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),n.on("pan",ft(this._onPan,this)),n.on("zoom",ft(this._onZoom,this)));var i=new zt(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(o,s,l){return i.contain(s,l)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>PM||Math.abs(t.dy)>PM)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new zt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=i,u){var v=u.min||0,p=u.max||1/0;h=Math.max(Math.min(p,h),v)}var d=h/c.zoom;c.zoom=h;var m=this.seriesModel.layoutInfo;n-=m.x,a-=m.y;var x=_n();Na(x,x,[-n,-a]),G1(x,x,[d,d]),Na(x,x,[n,a]),l.applyTransform(x),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Cp(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vq(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(Qx(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=oc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(we);function oc(){return{nodeGroup:[],background:[],content:[]}}function Sq(r,e,t,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var p=c.width,d=c.height,m=c.borderWidth,x=c.invisible,y=o.getRawIndex(),f=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,b=_&&_.length,A=v.getModel("itemStyle"),C=v.getModel(["emphasis","itemStyle"]),M=v.getModel(["blur","itemStyle"]),L=v.getModel(["select","itemStyle"]),D=A.get("borderRadius")||0,P=_t("nodeGroup",J_);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),Hp(P).nodeWidth=p,Hp(P).nodeHeight=d,c.isAboveViewRoot)return P;var E=_t("background",IM,u,_q);E&&q(P,E,b&&c.upperLabelHeight);var O=v.getModel("emphasis"),N=O.get("focus"),z=O.get("blurScope"),G=O.get("disabled"),U=N==="ancestor"?o.getAncestorsIndices():N==="descendant"?o.getDescendantIndices():N;if(b)th(P)&&ms(P,!1),E&&(ms(E,!G),h.setItemGraphicEl(o.dataIndex,E),m_(E,U,z));else{var W=_t("content",IM,u,xq);W&&Q(P,W),E.disableMorphing=!0,E&&th(E)&&ms(E,!1),ms(P,!G),h.setItemGraphicEl(o.dataIndex,P);var Y=v.getShallow("cursor");Y&&W.attr("cursor",Y),m_(P,U,z)}return P;function q(Mt,mt,Pt){var gt=Dt(mt);if(gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex,mt.setShape({x:0,y:0,width:p,height:d,r:D}),x)rt(mt);else{mt.invisible=!1;var St=o.getVisual("style"),se=St.stroke,te=kM(A);te.fill=se;var Zt=ls(C);Zt.fill=C.get("borderColor");var ue=ls(M);ue.fill=M.get("borderColor");var ke=ls(L);if(ke.fill=L.get("borderColor"),Pt){var De=p-2*m;ct(mt,se,St.opacity,{x:m,y:0,width:De,height:S})}else mt.removeTextContent();mt.setStyle(te),mt.ensureState("emphasis").style=Zt,mt.ensureState("blur").style=ue,mt.ensureState("select").style=ke,Ns(mt)}Mt.add(mt)}function Q(Mt,mt){var Pt=Dt(mt);Pt.dataIndex=o.dataIndex,Pt.seriesIndex=r.seriesIndex;var gt=Math.max(p-2*m,0),St=Math.max(d-2*m,0);if(mt.culling=!0,mt.setShape({x:m,y:m,width:gt,height:St,r:D}),x)rt(mt);else{mt.invisible=!1;var se=o.getVisual("style"),te=se.fill,Zt=kM(A);Zt.fill=te,Zt.decal=se.decal;var ue=ls(C),ke=ls(M),De=ls(L);ct(mt,te,se.opacity,null),mt.setStyle(Zt),mt.ensureState("emphasis").style=ue,mt.ensureState("blur").style=ke,mt.ensureState("select").style=De,Ns(mt)}Mt.add(mt)}function rt(Mt){!Mt.invisible&&i.push(Mt)}function ct(Mt,mt,Pt,gt){var St=v.getModel(gt?EM:RM),se=Ke(v.get("name"),null),te=St.getShallow("show");br(Mt,lr(v,gt?EM:RM),{defaultText:te?se:null,inheritColor:mt,defaultOpacity:Pt,labelFetcher:r,labelDataIndex:o.dataIndex});var Zt=Mt.getTextContent();if(Zt){var ue=Zt.style,ke=z1(ue.padding||0);gt&&(Mt.setTextConfig({layoutRect:gt}),Zt.disableLabelLayout=!0),Zt.beforeUpdate=function(){var Ue=Math.max((gt?gt.width:Mt.shape.width)-ke[1]-ke[3],0),sn=Math.max((gt?gt.height:Mt.shape.height)-ke[0]-ke[2],0);(ue.width!==Ue||ue.height!==sn)&&Zt.setStyle({width:Ue,height:sn})},ue.truncateMinChar=2,ue.lineOverflow="truncate",vt(ue,gt,c);var De=Zt.getState("emphasis");vt(De?De.style:null,gt,c)}}function vt(Mt,mt,Pt){var gt=Mt?Mt.text:null;if(!mt&&Pt.isLeafRoot&>!=null){var St=r.get("drillDownIcon",!0);Mt.text=St?St+" "+gt:gt}}function _t(Mt,mt,Pt,gt){var St=f!=null&&t[Mt][f],se=a[Mt];return St?(t[Mt][f]=null,Nt(se,St)):x||(St=new mt,St instanceof Un&&(St.z2=bq(Pt,gt)),Jt(se,St)),e[Mt][y]=St}function Nt(Mt,mt){var Pt=Mt[y]={};mt instanceof J_?(Pt.oldX=mt.x,Pt.oldY=mt.y):Pt.oldShape=K({},mt.shape)}function Jt(Mt,mt){var Pt=Mt[y]={},gt=o.parentNode,St=mt instanceof Lt;if(gt&&(!n||n.direction==="drillDown")){var se=0,te=0,Zt=a.background[gt.getRawIndex()];!n&&Zt&&Zt.oldShape&&(se=Zt.oldShape.width,te=Zt.oldShape.height),St?(Pt.oldX=0,Pt.oldY=te):Pt.oldShape={x:se,y:te,width:0,height:0}}Pt.fadein=!St}}function bq(r,e){return r*mq+e}var ph=R,Aq=Tt,Wp=-1,sr=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=Ct(e);this.type=n,this.mappingMethod=t,this._normalizeData=Mq[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(zm(a),Tq(a)):t==="category"?a.categories?Cq(a):zm(a,!0):(Ur(t!=="linear"||a.dataExtent),zm(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ft(this._normalizeData,this)},r.listVisualTypes=function(){return jt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){Tt(e)?R(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=tt(e)?[]:Tt(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&ph(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(tt(e))e=e.slice();else if(Aq(e)){var t=[];ph(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||ht(l)&&l===e+"")return o;n&&v(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Mv(h[1],e,c[1]))return o}else if(c[1]===1/0){if(Mv(h[0],c[0],e))return o}else if(Mv(h[0],c[0],e)&&Mv(h[1],e,c[1]))return o;n&&v(c[0],o),n&&v(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function v(p,d){var m=Math.abs(p-e);m<i&&(i=m,a=d)}},r.visualHandlers={color:{applyVisual:sc("color"),getColorMapper:function(){var e=this.option;return ft(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Cc.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=my(t,e.parsedVisual,a),i?a:ci(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ci(my(e,this.option.parsedVisual),"rgba")},category:Cc,piecewise:function(e,t){var n=e1.call(this,t);return n==null&&(n=ci(my(e,this.option.parsedVisual),"rgba")),n},fixed:us}},colorHue:Cv(function(e,t){return Rc(e,t)}),colorSaturation:Cv(function(e,t){return Rc(e,null,t)}),colorLightness:Cv(function(e,t){return Rc(e,null,null,t)}),colorAlpha:Cv(function(e,t){return pp(e,t)}),decal:{applyVisual:sc("decal"),_normalizedToVisual:{linear:null,category:Cc,piecewise:null,fixed:null}},opacity:{applyVisual:sc("opacity"),_normalizedToVisual:t1([0,1])},liftZ:{applyVisual:sc("liftZ"),_normalizedToVisual:{linear:us,category:us,piecewise:us,fixed:us}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:OM,category:Cc,piecewise:function(e,t){var n=e1.call(this,t);return n==null&&(n=OM.call(this,e)),n},fixed:us}},symbolSize:{applyVisual:sc("symbolSize"),_normalizedToVisual:t1([0,1])}},r})();function Tq(r){var e=r.pieceList;r.hasSpecialVisual=!1,R(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function Cq(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(ph(e,function(o,s){t[o]=s}),!tt(n)){var a=[];Tt(n)?ph(n,function(o,s){var l=t[s];a[l??Wp]=o}):a[Wp]=n,n=SO(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function zm(r,e){var t=r.visual,n=[];Tt(t)?ph(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),SO(r,n)}function Cv(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:t1([0,1])}}function OM(r){var e=this.option.visual;return e[Math.round(ge(r,[0,1],[0,e.length-1],!0))]||{}}function sc(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Cc(r){var e=this.option.visual;return e[this.option.loop&&r!==Wp?r%e.length:r]}function us(){return this.option.visual[0]}function t1(r){return{linear:function(e){return ge(e,r,this.option.visual,!0)},category:Cc,piecewise:function(e,t){var n=e1.call(this,t);return n==null&&(n=ge(e,r,this.option.visual,!0)),n},fixed:us}}function e1(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=sr.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function SO(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=et(e,function(t){var n=xn(t);return n||[0,0,0,1]})),e}var Mq={linear:function(r){return ge(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=sr.findPieceIndex(r,e,!0);if(t!=null)return ge(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??Wp},fixed:We};function Mv(r,e,t){return r?e<=t:e<t}var Lq="itemStyle",bO=Qt();const Dq={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||AO(t,{},r.getViewRoot().getAncestors(),r)}};function AO(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Lq),l=Iq(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),v;h!=null&&(v=NM(l),c=Pq(h,v)),u.stroke=c;var p=r.viewChildren;if(!p||!p.length)v=NM(l),u.fill=v;else{var d=Rq(r,a,i,s,l,p);R(p,function(m,x){if(m.depth>=t.length||m===t[m.depth]){var y=Eq(a,l,m,x,d,n);AO(m,y,t,n)}})}}}function Iq(r,e,t){var n=K({},e),a=t.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function NM(r){var e=Vm(r,"color");if(e){var t=Vm(r,"colorAlpha"),n=Vm(r,"colorSaturation");return n&&(e=Rc(e,null,null,n)),t&&(e=pp(e,t)),e}}function Pq(r,e){return e!=null?Rc(e,null,null,r):null}function Vm(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function Rq(r,e,t,n,a,i){if(!(!i||!i.length)){var o=Fm(e,"color")||a.color!=null&&a.color!=="none"&&(Fm(e,"colorAlpha")||Fm(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new sr(h);return bO(v).drColorMappingBy=c,v}}}function Fm(r,e){var t=r.get(e);return tt(t)&&t.length?{name:e,range:t}:null}function Eq(r,e,t,n,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&bO(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var dh=Math.max,Up=Math.min,BM=pr,Jx=R,TO=["itemStyle","borderWidth"],kq=["itemStyle","gapWidth"],Oq=["upperLabel","show"],Nq=["upperLabel","height"];const Bq={seriesType:"treemap",reset:function(r,e,t,n){var a=t.getWidth(),i=t.getHeight(),o=r.option,s=Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ut(BM(s.width,l[0]),a),c=ut(BM(s.height,l[1]),i),h=n&&n.type,v=["treemapZoomToNode","treemapRootToNode"],p=vh(n,v,r),d=h==="treemapRender"||h==="treemapMove"?n.rootRect:null,m=r.getViewRoot(),x=_O(m);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?Wq(r,p,m,u,c):d?[d.width,d.height]:[u,c],f=o.sort;f&&f!=="asc"&&f!=="desc"&&(f="desc");var _={squareRatio:o.squareRatio,sort:f,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(S),CO(m,_,!1,0),S=m.getLayout(),Jx(x,function(A,C){var M=(x[C+1]||m).getValue();A.setLayout(K({dataExtent:[M,M],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(Uq(s,d,p),!0),r.setLayoutInfo(s),MO(b,new zt(-s.x,-s.y,a,i),x,m,0)}};function CO(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(TO),u=s.get(kq)/2,c=LO(s),h=Math.max(l,c),v=l-u,p=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),a=dh(a-2*v,0),i=dh(i-v-p,0);var d=a*i,m=zq(r,s,d,e,t,n);if(m.length){var x={x:v,y:p,width:a,height:i},y=Up(a,i),f=1/0,_=[];_.area=0;for(var S=0,b=m.length;S<b;){var A=m[S];_.push(A),_.area+=A.getLayout().area;var C=Hq(_,y,e.squareRatio);C<=f?(S++,f=C):(_.area-=_.pop().getLayout().area,zM(_,y,x,u,!1),y=Up(x.width,x.height),_.length=_.area=0,f=1/0)}if(_.length&&zM(_,y,x,u,!0),!t){var M=s.get("childrenVisibleMin");M!=null&&d<M&&(t=!0)}for(var S=0,b=m.length;S<b;S++)CO(m[S],e,t,n+1)}}}function zq(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=fe(o,function(p){return!p.isRemoved()}),Fq(o,s);var u=Gq(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Vq(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var v=o[c].getValue()/u.sum*t;o[c].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Vq(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function Fq(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function Gq(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],Jx(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Hq(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?dh(u*n/l,l/(u*a)):1/0}function zM(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?r.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var h=0,v=r.length;h<v;h++){var p=r[h],d={},m=c?p.getLayout().area/c:0,x=d[l[o]]=dh(c-2*n,0),y=t[s[i]]+t[l[i]]-u,f=h===v-1||y<m?y:m,_=d[l[i]]=dh(f-2*n,0);d[s[o]]=t[s[o]]+Up(n,x/2),d[s[i]]=u+Up(n,_/2),u+=f,p.setLayout(d,!0)}t[s[o]]+=c,t[l[o]]-=c}function Wq(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,h=s.children,v=0,p=h.length;v<p;v++)c+=h[v].getValue();var d=i.getValue();if(d===0)return o;u*=c/d;var m=s.getModel(),x=m.get(TO),y=Math.max(x,LO(m));u+=4*x*x+(3*x+y)*Math.pow(u,.5),u>K2&&(u=K2),i=s}u<l&&(u=l);var f=Math.pow(u/l,.5);return[n*f,a*f]}function Uq(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function MO(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new zt(e.x-i.x,e.y-i.y,e.width,e.height);Jx(r.viewChildren||[],function(u){MO(u,l,t,n,a+1)})}}function LO(r){return r.get(Oq)?r.get(Nq):0}function Yq(r){r.registerSeriesModel(cq),r.registerChartView(wq),r.registerVisual(Dq),r.registerLayout(Bq),uq(r)}function Zq(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){ae(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function Xq(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var v=l.getShallow(c[h],!0);v!=null&&n.setItemVisual(o,c[h],v)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){ht(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");K(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)a.setItemVisual(o,h[v],n.getItemVisual(l,h[v]))}})})}function Lv(r){return r instanceof Array||(r=[r,r]),r}function $q(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Lv(e.get("edgeSymbol")),i=Lv(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Lv(s.getShallow("symbol",!0)),c=Lv(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(K(v,h),v.stroke){case"source":{var p=l.node1.getVisual("style");v.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");v.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var r1="-->",Ud=function(r){return r.get("autoCurveness")||null},DO=function(r,e){var t=Ud(r),n=20,a=[];if(ae(t))n=t;else if(tt(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},gh=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(r1)},IO=function(r){var e=r.split(r1);return[e[0],e[2],e[1]].join(r1)},jq=function(r,e){var t=gh(r.node1,r.node2,e);return e.__edgeMap[t]},qq=function(r,e){var t=n1(gh(r.node1,r.node2,e),e),n=n1(gh(r.node2,r.node1,e),e);return t+n},n1=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function Kq(r){Ud(r)&&(r.__curvenessList=[],r.__edgeMap={},DO(r))}function Qq(r,e,t,n){if(Ud(t)){var a=gh(r,e,t),i=t.__edgeMap,o=i[IO(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function tw(r,e,t,n){var a=Ud(e),i=tt(a);if(!a)return null;var o=jq(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=qq(r,e);DO(e,u),r.lineStyle=r.lineStyle||{};var c=gh(r.node1,r.node2,e),h=e.__curvenessList,v=i||u%2?0:1;if(o.isForward)return h[v+s];var p=IO(c),d=n1(p,e),m=h[s+d+v];return n?i?a&&a[0]===0?(d+v)%2?m:-m:((d%2?0:1)+v)%2?m:-m:(d+v)%2?m:-m:h[s+d+v]}function PO(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),ew(t,r)}}function ew(r,e){r.eachEdge(function(t,n){var a=Ea(t.getModel().get(["lineStyle","curveness"]),-tw(t,e,n,!0),0),i=li(t.node1.getLayout()),o=li(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function Jq(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];R(a.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var h=i.get(o[c],s);isNaN(h)||(u=!0),l.push(h)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}ew(i.graph,t)}else(!n||n==="none")&&PO(t)})}function Mc(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function Lc(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var VM=Math.PI,Gm=[];function rw(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),!!h){if(t){var v=a.pointToData(n),p=v[0],d=v[1],m=[p-l,d-u];ou(m,m),Wv(m,m,c),t.setLayout([l+m[0],u+m[1]],!0);var x=r.get(["circular","rotateLabel"]);RO(t,x,l,u)}tK[e](r,s,o,c,l,u,h),s.eachEdge(function(y,f){var _=Ea(y.getModel().get(["lineStyle","curveness"]),tw(y,r,f),0),S=li(y.node1.getLayout()),b=li(y.node2.getLayout()),A,C=(S[0]+b[0])/2,M=(S[1]+b[1])/2;+_&&(_*=3,A=[l*_+C*(1-_),u*_+M*(1-_)]),y.setLayout([S,b,A])})}}}var tK={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var h=c.getValue("value"),v=u*(l?h:1)/2;s+=v,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=v})},symbolSize:function(r,e,t,n,a,i,o){var s=0;Gm.length=o;var l=Mc(r);e.eachNode(function(h){var v=Lc(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var p=Math.asin(v/2/n);isNaN(p)&&(p=VM/2),Gm[h.dataIndex]=p,s+=p*2});var u=(2*VM-s)/o/2,c=0;e.eachNode(function(h){var v=u+Gm[h.dataIndex];c+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=v})}};function RO(r,e,t,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var v=s.ensureState("emphasis");K(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function eK(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&rw(e,"symbolSize")})}var bl=W0;function rK(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<n.length;c++){var h=n[c];h.p||(h.p=Fs(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=li(h.p),h.edges=null}var v=t.friction==null?.6:t.friction,p=v,d,m;return{warmUp:function(){p=v*.8},setFixed:function(x){n[x].fixed=!0},setUnfixed:function(x){n[x].fixed=!1},beforeStep:function(x){d=x},afterStep:function(x){m=x},step:function(x){d&&d(n,a);for(var y=[],f=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,A=S.n2;gs(y,A.p,b.p);var C=U0(y)-S.d,M=A.w/(b.w+A.w);isNaN(M)&&(M=0),ou(y,y),!b.fixed&&bl(b.p,b.p,y,M*C*p),!A.fixed&&bl(A.p,A.p,y,-(1-M)*C*p)}}for(var _=0;_<f;_++){var L=n[_];L.fixed||(gs(y,l,L.p),bl(L.p,L.p,y,u*p))}for(var _=0;_<f;_++)for(var b=n[_],D=_+1;D<f;D++){var A=n[D];gs(y,A.p,b.p);var C=U0(y);C===0&&(IH(y,Math.random()-.5,Math.random()-.5),C=1);var P=(b.rep+A.rep)/C/C;!b.fixed&&bl(b.pp,b.pp,y,P),!A.fixed&&bl(A.pp,A.pp,y,-P)}for(var E=[],_=0;_<f;_++){var L=n[_];L.fixed||(gs(E,L.p,L.pp),bl(L.p,L.p,E,p),zr(L.pp,L.p))}p=p*.992;var O=p<.01;m&&m(n,a,O),x&&x(O)}}}function nK(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?PO(e):l==="circular"&&rw(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),p=tt(h)?h:[h,h],d=tt(v)?v:[v,v];d=[d[1],d[0]];var m=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),A=ge(_,u,p);return isNaN(A)&&(A=(p[0]+p[1])/2),{w:A,rep:A,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),x=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),A=ge(_,c,d);isNaN(A)&&(A=(d[0]+d[1])/2);var C=b.getModel(),M=Ea(b.getModel().get(["lineStyle","curveness"]),-tw(b,e,S,!0),0);return{n1:m[b.node1.dataIndex],n2:m[b.node2.dataIndex],d:A,curveness:M,ignoreForceLayout:C.get("ignoreForceLayout")}}),y=t.getBoundingRect(),f=rK(m,x,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});f.beforeStep(function(_,S){for(var b=0,A=_.length;b<A;b++)_[b].fixed&&zr(_[b].p,a.getNodeByIndex(b).getLayout())}),f.afterStep(function(_,S,b){for(var A=0,C=_.length;A<C;A++)_[A].fixed||a.getNodeByIndex(A).setLayout(_[A].p),n[i.getId(A)]=_[A].p;for(var A=0,C=S.length;A<C;A++){var M=S[A],L=a.getEdgeByIndex(A),D=M.n1.p,P=M.n2.p,E=L.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],zr(E[0],D),zr(E[1],P),+M.curveness&&(E[2]=[(D[0]+P[0])/2-(D[1]-P[1])*M.curveness,(D[1]+P[1])/2-(P[0]-D[0])*M.curveness]),L.setLayout(E)}}),e.forceLayout=f,e.preservedPoints=n,f.step()}else e.forceLayout=null})}function aK(r,e,t){var n=K(r.getBoxLayoutParams(),{aspect:t});return Qe(n,{width:e.getWidth(),height:e.getHeight()})}function iK(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(x){var y=i.getItemModel(x);return[+y.get("x"),+y.get("y")]}),s=[],l=[];yd(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=aK(n,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],v=l[1]-s[1],p=c.width,d=c.height,m=n.coordinateSystem=new Wh;m.zoomLimit=n.get("scaleLimit"),m.setBoundingRect(s[0],s[1],h,v),m.setViewRect(c.x,c.y,p,d),m.setCenter(n.get("center"),e),m.setZoom(n.get("zoom")),t.push(m)}}),t}var FM=ir.prototype,Hm=Lh.prototype,EO=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(EO);function Wm(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var oK=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EO},e.prototype.buildPath=function(t,n){Wm(n)?FM.buildPath.call(this,t,n):Hm.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return Wm(this.shape)?FM.pointAt.call(this,t):Hm.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=Wm(n)?[n.x2-n.x1,n.y2-n.y1]:Hm.tangentAt.call(this,t);return ou(a,a)},e})(Ut),Um=["fromSymbol","toSymbol"];function GM(r){return"_"+r+"Type"}function HM(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=mu(a),u=Us(o||0,l);return n+l+u+(i||"")+(s||"")}function WM(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=mu(a),u=Us(o||0,l),c=je(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function sK(r){var e=new oK({name:"line",subPixelOptimize:!0});return a1(e.shape,r),e}function a1(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var nw=(function(r){j(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=sK(o);s.shape.percent=0,Pe(s,{shape:{percent:1}},i,n),this.add(s),R(Um,function(l){var u=WM(l,t,n);this.add(u),this[GM(l)]=HM(l,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};a1(l.shape,s),oe(o,l,i,n),R(Um,function(u){var c=HM(u,t,n),h=GM(u);if(this[h]!==c){this.remove(this.childOfName(u));var v=WM(u,t,n);this.add(v)}this[h]=c},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,h=a&&a.emphasisDisabled,v=a&&a.focus,p=a&&a.blurScope;if(!a||t.hasItemOption){var d=t.getItemModel(n),m=d.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=m.get("disabled"),v=m.get("focus"),p=m.get("blurScope"),c=lr(d)}var x=t.getItemVisual(n,"style"),y=x.stroke;o.useStyle(x),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,R(Um,function(A){var C=this.childOfName(A);if(C){C.setColor(y),C.style.opacity=x.opacity;for(var M=0;M<Yr.length;M++){var L=Yr[M],D=o.getState(L);if(D){var P=D.style||{},E=C.ensureState(L),O=E.style||(E.style={});P.stroke!=null&&(O[C.__isEmptyBrush?"stroke":"fill"]=P.stroke),P.opacity!=null&&(O.opacity=P.opacity)}}C.markRedraw()}},this);var f=i.getRawValue(n);br(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(A,C){return i.getFormattedLabel(A,C,t.dataType)}},inheritColor:y||"#000",defaultOpacity:x.opacity,defaultText:(f==null?t.getName(n):isFinite(f)?Ve(f):f)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");tt(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Ne(this,v,p,h)},e.prototype.highlight=function(){di(this)},e.prototype.downplay=function(){gi(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");a1(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),v=gs([],h,c);ou(v,v);function p(D,P){var E=D.__specifiedRotation;if(E==null){var O=l.tangentAt(P);D.attr("rotation",(P===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else D.attr("rotation",E)}if(n&&(n.setPosition(c),p(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(h),p(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,m=void 0,x=i.__labelDistance,y=x[0]*o,f=x[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],A=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var C=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var M=-Math.atan2(S[1],S[0]);h[0]<c[0]&&(M=Math.PI+M),i.rotation=M}var L=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":L=-f,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":L=f,m="top";break;default:L=0,m="middle"}switch(i.__position){case"end":i.x=v[0]*y+h[0],i.y=v[1]*f+h[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",m=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+c[0],i.y=-v[1]*f+c[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",m=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*C+c[0],i.y=c[1]+L,d=S[0]<0?"right":"left",i.originX=-y*C,i.originY=-L;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=A[0],i.y=A[1]+L,d="center",i.originY=-L;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*C+h[0],i.y=h[1]+L,d=S[0]>=0?"right":"left",i.originX=y*C,i.originY=-L;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||d})}},e})(Lt),aw=(function(){function r(e){this.group=new Lt,this._LineCtor=e||nw}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=UM(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UM(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!lK(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(Ym(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){go(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(Ym(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!Ym(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function lK(r){return r.animators&&r.animators.length>0}function UM(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:lr(e)}}function YM(r){return isNaN(r[0])||isNaN(r[1])}function Ym(r){return r&&!YM(r[0])&&!YM(r[1])}var Zm=[],Xm=[],$m=[],Al=vr,jm=As,ZM=Math.abs;function XM(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){Zm[0]=Al(n[0],a[0],i[0],c),Zm[1]=Al(n[1],a[1],i[1],c);var h=ZM(jm(Zm,e)-l);h<o&&(o=h,s=c)}for(var v=0;v<32;v++){var p=s+u;Xm[0]=Al(n[0],a[0],i[0],s),Xm[1]=Al(n[1],a[1],i[1],s),$m[0]=Al(n[0],a[0],i[0],p),$m[1]=Al(n[1],a[1],i[1],p);var h=jm(Xm,e)-l;if(ZM(h)<.01)break;var d=jm($m,e)-l;u/=2,h<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function qm(r,e){var t=[],n=$c,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[li(u[0]),li(u[1])],u[2]&&u.__original.push(li(u[2])));var v=u.__original;if(u[2]!=null){if(zr(a[0],v[0]),zr(a[1],v[2]),zr(a[2],v[1]),c&&c!=="none"){var p=Lc(s.node1),d=XM(a,v[0],p*e);n(a[0][0],a[1][0],a[2][0],d,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],d,t),a[0][1]=t[3],a[1][1]=t[4]}if(h&&h!=="none"){var p=Lc(s.node2),d=XM(a,v[1],p*e);n(a[0][0],a[1][0],a[2][0],d,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],d,t),a[1][1]=t[1],a[2][1]=t[2]}zr(u[0],a[0]),zr(u[1],a[2]),zr(u[2],a[1])}else{if(zr(i[0],v[0]),zr(i[1],v[1]),gs(o,i[1],i[0]),ou(o,o),c&&c!=="none"){var p=Lc(s.node1);W0(i[0],i[0],o,p*e)}if(h&&h!=="none"){var p=Lc(s.node2);W0(i[1],i[1],o,-p*e)}zr(u[0],i[0]),zr(u[1],i[1])}})}function $M(r){return r.type==="view"}var uK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new Bh,i=new aw,o=this.group;this._controller=new Hh(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if($M(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):oe(u,c,t)}qm(t.getGraph(),Mc(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,n,a),clearTimeout(this._layoutTimeout);var p=t.forceLayout,d=t.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,d);var m=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),A=_.getModel();if(b){b.off("drag").off("dragend");var C=A.get("draggable");C&&b.on("drag",function(L){switch(m){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,d),p.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),rw(t,"symbolSize",_,[L.offsetX,L.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(S,[b.x,b.y]),ew(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){p&&p.setUnfixed(S)}),b.setDraggable(C,!!A.get("cursor"));var M=A.get(["emphasis","focus"]);M==="adjacency"&&(Dt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(Dt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var x=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),f=h.getLayout("cy");h.graph.eachNode(function(_){RO(_,x,y,f)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(c,h)&&!Gd(u,a,t)}),!$M(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Zx(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Xx(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),qm(t.getGraph(),Mc(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=Mc(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){qm(t.getGraph(),Mc(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e})(we);function Tl(r){return"_EC_"+r}var cK=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(!n[Tl(e)]){var a=new cs(e,t);return a.hostGraph=this,this.nodes.push(a),n[Tl(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Tl(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(ae(e)&&(e=this.nodes[e]),ae(t)&&(t=this.nodes[t]),e instanceof cs||(e=a[Tl(e)]),t instanceof cs||(t=a[Tl(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new kO(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof cs&&(e=e.id),t instanceof cs&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof cs||(t=this._nodesMap[Tl(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(a,h,l))return;s.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),cs=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=yt(),t=yt(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r})(),kO=(function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=yt(),t=yt();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r})();function OO(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}qe(cs,OO("hostGraph","data"));qe(kO,OO("hostGraph","edgeData"));function NO(r,e,t,n,a){for(var i=new cK(n),o=0;o<r.length;o++)i.addNode(pr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],h=c.source,v=c.target;i.addEdge(h,v,u)&&(l.push(c),s.push(pr(Ke(c.id,null),h+" > "+v)),u++)}var p=t.get("coordinateSystem"),d;if(p==="cartesian2d"||p==="polar")d=bi(r,t);else{var m=Rh.get(p),x=m?m.dimensions||[]:[];Gt(x,"value")<0&&x.concat(["value"]);var y=kh(r,{coordDimensions:x,encodeDefine:t.getEncode()}).dimensions;d=new Hr(y,t),d.initData(r)}var f=new Hr(["value"],t);return f.initData(l,s),a&&a(d,f),yO({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:f},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var hK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Gh(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Es(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){Kq(this);var s=NO(i,a,this,!0,l);return R(s.edges,function(u){Qq(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(d){var m=o._categoriesModels,x=d.getShallow("category"),y=m[x];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=ye.prototype.getModel;function v(d,m){var x=h.call(this,d,m);return x.resolveParentPath=p,x}c.wrapMethod("getItemModel",function(d){return d.resolveParentPath=p,d.getModel=v,d});function p(d){if(d&&(d[0]==="label"||d[1]==="label")){var m=d.slice();return d[0]==="label"?m[0]="edgeLabel":d[1]==="label"&&(m[1]="edgeLabel"),m}return d}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=oE({series:this,dataIndex:t,multipleSeries:n});return h},e.prototype._updateCategoriesData=function(){var t=et(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),n=new Hr(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Me),fK={type:"graphRoam",event:"graphRoam",update:"none"};function vK(r){r.registerChartView(uK),r.registerSeriesModel(hK),r.registerProcessor(Zq),r.registerVisual(Xq),r.registerVisual($q),r.registerLayout(Jq),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,eK),r.registerLayout(nK),r.registerCoordinateSystem("graphView",{dimensions:Wh.dimensions,create:iK}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},We),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},We),r.registerAction(fK,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=jx(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var pK=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),dK=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new pK},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,c)},e})(Ut);function gK(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=ut(t[0],e.getWidth()),s=ut(t[1],e.getHeight()),l=ut(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Dv(r,e){var t=r==null?"":r+"";return e&&(ht(e)?t=e.replace("{value}",t):wt(e)&&(t=e(r))),t}var yK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=gK(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),v=h.get("roundCap"),p=v?Vp:Zr,d=h.get("show"),m=h.getModel("lineStyle"),x=m.get("width"),y=[u,c];q1(y,!l),u=y[0],c=y[1];for(var f=c-u,_=u,S=[],b=0;d&&b<i.length;b++){var A=Math.min(Math.max(i[b][0],0),1);c=u+f*A;var C=new p({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-x,r:o.r},silent:!0});C.setStyle({fill:i[b][1]}),C.setStyle(m.getLineStyle(["color","width"])),S.push(C),_=c}S.reverse(),R(S,function(L){return s.add(L)});var M=function(L){if(L<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=L&&(D===0?0:i[D-1][0])<L)return i[D][1];return i[D-1][1]};this._renderTicks(t,n,a,M,o,u,c,l,x),this._renderTitleAndDetail(t,n,a,M,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,M,o,u,c,l,x)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,c){for(var h=this.group,v=o.cx,p=o.cy,d=o.r,m=+t.get("min"),x=+t.get("max"),y=t.getModel("splitLine"),f=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=f.get("splitNumber"),A=ut(y.get("length"),d),C=ut(f.get("length"),d),M=s,L=(l-s)/S,D=L/b,P=y.getModel("lineStyle").getLineStyle(),E=f.getModel("lineStyle").getLineStyle(),O=y.get("distance"),N,z,G=0;G<=S;G++){if(N=Math.cos(M),z=Math.sin(M),y.get("show")){var U=O?O+c:c,W=new ir({shape:{x1:N*(d-U)+v,y1:z*(d-U)+p,x2:N*(d-A-U)+v,y2:z*(d-A-U)+p},style:P,silent:!0});P.stroke==="auto"&&W.setStyle({stroke:i(G/S)}),h.add(W)}if(_.get("show")){var U=_.get("distance")+O,Y=Dv(Ve(G/S*(x-m)+m),_.get("formatter")),q=i(G/S),Q=N*(d-A-U)+v,rt=z*(d-A-U)+p,ct=_.get("rotate"),vt=0;ct==="radial"?(vt=-M+2*Math.PI,vt>Math.PI/2&&(vt+=Math.PI)):ct==="tangential"?vt=-M-Math.PI/2:ae(ct)&&(vt=ct*Math.PI/180),vt===0?h.add(new re({style:Ce(_,{text:Y,x:Q,y:rt,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:N<-.4?"left":N>.4?"right":"center"},{inheritColor:q}),silent:!0})):h.add(new re({style:Ce(_,{text:Y,x:Q,y:rt,verticalAlign:"middle",align:"center"},{inheritColor:q}),silent:!0,originX:Q,originY:rt,rotation:vt}))}if(f.get("show")&&G!==S){var U=f.get("distance");U=U?U+c:c;for(var _t=0;_t<=b;_t++){N=Math.cos(M),z=Math.sin(M);var Nt=new ir({shape:{x1:N*(d-U)+v,y1:z*(d-U)+p,x2:N*(d-C-U)+v,y2:z*(d-C-U)+p},silent:!0,style:E});E.stroke==="auto"&&Nt.setStyle({stroke:i((G+_t/b)/S)}),h.add(Nt),M+=D}M-=D}else M+=L}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,c){var h=this.group,v=this._data,p=this._progressEls,d=[],m=t.get(["pointer","show"]),x=t.getModel("progress"),y=x.get("show"),f=t.getData(),_=f.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),A=[S,b],C=[s,l];function M(D,P){var E=f.getItemModel(D),O=E.getModel("pointer"),N=ut(O.get("width"),o.r),z=ut(O.get("length"),o.r),G=t.get(["pointer","icon"]),U=O.get("offsetCenter"),W=ut(U[0],o.r),Y=ut(U[1],o.r),q=O.get("keepAspect"),Q;return G?Q=je(G,W-N/2,Y-z,N,z,null,q):Q=new dK({shape:{angle:-Math.PI/2,width:N,r:z,x:W,y:Y}}),Q.rotation=-(P+Math.PI/2),Q.x=o.cx,Q.y=o.cy,Q}function L(D,P){var E=x.get("roundCap"),O=E?Vp:Zr,N=x.get("overlap"),z=N?x.get("width"):c/f.count(),G=N?o.r-z:o.r-(D+1)*z,U=N?o.r:o.r-D*z,W=new O({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:G,r:U}});return N&&(W.z2=ge(f.get(_,D),[S,b],[100,0],!0)),W}(y||m)&&(f.diff(v).add(function(D){var P=f.get(_,D);if(m){var E=M(D,s);Pe(E,{rotation:-((isNaN(+P)?C[0]:ge(P,A,C,!0))+Math.PI/2)},t),h.add(E),f.setItemGraphicEl(D,E)}if(y){var O=L(D,s),N=x.get("clip");Pe(O,{shape:{endAngle:ge(P,A,C,N)}},t),h.add(O),d_(t.seriesIndex,f.dataType,D,O),d[D]=O}}).update(function(D,P){var E=f.get(_,D);if(m){var O=v.getItemGraphicEl(P),N=O?O.rotation:s,z=M(D,N);z.rotation=N,oe(z,{rotation:-((isNaN(+E)?C[0]:ge(E,A,C,!0))+Math.PI/2)},t),h.add(z),f.setItemGraphicEl(D,z)}if(y){var G=p[P],U=G?G.shape.endAngle:s,W=L(D,U),Y=x.get("clip");oe(W,{shape:{endAngle:ge(E,A,C,Y)}},t),h.add(W),d_(t.seriesIndex,f.dataType,D,W),d[D]=W}}).execute(),f.each(function(D){var P=f.getItemModel(D),E=P.getModel("emphasis"),O=E.get("focus"),N=E.get("blurScope"),z=E.get("disabled");if(m){var G=f.getItemGraphicEl(D),U=f.getItemVisual(D,"style"),W=U.fill;if(G instanceof dr){var Y=G.style;G.useStyle(K({image:Y.image,x:Y.x,y:Y.y,width:Y.width,height:Y.height},U))}else G.useStyle(U),G.type!=="pointer"&&G.setColor(W);G.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),G.style.fill==="auto"&&G.setStyle("fill",i(ge(f.get(_,D),A,[0,1],!0))),G.z2EmphasisLift=0,Sr(G,P),Ne(G,O,N,z)}if(y){var q=d[D];q.useStyle(f.getItemVisual(D,"style")),q.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),q.z2EmphasisLift=0,Sr(q,P),Ne(q,O,N,z)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=je(s,n.cx-o/2+ut(l[0],n.r),n.cy-o/2+ut(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),v=new Lt,p=[],d=[],m=t.isAnimationEnabled(),x=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new re({silent:!0}),d[y]=new re({silent:!0})}).update(function(y,f){p[y]=s._titleEls[f],d[y]=s._detailEls[f]}).execute(),l.each(function(y){var f=l.getItemModel(y),_=l.get(u,y),S=new Lt,b=i(ge(_,[c,h],[0,1],!0)),A=f.getModel("title");if(A.get("show")){var C=A.get("offsetCenter"),M=o.cx+ut(C[0],o.r),L=o.cy+ut(C[1],o.r),D=p[y];D.attr({z2:x?0:2,style:Ce(A,{x:M,y:L,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(D)}var P=f.getModel("detail");if(P.get("show")){var E=P.get("offsetCenter"),O=o.cx+ut(E[0],o.r),N=o.cy+ut(E[1],o.r),z=ut(P.get("width"),o.r),G=ut(P.get("height"),o.r),U=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,D=d[y],W=P.get("formatter");D.attr({z2:x?0:2,style:Ce(P,{x:O,y:N,text:Dv(_,W),width:isNaN(z)?null:z,height:isNaN(G)?null:G,align:"center",verticalAlign:"middle"},{inheritColor:U})}),cR(D,{normal:P},_,function(q){return Dv(q,W)}),m&&hR(D,y,l,t,{getFormattedLabel:function(q,Q,rt,ct,vt,_t){return Dv(_t?_t.interpolatedValue:_,W)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=p,this._detailEls=d},e.type="gauge",e})(we),mK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return xu(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(Me);function _K(r){r.registerChartView(yK),r.registerSeriesModel(mK)}var xK=["itemStyle","opacity"],wK=(function(r){j(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new $r,s=new re;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(xK);c=c??1,a||ha(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Pe(i,{style:{opacity:c}},o,n)):oe(i,{style:{opacity:c},shape:{points:l.points}},o,n),Sr(i,s),this._updateLabel(t,n),Ne(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),c=u.label,h=t.getItemVisual(n,"style"),v=h.fill;br(o,lr(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:h.opacity,defaultText:t.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:v,outsideFill:v});var p=c.linePoints;i.setShape({points:p}),a.textGuideLineConfig={anchor:p?new Bt(p[0][0],p[0][1]):null},oe(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Ox(a,Nx(l),{stroke:v})},e})(Xr),SK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new wK(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);eh(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(we),bK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gh(ft(this.getData,this),ft(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return xu(this,{coordDimensions:["value"],encodeDefaulter:Et(vx,this)})},e.prototype._defaultLabelLine=function(t){Es(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e})(Me);function AK(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function TK(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return wt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function CK(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,v,p,d;if(c)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,h="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),d=[[v,p],[v,p]];else{var m=void 0,x=void 0,y=void 0,f=void 0,_=s.get("length");o==="left"?(m=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,y=m-_,v=y-5,h="right"):o==="right"?(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,y=m+_,v=y+5,h="left"):o==="top"?(m=(u[3][0]+u[0][0])/2,x=(u[3][1]+u[0][1])/2,f=x-_,p=f-5,h="center"):o==="bottom"?(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,f=x+_,p=f+5,h="center"):o==="rightTop"?(m=t==="horizontal"?u[3][0]:u[1][0],x=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(f=x-_,p=f-5,h="center"):(y=m+_,v=y+5,h="top")):o==="rightBottom"?(m=u[2][0],x=u[2][1],t==="horizontal"?(f=x+_,p=f+5,h="center"):(y=m+_,v=y+5,h="bottom")):o==="leftTop"?(m=u[0][0],x=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(f=x-_,p=f-5,h="center"):(y=m-_,v=y-5,h="right")):o==="leftBottom"?(m=t==="horizontal"?u[1][0]:u[3][0],x=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(f=x+_,p=f+5,h="center"):(y=m-_,v=y-5,h="right")):(m=(u[1][0]+u[2][0])/2,x=(u[1][1]+u[2][1])/2,t==="horizontal"?(f=x+_,p=f+5,h="center"):(y=m+_,v=y+5,h="left")),t==="horizontal"?(y=m,v=y):(f=x,p=f),d=[[m,x],[y,f]]}l.label={linePoints:d,x:v,y:p,verticalAlign:"middle",textAlign:h,inside:c}})}function MK(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=AK(t,e),s=t.get("orient"),l=o.width,u=o.height,c=TK(n,i),h=o.x,v=o.y,p=s==="horizontal"?[ut(t.get("minSize"),u),ut(t.get("maxSize"),u)]:[ut(t.get("minSize"),l),ut(t.get("maxSize"),l)],d=n.getDataExtent(a),m=t.get("min"),x=t.get("max");m==null&&(m=Math.min(d[0],0)),x==null&&(x=d[1]);var y=t.get("funnelAlign"),f=t.get("gap"),_=s==="horizontal"?l:u,S=(_-f*(n.count()-1))/n.count(),b=function(N,z){if(s==="horizontal"){var G=n.get(a,N)||0,U=ge(G,[m,x],p,!0),W=void 0;switch(y){case"top":W=v;break;case"center":W=v+(u-U)/2;break;case"bottom":W=v+(u-U);break}return[[z,W],[z,W+U]]}var Y=n.get(a,N)||0,q=ge(Y,[m,x],p,!0),Q;switch(y){case"left":Q=h;break;case"center":Q=h+(l-q)/2;break;case"right":Q=h+l-q;break}return[[Q,z],[Q+q,z]]};i==="ascending"&&(S=-S,f=-f,s==="horizontal"?h+=l:v+=u,c=c.reverse());for(var A=0;A<c.length;A++){var C=c[A],M=c[A+1],L=n.getItemModel(C);if(s==="horizontal"){var D=L.get(["itemStyle","width"]);D==null?D=S:(D=ut(D,l),i==="ascending"&&(D=-D));var P=b(C,h),E=b(M,h+D);h+=D+f,n.setItemLayout(C,{points:P.concat(E.slice().reverse())})}else{var O=L.get(["itemStyle","height"]);O==null?O=S:(O=ut(O,u),i==="ascending"&&(O=-O));var P=b(C,v),E=b(M,v+O);v+=O+f,n.setItemLayout(C,{points:P.concat(E.slice().reverse())})}}CK(n)})}function LK(r){r.registerChartView(SK),r.registerSeriesModel(bK),r.registerLayout(MK),r.registerProcessor(Fh("funnel"))}var DK=.3,IK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Lt,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=qM(t);s.diff(l).add(v).update(p).remove(d).execute();function v(x){var y=jM(s,o,x,c,u);Km(y,s,x,h)}function p(x,y){var f=l.getItemGraphicEl(y),_=BO(s,x,c,u);s.setItemGraphicEl(x,f),oe(f,{shape:{points:_}},t,x),ha(f),Km(f,s,x,h)}function d(x){var y=l.getItemGraphicEl(x);o.remove(y)}if(!this._initialized){this._initialized=!0;var m=PK(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(m)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=qM(n),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=jM(i,this._dataGroup,c,s,o);h.incremental=!0,Km(h,i,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(we);function PK(r,e,t){var n=r.model,a=r.getRect(),i=new Kt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Pe(i,{shape:{width:a.width,height:a.height}},e,t),i}function BO(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);RK(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function jM(r,e,t,n,a){var i=BO(r,t,n,a),o=new $r({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function qM(r){var e=r.get("smooth",!0);return e===!0&&(e=DK),e=pi(e),Zc(e)&&(e=0),{smooth:e}}function Km(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");Sr(r,a,"lineStyle"),Ne(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function RK(r,e){return e==="category"?r==null:r==null||isNaN(r)}var EK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return bi(null,this,{useEncodeDefaulter:ft(kK,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e})(Me);function kK(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return R(e.dimensions,function(n){var a=OK(n);t[n]=a}),t}}function OK(r){return+r.replace("dim","")}var NK=["lineStyle","opacity"],BK={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(NK,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};function zK(r){VK(r),FK(r)}function VK(r){if(!r.parallel){var e=!1;R(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function FK(r){var e=me(r.parallelAxis);R(e,function(t){if(Tt(t)){var n=t.parallelIndex||0,a=me(r.parallel)[n];a&&a.parallelAxisDefault&&Ot(t,a.parallelAxisDefault,!1)}})}var GK=5,HK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},R(WK,function(i,o){a.getZr().on(o,this._handlers[o]=ft(i,this))},this)),yu(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){ih(this,"_throttledDispatchExpand"),R(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(K({type:"parallelAxisExpand"},t))},e.type="parallel",e})(Ee),WK={mousedown:function(r){Qm(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Qm(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>GK)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Qm(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Qm(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var UK=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&Ot(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=fe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);R(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})($t),YK=(function(r){j(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(va);function $s(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Cl(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Cl(s,[0,o]),a=i=Cl(s,[a,i]),n=0}e[0]=Cl(e[0],t),e[1]=Cl(e[1],t);var l=Jm(e,n);e[n]+=r;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[n]=Cl(e[n],c);var h;return h=Jm(e,n),a!=null&&(h.sign!==l.sign||h.span<a)&&(e[1-n]=e[n]+l.sign*a),h=Jm(e,n),i!=null&&h.span>i&&(e[1-n]=e[n]+h.sign*i),e}function Jm(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Cl(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var t0=R,zO=Math.min,VO=Math.max,KM=Math.floor,ZK=Math.ceil,QM=Ve,XK=Math.PI,$K=(function(){function r(e,t,n){this.type="parallel",this._axesMap=yt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;t0(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new YK(o,Vd(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var a=n.getData();t0(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Jl(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Qe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=Iv(e.get("axisExpandWidth"),l),h=Iv(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow"),d;if(p)d=Iv(p[1]-p[0],l),p[1]=p[0]+d;else{d=Iv(c*(h-1),l);var m=e.get("axisExpandCenter")||KM(u/2);p=[c*m-d/2],p[1]=p[0]+d}var x=(s-d)/(u-h);x<3&&(x=0);var y=[KM(QM(p[0]/c,1))+1,ZK(QM(p[1]/c,1))-1],f=x/c*p[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:v,axisExpandWidth:c,axisCollapseWidth:x,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:f}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),t0(n,function(o,s){var l=(a.axisExpandable?qK:jK)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:XK/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],v=c[i],p=_n();Gs(p,p,v),Na(p,p,h),this._axesLayout[o]={position:h,rotation:v,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(x){s.push(e.mapDimension(x)),l.push(i.get(x).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var v=e.getValues(s,c),p=0,d=o.length;p<d;p++){var m=l[p].getActiveState(v[p]);if(m==="inactive"){h="inactive";break}}}t(h,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return ua([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return Ct(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=h[0]!=null;if(c)v&&c&&s<i*h[0]?(u="jump",l=s-i*h[2]):v&&c&&s>i*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?$s(l,a,o,"all"):u="none";else{var p=a[1]-a[0],d=o[1]*s/p;a=[VO(0,d-p/2)],a[1]=zO(o[1],a[0]+p),a[0]=a[1]-p}return{axisExpandWindow:a,behavior:u}},r})();function Iv(r,e){return zO(VO(r,e[0]),e[1])}function jK(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function qK(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return r<o[0]?(s=r*i,c=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function KK(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new $K(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",$e).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var QK={create:KK},i1=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Os([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=Ct(t);if(n)for(var a=n.length-1;a>=0;a--)Hn(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e})($t);qe(i1,Oh);var zs=!0,yh=Math.min,ru=Math.max,JK=Math.pow,tQ=1e4,eQ=6,rQ=6,JM="globalPan",nQ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},aQ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},tL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},iQ=0,iw=(function(r){j(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Lt,n._uid="brushController_"+iQ++,R(fQ,function(a,i){this._handlers[i]=ft(a,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||j$(n,JM,this._uid),R(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=Ot(Ct(tL),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;q$(t,JM,this._uid),R(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};R(t,function(a){n[a.panelId]=Ct(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=et(t,function(v){return Ot(Ct(tL),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new yi(a,t,u,l).add(c).update(c).remove(h).execute(),this;function l(v,p){return(v.id!=null?v.id:n+p)+"-"+v.brushType}function u(v,p){return l(v.__brushOption,p)}function c(v,p){var d=t[v];if(p!=null&&a[p]===s)i[v]=a[p];else{var m=i[v]=p!=null?(a[p].__brushOption=d,a[p]):GO(o,FO(o,d));ow(o,m)}}function h(v){a[v]!==s&&o.group.remove(a[v])}},e.prototype.unmount=function(){return this.enableBrush(!1),o1(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Yn);function FO(r,e){var t=Yd[e.brushType].createCover(r,e);return t.__brushOption=e,WO(t,e),r.group.add(t),t}function GO(r,e){var t=sw(e);return t.endCreating&&(t.endCreating(r,e),WO(e,e.__brushOption)),e}function HO(r,e){var t=e.__brushOption;sw(e).updateCoverShape(r,e,t.range,t)}function WO(r,e){var t=e.z;t==null&&(t=tQ),r.traverse(function(n){n.z=t,n.z2=t})}function ow(r,e){sw(e).updateCommon(r,e),HO(r,e)}function sw(r){return Yd[r.__brushOption.brushType]}function lw(r,e,t){var n=r._panels;if(!n)return zs;var a,i=r._transform;return R(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function UO(r,e){var t=r._panels;if(!t)return zs;var n=e.__brushOption.panelId;return n!=null?t[n]:zs}function o1(r){var e=r._covers,t=e.length;return R(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Vs(r,e){var t=et(r._covers,function(n){var a=n.__brushOption,i=Ct(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function oQ(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=JK(a*a+i*i,.5);return o>eQ}function YO(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function ZO(r,e,t,n){var a=new Lt;return a.add(new Kt({name:"main",style:uw(t),silent:!0,draggable:!0,cursor:"move",drift:Et(eL,r,e,a,["n","s","w","e"]),ondragend:Et(Vs,e,{isEnd:!0})})),R(n,function(i){a.add(new Kt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Et(eL,r,e,a,i),ondragend:Et(Vs,e,{isEnd:!0})}))}),a}function XO(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=ru(a,rQ),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],h=t[1][1],v=c-i+a/2,p=h-i+a/2,d=c-o,m=h-s,x=d+a,y=m+a;ri(r,e,"main",o,s,d,m),n.transformable&&(ri(r,e,"w",l,u,i,y),ri(r,e,"e",v,u,i,y),ri(r,e,"n",l,u,x,i),ri(r,e,"s",l,p,x,i),ri(r,e,"nw",l,u,i,i),ri(r,e,"ne",v,u,i,i),ri(r,e,"sw",l,p,i,i),ri(r,e,"se",v,p,i,i))}function s1(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(uw(t)),a.attr({silent:!n,cursor:n?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?l1(r,i[0]):lQ(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?aQ[s]+"-resize":null})})}function ri(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(cQ(cw(r,e,[[n,a],[n+i,a+o]])))}function uw(r){return bt({strokeNoScale:!0},r.brushStyle)}function $O(r,e,t,n){var a=[yh(r,t),yh(e,n)],i=[ru(r,t),ru(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function sQ(r){return Ds(r.group)}function l1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=bd(t[e],sQ(r));return n[a]}function lQ(r,e){var t=[l1(r,e[0]),l1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function eL(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=jO(e,a,i);R(n,function(u){var c=nQ[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange($O(s[0][0],s[1][0],s[0][1],s[1][1])),ow(e,t),Vs(e,{isEnd:!1})}function uQ(r,e,t,n){var a=e.__brushOption.range,i=jO(r,t,n);R(a,function(o){o[0]+=i[0],o[1]+=i[1]}),ow(r,e),Vs(r,{isEnd:!1})}function jO(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function cw(r,e,t){var n=UO(r,e);return n&&n!==zs?n.clipPath(t,r._transform):Ct(t)}function cQ(r){var e=yh(r[0][0],r[1][0]),t=yh(r[0][1],r[1][1]),n=ru(r[0][0],r[1][0]),a=ru(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function hQ(r,e,t){if(!(!r._brushType||vQ(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=lw(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===zs||s.panelId===i.panelId)&&Yd[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function u1(r){var e=r.event;e.preventDefault&&e.preventDefault()}function c1(r,e,t){return r.childOfName("main").contain(e,t)}function qO(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),oQ(r)||a){if(i&&!a){o.brushMode==="single"&&o1(r);var l=Ct(o);l.brushType=rL(l.brushType,i),l.panelId=i===zs?null:i.panelId,a=r._creatingCover=FO(r,l),r._covers.push(a)}if(a){var u=Yd[rL(r._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(cw(r,a,r._track)),n&&(GO(r,a),u.updateCommon(r,a)),HO(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&lw(r,e,t)&&o1(r)&&(s={isEnd:n,removeOnClick:!0});return s}function rL(r,e){return r==="auto"?e.defaultBrushType:r}var fQ={mousedown:function(r){if(this._dragging)nL(this,r);else if(!r.target||!r.target.draggable){u1(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=lw(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(hQ(this,r,n),this._dragging){u1(r);var a=qO(this,r,n,!1);a&&Vs(this,a)}},mouseup:function(r){nL(this,r)}};function nL(r,e){if(r._dragging){u1(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=qO(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Vs(r,i)}}function vQ(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Yd={lineX:aL(0),lineY:aL(1),rect:{createCover:function(r,e){function t(n){return n}return ZO({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=YO(r);return $O(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){XO(r,e,t,n)},updateCommon:s1,contain:c1},polygon:{createCover:function(r,e){var t=new Lt;return t.add(new $r({name:"main",style:uw(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Xr({name:"main",draggable:!0,drift:Et(uQ,r,e),ondragend:Et(Vs,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:cw(r,e,t)})},updateCommon:s1,contain:c1}};function aL(r){return{createCover:function(e,t){return ZO({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=YO(e),n=yh(t[0][r],t[1][r]),a=ru(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=UO(e,t);if(o!==zs&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),XO(e,t,l,a)},updateCommon:s1,contain:c1}}function KO(r){return r=hw(r),function(e){return sR(e,r)}}function QO(r,e){return r=hw(r),function(t){var n=e??t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function JO(r,e,t){var n=hw(r);return function(a,i){return n.contain(i[0],i[1])&&!Gd(a,e,t)}}function hw(r){return zt.create(r)}var pQ=["axisLine","axisTickLabel","axisName"],dQ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new iw(n.getZr())).on("brush",ft(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!gQ(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!!t.get("show")){var s=mQ(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,v=l.getAxisLayout(h),p=K({strokeContainThreshold:c},v),d=new Wr(t,p);R(pQ,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(p,u,t,s,c,a),Ih(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=zt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:KO(h),isTargetByCursor:JO(h,s,i),getLinearBrushOtherExtent:QO(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(yQ(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=et(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(Ee);function gQ(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function yQ(r){var e=r.axis;return et(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function mQ(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var _Q={type:"axisAreaSelect",event:"axisAreaSelected"};function xQ(r){r.registerAction(_Q,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var wQ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function tN(r){r.registerComponentView(HK),r.registerComponentModel(UK),r.registerCoordinateSystem("parallel",QK),r.registerPreprocessor(zK),r.registerComponentModel(i1),r.registerComponentView(dQ),eu(r,"parallel",i1,wQ),xQ(r)}function SQ(r){Wt(tN),r.registerChartView(IK),r.registerSeriesModel(EK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,BK)}var bQ=(function(){function r(){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 r})(),AQ=(function(r){j(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new bQ},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){di(this)},e.prototype.downplay=function(){gi(this)},e})(Ut),TQ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),v=t.getData("edge"),p=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var m=new AQ,x=Dt(m);x.dataIndex=d.dataIndex,x.seriesIndex=t.seriesIndex,x.dataType="edge";var y=d.getModel(),f=y.getModel("lineStyle"),_=f.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),A=b.get("localX"),C=b.get("localY"),M=d.node2.getLayout(),L=d.node2.getModel(),D=L.get("localX"),P=L.get("localY"),E=d.getLayout(),O,N,z,G,U,W,Y,q;m.shape.extent=Math.max(1,E.dy),m.shape.orient=p,p==="vertical"?(O=(A!=null?A*u:S.x)+E.sy,N=(C!=null?C*c:S.y)+S.dy,z=(D!=null?D*u:M.x)+E.ty,G=P!=null?P*c:M.y,U=O,W=N*(1-_)+G*_,Y=z,q=N*_+G*(1-_)):(O=(A!=null?A*u:S.x)+S.dx,N=(C!=null?C*c:S.y)+E.sy,z=D!=null?D*u:M.x,G=(P!=null?P*c:M.y)+E.ty,U=O*(1-_)+z*_,W=N,Y=O*_+z*(1-_),q=G),m.setShape({x1:O,y1:N,x2:z,y2:G,cpx1:U,cpy1:W,cpx2:Y,cpy2:q}),m.useStyle(f.getItemStyle()),iL(m.style,p,d);var Q=""+y.get("value"),rt=lr(y,"edgeLabel");br(m,rt,{labelFetcher:{getFormattedLabel:function(_t,Nt,Jt,Mt,mt,Pt){return t.getFormattedLabel(_t,Nt,"edge",Mt,Ea(mt,rt.normal&&rt.normal.get("formatter"),Q),Pt)}},labelDataIndex:d.dataIndex,defaultText:Q}),m.setTextConfig({position:"inside"});var ct=y.getModel("emphasis");Sr(m,y,"lineStyle",function(_t){var Nt=_t.getItemStyle();return iL(Nt,p,d),Nt}),s.add(m),v.setItemGraphicEl(d.dataIndex,m);var vt=ct.get("focus");Ne(m,vt==="adjacency"?d.getAdjacentDataIndices():vt==="trajectory"?d.getTrajectoryDataIndices():vt,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(d){var m=d.getLayout(),x=d.getModel(),y=x.get("localX"),f=x.get("localY"),_=x.getModel("emphasis"),S=x.get(["itemStyle","borderRadius"])||0,b=new Kt({shape:{x:y!=null?y*u:m.x,y:f!=null?f*c:m.y,width:m.dx,height:m.dy,r:S},style:x.getModel("itemStyle").getItemStyle(),z2:10});br(b,lr(x),{labelFetcher:{getFormattedLabel:function(C,M){return t.getFormattedLabel(C,M,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),Sr(b,x),s.add(b),h.setItemGraphicEl(d.dataIndex,b),Dt(b).dataType="node";var A=_.get("focus");Ne(b,A==="adjacency"?d.getAdjacentDataIndices():A==="trajectory"?d.getTrajectoryDataIndices():A,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,m){var x=h.getItemModel(m);x.get("draggable")&&(d.drift=function(y,f){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=f,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(m),localX:this.shape.x/u,localY:this.shape.y/c})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(CQ(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(we);function iL(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");ht(n)&&ht(a)&&(r.fill=new Dh(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function CQ(r,e,t){var n=new Kt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Pe(n,{shape:{width:r.width+20}},e,t),n}var MQ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new ye(o[l],this,n));var u=NO(i,a,this,!0,c);return u.data;function c(h,v){h.wrapMethod("getItemModel",function(p,d){var m=p.parentModel,x=m.getData().getItemLayout(d);if(x){var y=x.depth,f=m.levelModels[y];f&&(p.parentModel=f)}return p}),v.wrapMethod("getItemModel",function(p,d){var m=p.parentModel,x=m.getGraph().getEdgeByIndex(d),y=x.node1.getLayout();if(y){var f=y.depth,_=m.levelModels[f];_&&(p.parentModel=_)}return p})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(p){return isNaN(p)||p==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ur("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,v=this.getDataParams(t,a).data.name;return ur("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e})(Me);function LQ(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=DQ(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;PQ(u);var h=fe(u,function(m){return m.getLayout().value===0}),v=h.length!==0?0:t.get("layoutIterations"),p=t.get("orient"),d=t.get("nodeAlign");IQ(u,c,n,a,o,s,v,p,d)})}function DQ(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function IQ(r,e,t,n,a,i,o,s,l){RQ(r,e,t,a,i,s,l),NQ(r,e,i,a,n,o,s),YQ(r,s)}function PQ(r){R(r,function(e){var t=oo(e.outEdges,Yp),n=oo(e.inEdges,Yp),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function RQ(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],c=[],h=0,v=0;v<e.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var p=-1;u.length;){for(var d=0;d<u.length;d++){var m=u[d],x=m.hostGraph.data.getRawDataItem(m.dataIndex),y=x.depth!=null&&x.depth>=0;y&&x.depth>p&&(p=x.depth),m.setLayout({depth:y?x.depth:h},!0),i==="vertical"?m.setLayout({dy:t},!0):m.setLayout({dx:t},!0);for(var f=0;f<m.outEdges.length;f++){var _=m.outEdges[f],S=e.indexOf(_);s[S]=0;var b=_.node2,A=r.indexOf(b);--l[A]===0&&c.indexOf(b)<0&&c.push(b)}}++h,u=c,c=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=p>h-1?p:h-1;o&&o!=="left"&&EQ(r,o,i,C);var M=i==="vertical"?(a-t)/C:(n-t)/C;OQ(r,M,i)}function eN(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function EQ(r,e,t,n){if(e==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}R(r,function(h){eN(h)||h.setLayout({depth:Math.max(0,n-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&kQ(r,n)}function kQ(r,e){R(r,function(t){!eN(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function OQ(r,e,t){R(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function NQ(r,e,t,n,a,i,o){var s=BQ(r,o);zQ(s,e,t,n,a,o),e0(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,VQ(s,l,o),e0(s,a,t,n,o),UQ(s,l,o),e0(s,a,t,n,o)}function BQ(r,e){var t=[],n=e==="vertical"?"y":"x",a=h_(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),R(a.keys,function(i){t.push(a.buckets.get(i))}),t}function zQ(r,e,t,n,a,i){var o=1/0;R(r,function(s){var l=s.length,u=0;R(s,function(h){u+=h.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;c<o&&(o=c)}),R(r,function(s){R(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),R(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function e0(r,e,t,n,a){var i=a==="vertical"?"x":"y";R(r,function(o){o.sort(function(m,x){return m.getLayout()[i]-x.getLayout()[i]});for(var s,l,u,c=0,h=o.length,v=a==="vertical"?"dx":"dy",p=0;p<h;p++)l=o[p],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[v]+e;var d=a==="vertical"?n:t;if(u=c-e-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=h-2;p>=0;--p)l=o[p],u=l.getLayout()[i]+l.getLayout()[v]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function VQ(r,e,t){R(r.slice().reverse(),function(n){R(n,function(a){if(a.outEdges.length){var i=oo(a.outEdges,FQ,t)/oo(a.outEdges,Yp);if(isNaN(i)){var o=a.outEdges.length;i=o?oo(a.outEdges,GQ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-vo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-vo(a,t))*e;a.setLayout({y:l},!0)}}})})}function FQ(r,e){return vo(r.node2,e)*r.getValue()}function GQ(r,e){return vo(r.node2,e)}function HQ(r,e){return vo(r.node1,e)*r.getValue()}function WQ(r,e){return vo(r.node1,e)}function vo(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Yp(r){return r.getValue()}function oo(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function UQ(r,e,t){R(r,function(n){R(n,function(a){if(a.inEdges.length){var i=oo(a.inEdges,HQ,t)/oo(a.inEdges,Yp);if(isNaN(i)){var o=a.inEdges.length;i=o?oo(a.inEdges,WQ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-vo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-vo(a,t))*e;a.setLayout({y:l},!0)}}})})}function YQ(r,e){var t=e==="vertical"?"x":"y";R(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),R(r,function(n){var a=0,i=0;R(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),R(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function ZQ(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;R(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),R(n,function(s){var l=new sr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&R(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function XQ(r){r.registerChartView(TQ),r.registerSeriesModel(MQ),r.registerLayout(LQ),r.registerVisual(ZQ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var rN=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],v=u[1-c],p=[a,i],d=p[c].get("type"),m=p[1-c].get("type"),x=e.data;if(x&&l){var y=[];R(x,function(S,b){var A;tt(S)?(A=S.slice(),S.unshift(b)):tt(S.value)?(A=K({},S),A.value=A.value.slice(),S.value.unshift(b)):A=S,y.push(A)}),e.data=y}var f=this.defaultValueDimensions,_=[{name:h,type:kp(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:kp(m),dimsDef:f.slice()}];return xu(this,{coordDimensions:_,dimensionsCount:f.length+1,encodeDefaulter:Et(ER,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),nN=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e})(Me);qe(nN,rN,!0);var $Q=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),h=oL(c,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(ha(h),aN(v,h,i,u)):h=oL(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e})(we),jQ=(function(){function r(){}return r})(),qQ=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new jQ},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e})(Ut);function oL(r,e,t,n,a){var i=r.ends,o=new qQ({shape:{points:a?KQ(i,n,r):i}});return aN(r,o,e,t,a),o}function aN(r,e,t,n,a){var i=t.hostModel,o=Ws[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");Sr(e,s),Ne(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function KQ(r,e,t){return et(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}var Uc=R;function QQ(r){var e=JQ(r);Uc(e,function(t){var n=t.seriesModels;n.length&&(tJ(t),Uc(n,function(a,i){eJ(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function JQ(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Gt(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function tJ(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Uc(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Uc(t,function(d){var m=d.get("boxWidth");tt(m)||(m=[m,m]),o.push([ut(m[0],s)||0,ut(m[1],s)||0])});var c=s*.8-2,h=c/n*.3,v=(c-h*(n-1))/n,p=v/2-c/2;Uc(t,function(d,m){i.push(p),p+=h+v,a.push(Math.min(Math.max(v,o[m][0]),o[m][1]))})}function eJ(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<a.count();h++){var v=a.get(u,h),p=_(v,c[2],h),d=_(v,c[0],h),m=_(v,c[1],h),x=_(v,c[3],h),y=_(v,c[4],h),f=[];S(f,m,!1),S(f,x,!0),f.push(d,m,y,x),b(f,d),b(f,y),b(f,p),a.setItemLayout(h,{initBaseline:p[s],ends:f})}function _(A,C,M){var L=a.get(C,M),D=[];D[o]=A,D[s]=L;var P;return isNaN(A)||isNaN(L)?P=[NaN,NaN]:(P=n.dataToPoint(D),P[o]+=e),P}function S(A,C,M){var L=C.slice(),D=C.slice();L[o]+=i,D[o]-=i,M?A.push(L,D):A.push(D,L)}function b(A,C){var M=C.slice(),L=C.slice();M[o]-=i,L[o]+=i,A.push(M,L)}}function rJ(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=Hn(r[o].slice()),l=Iy(s,.25),u=Iy(s,.5),c=Iy(s,.75),h=s[0],v=s[s.length-1],p=(a??1.5)*(c-l),d=i?h:Math.max(h,l-p),m=i?v:Math.min(v,c+p),x=e.itemNameFormatter,y=wt(x)?x({value:o}):ht(x)?x.replace("{value}",o+""):o+"";t.push([y,d,l,u,c,m]);for(var f=0;f<s.length;f++){var _=s[f];if(_<d||_>m){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var nJ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Er){var n="";he(n)}var a=rJ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function aJ(r){r.registerSeriesModel(nN),r.registerChartView($Q),r.registerLayout(QQ),r.registerTransform(nJ)}var iJ=["itemStyle","borderColor"],oJ=["itemStyle","borderColor0"],sJ=["itemStyle","borderColorDoji"],lJ=["itemStyle","color"],uJ=["itemStyle","color0"];function fw(r,e){return e.get(r>0?lJ:uJ)}function vw(r,e){return e.get(r===0?sJ:r>0?iJ:oJ)}var cJ={seriesType:"candlestick",plan:gu(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=fw(s,o),l.stroke=vw(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");K(u,l)}}}}}},hJ=["color","borderColor"],fJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){go(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var h=n.getItemLayout(c);if(s&&sL(u,h))return;var v=r0(h,c,!0);Pe(v,{shape:{points:h.ends}},t,c),n0(v,n,c,o),i.add(v),n.setItemGraphicEl(c,v)}}).update(function(c,h){var v=a.getItemGraphicEl(h);if(!n.hasValue(c)){i.remove(v);return}var p=n.getItemLayout(c);if(s&&sL(u,p)){i.remove(v);return}v?(oe(v,{shape:{points:p.ends}},t,c),ha(v)):v=r0(p),n0(v,n,c,o),i.add(v),n.setItemGraphicEl(c,v)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),lL(t,this.group);var n=t.get("clip",!0)?zh(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=r0(s);n0(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){lL(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e})(we),vJ=(function(){function r(){}return r})(),pJ=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new vJ},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(Ut);function r0(r,e,t){var n=r.ends;return new pJ({shape:{points:t?dJ(n,r):n},z2:100})}function sL(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function n0(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Sr(r,a);var i=e.getItemLayout(t).sign;R(r.states,function(s,l){var u=a.getModel(l),c=fw(i,u),h=vw(i,u)||c,v=s.style||(s.style={});c&&(v.fill=c),h&&(v.stroke=h)});var o=a.getModel("emphasis");Ne(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function dJ(r,e){return et(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var gJ=(function(){function r(){}return r})(),a0=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new gJ},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e})(Ut);function lL(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new a0({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new a0({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new a0({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),i0(1,o,r),i0(-1,s,r),i0(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function i0(r,e,t,n){var a=vw(r,t)||fw(r,t),i=t.getModel("itemStyle").getItemStyle(hJ);e.useStyle(i),e.style.fill=null,e.style.stroke=a}var iN=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(Me);qe(iN,rN,!0);function yJ(r){!r||!tt(r.series)||R(r.series,function(e){Tt(e)&&e.type==="k"&&(e.type="candlestick")})}var mJ={seriesType:"candlestick",plan:gu(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=_J(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=et(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:p};function p(m,x){for(var y,f=x.getStore();(y=m.next())!=null;){var _=f.get(s,y),S=f.get(u,y),b=f.get(c,y),A=f.get(h,y),C=f.get(v,y),M=Math.min(S,b),L=Math.max(S,b),D=U(M,_),P=U(L,_),E=U(A,_),O=U(C,_),N=[];W(N,P,0),W(N,D,1),N.push(q(O),q(P),q(E),q(D));var z=x.getItemModel(y),G=!!z.get(["itemStyle","borderColorDoji"]);x.setItemLayout(y,{sign:uL(f,y,S,b,c,G),initBaseline:S>b?P[i]:D[i],ends:N,brushRect:Y(A,C,_)})}function U(Q,rt){var ct=[];return ct[a]=rt,ct[i]=Q,isNaN(rt)||isNaN(Q)?[NaN,NaN]:e.dataToPoint(ct)}function W(Q,rt,ct){var vt=rt.slice(),_t=rt.slice();vt[a]=Qv(vt[a]+n/2,1,!1),_t[a]=Qv(_t[a]-n/2,1,!0),ct?Q.push(vt,_t):Q.push(_t,vt)}function Y(Q,rt,ct){var vt=U(Q,ct),_t=U(rt,ct);return vt[a]-=n/2,_t[a]-=n/2,{x:vt[0],y:vt[1],width:n,height:_t[1]-vt[1]}}function q(Q){return Q[a]=Qv(Q[a],1),Q}}function d(m,x){for(var y=Pa(m.count*4),f=0,_,S=[],b=[],A,C=x.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);(A=m.next())!=null;){var L=C.get(s,A),D=C.get(u,A),P=C.get(c,A),E=C.get(h,A),O=C.get(v,A);if(isNaN(L)||isNaN(E)||isNaN(O)){y[f++]=NaN,f+=3;continue}y[f++]=uL(C,A,D,P,c,M),S[a]=L,S[i]=E,_=e.dataToPoint(S,null,b),y[f++]=_?_[0]:NaN,y[f++]=_?_[1]:NaN,S[i]=O,_=e.dataToPoint(S,null,b),y[f++]=_?_[1]:NaN}x.setLayout("largePoints",y)}}};function uL(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function _J(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=ut(Rt(r.get("barMaxWidth"),a),a),o=ut(Rt(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?ut(s,a):Math.max(Math.min(a/2,i),o)}function xJ(r){r.registerChartView(fJ),r.registerSeriesModel(iN),r.registerPreprocessor(yJ),r.registerVisual(cJ),r.registerLayout(mJ)}function cL(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var wJ=(function(r){j(e,r);function e(t,n){var a=r.call(this)||this,i=new Nh(t,n),o=new Lt;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=je(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}cL(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}cL(a,t)},e.prototype.highlight=function(){di(this)},e.prototype.downplay=function(){gi(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=mu(t.getItemVisual(n,"symbolSize")),c=t.getItemVisual(n,"style"),h=c&&c.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(x){x.setStyle("fill",h)});var p=Us(t.getItemVisual(n,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[1]);var d=t.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var m={};m.showEffectOn=i.get("showEffectOn"),m.rippleScale=s.get(["rippleEffect","scale"]),m.brushType=s.get(["rippleEffect","brushType"]),m.period=s.get(["rippleEffect","period"])*1e3,m.effectOffset=n/t.count(),m.z=i.getShallow("z")||0,m.zlevel=i.getShallow("zlevel")||0,m.symbolType=l,m.color=h,m.rippleEffectColor=s.get(["rippleEffect","color"]),m.rippleNumber=s.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(x){x==="emphasis"?m.showEffectOn!=="render"&&a.startEffectAnimation(m):x==="normal"&&m.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=m,Ne(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(Lt),SJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Bh(wJ)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=Vh("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=ZH(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(we),bJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return bi(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(Me);function AJ(r){r.registerChartView(SJ),r.registerSeriesModel(bJ),r.registerLayout(Vh("effectScatter"))}var oN=(function(r){j(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new nw(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");tt(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=je(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),h=pr(n.get("delay"),function(p){return p/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;wt(h)?v=h(a):v=h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return $i(t.__p1,t.__cp1)+$i(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=vr,c=q0;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var h=t.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),v=t.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=$i(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*$i(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e})(Lt),sN=(function(r){j(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new $r({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};oe(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,Ne(this,l,u,c)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e})(Lt),TJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new sN(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=$i(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),h=a[l],v=a[l+1];t.x=h[0]*(1-c)+c*v[0],t.y=h[1]*(1-c)+c*v[1];var p=t.__t<1?v[0]-h[0]:h[0]-v[0],d=t.__t<1?v[1]-h[1]:h[1]-v[1];t.rotation=-Math.atan2(d,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e})(oN),CJ=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),MJ=(function(r){j(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new CJ},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],h=a[o++],v=a[o++];if(t.moveTo(u,c),i>0){var p=(u+h)/2-(c-v)*i,d=(c+v)/2-(h-u)*i;t.quadraticCurveTo(p,d,h,v)}else t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var h=i[u++],v=i[u++],p=1;p<c;p++){var d=i[u++],m=i[u++];if(Yi(h,v,d,m,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var h=i[u++],v=i[u++],d=i[u++],m=i[u++];if(o>0){var x=(h+d)/2-(v-m)*o,y=(v+m)/2-(d-h)*o;if(EP(h,v,x,y,d,m,s,t,n))return l}else if(Yi(h,v,d,m,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],h=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(h,o),l=Math.max(h,l)}t=this._rect=new zt(i,o,s,l)}return t},e})(Ut),LJ=(function(){function r(){this.group=new Lt}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new MJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Dt(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),lN={seriesType:"lines",plan:gu(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c<a.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,v=[],c=a.start;c<a.end;c++){var p=r.getLineCoords(c,o);t&&(s[h++]=p);for(var d=0;d<p;d++)v=e.dataToPoint(o[d],!1,v),s[h++]=v[0],s[h++]=v[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var m=i.getItemModel(c),p=r.getLineCoords(c,o),x=[];if(t)for(var y=0;y<p;y++)x.push(e.dataToPoint(o[y]));else{x[0]=e.dataToPoint(o[0]),x[1]=e.dataToPoint(o[1]);var f=m.get(["lineStyle","curveness"]);+f&&(x[2]=[(x[0][0]+x[1][0])/2-(x[0][1]-x[1][1])*f,(x[0][1]+x[1][1])/2-(x[1][0]-x[0][0])*f])}i.setItemLayout(c,x)}}}}}},DJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&zh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=lN.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new LJ:new aw(o?i?TJ:sN:i?oN:nw),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e})(we),IJ=typeof Uint32Array>"u"?Array:Uint32Array,PJ=typeof Float64Array>"u"?Array:Float64Array;function hL(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=et(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),N1([a,t[0],t[1]])}))}var RJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],hL(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(hL(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))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Xc(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Xc(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),ae(t[0])){for(var a=t.length,i=new IJ(a),o=new PJ(a),s=0,l=0,u=0,c=0;c<a;){u++;var h=t[c++];i[l++]=s+n,i[l++]=h;for(var v=0;v<h;v++){var p=t[c++],d=t[c++];o[s++]=p,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){var a=new Hr(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(Me);function Pv(r){return r instanceof Array||(r=[r,r]),r}var EJ={seriesType:"lines",reset:function(r){var e=Pv(r.get("symbol")),t=Pv(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=Pv(s.getShallow("symbol",!0)),u=Pv(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function kJ(r){r.registerChartView(DJ),r.registerSeriesModel(RJ),r.registerLayout(lN),r.registerVisual(EJ)}var OJ=256,NJ=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=lo.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),p=e.length;h.width=t,h.height=n;for(var d=0;d<p;++d){var m=e[d],x=m[0],y=m[1],f=m[2],_=a(f);v.globalAlpha=_,v.drawImage(s,x-c,y-c)}if(!h.width||!h.height)return h;for(var S=v.getImageData(0,0,h.width,h.height),b=S.data,A=0,C=b.length,M=this.minOpacity,L=this.maxOpacity,D=L-M;A<C;){var _=b[A+3]/256,P=Math.floor(_*(OJ-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*D+M),b[A++]=E[P],b[A++]=E[P+1],b[A++]=E[P+2],b[A++]=E[P+3]*_*256}else A+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=lo.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r})();function BJ(r,e,t){var n=r[1]-r[0];e=et(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function zJ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function fL(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var VJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):fL(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(fL(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){go(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,a,i,o){var s=t.coordinateSystem,l=Zs(s,"cartesian2d"),u,c,h,v;if(l){var p=s.getAxis("x"),d=s.getAxis("y");u=p.getBandWidth()+.5,c=d.getBandWidth()+.5,h=p.scale.getExtent(),v=d.scale.getExtent()}for(var m=this.group,x=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),f=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=lr(t),A=t.getModel("emphasis"),C=A.get("focus"),M=A.get("blurScope"),L=A.get("disabled"),D=l?[x.mapDimension("x"),x.mapDimension("y"),x.mapDimension("value")]:[x.mapDimension("time"),x.mapDimension("value")],P=a;P<i;P++){var E=void 0,O=x.getItemVisual(P,"style");if(l){var N=x.get(D[0],P),z=x.get(D[1],P);if(isNaN(x.get(D[2],P))||isNaN(N)||isNaN(z)||N<h[0]||N>h[1]||z<v[0]||z>v[1])continue;var G=s.dataToPoint([N,z]);E=new Kt({shape:{x:G[0]-u/2,y:G[1]-c/2,width:u,height:c},style:O})}else{if(isNaN(x.get(D[1],P)))continue;E=new Kt({z2:1,shape:s.dataToRect([x.get(D[0],P)]).contentShape,style:O})}if(x.hasItemOption){var U=x.getItemModel(P),W=U.getModel("emphasis");y=W.getModel("itemStyle").getItemStyle(),f=U.getModel(["blur","itemStyle"]).getItemStyle(),_=U.getModel(["select","itemStyle"]).getItemStyle(),S=U.get(["itemStyle","borderRadius"]),C=W.get("focus"),M=W.get("blurScope"),L=W.get("disabled"),b=lr(U)}E.shape.r=S;var Y=t.getRawValue(P),q="-";Y&&Y[2]!=null&&(q=Y[2]+""),br(E,b,{labelFetcher:t,labelDataIndex:P,defaultOpacity:O.opacity,defaultText:q}),E.ensureState("emphasis").style=y,E.ensureState("blur").style=f,E.ensureState("select").style=_,Ne(E,C,M,L),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),m.add(E),x.setItemGraphicEl(P,E),this._progressiveEls&&this._progressiveEls.push(E)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new NJ;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var v=Math.max(c.x,0),p=Math.max(c.y,0),d=Math.min(c.width+c.x,i.getWidth()),m=Math.min(c.height+c.y,i.getHeight()),x=d-v,y=m-p,f=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(f,function(C,M,L){var D=t.dataToPoint([C,M]);return D[0]-=v,D[1]-=p,D.push(L),D}),S=a.getExtent(),b=a.type==="visualMap.continuous"?zJ(S,a.option.range):BJ(S,a.getPieceList(),a.option.selected);u.update(_,x,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var A=new dr({style:{width:x,height:y,x:v,y:p,image:u.canvas},silent:!0});this.group.add(A)},e.type="heatmap",e})(we),FJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return bi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Rh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e})(Me);function GJ(r){r.registerChartView(VJ),r.registerSeriesModel(FJ)}var HJ=["itemStyle","borderWidth"],vL=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],o0=new Si,WJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:vL[+c],categoryDim:vL[1-+c]};o.diff(s).add(function(d){if(o.hasValue(d)){var m=dL(o,d),x=pL(o,d,m,v),y=gL(o,v,x);o.setItemGraphicEl(d,y),i.add(y),mL(y,v,x)}}).update(function(d,m){var x=s.getItemGraphicEl(m);if(!o.hasValue(d)){i.remove(x);return}var y=dL(o,d),f=pL(o,d,y,v),_=pN(o,f);x&&_!==x.__pictorialShapeStr&&(i.remove(x),o.setItemGraphicEl(d,null),x=null),x?qJ(x,v,f):x=gL(o,v,f,!0),o.setItemGraphicEl(d,x),x.__pictorialSymbolMeta=f,i.add(x),mL(x,v,f)}).remove(function(d){var m=s.getItemGraphicEl(d);m&&yL(s,d,m.__pictorialSymbolMeta.animationModel,m)}).execute();var p=t.get("clip",!0)?zh(t.coordinateSystem,!1,t):null;return p?i.setClipPath(p):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){yL(i,Dt(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e})(we);function pL(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};UJ(t,i,a,n,v),YJ(r,e,a,i,o,v.boundingLength,v.pxSign,c,n,v),ZJ(t,v.symbolScale,u,n,v);var p=v.symbolSize,d=Us(t.get("symbolOffset"),p);return XJ(t,p,a,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function UJ(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(tt(o)){var h=[s0(s,o[0])-l,s0(s,o[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=s0(s,o)-l:e?c=n.coordSysExtent[i.index][u]-l:c=t[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=t[i.wh]);var v=i.xy==="x",p=s.inverse;a.pxSign=v&&!p||!v&&p?c>=0?1:-1:c>0?1:-1}function s0(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function YJ(r,e,t,n,a,i,o,s,l,u){var c=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),p=r.getItemVisual(e,"symbolSize"),d;tt(p)?d=p.slice():p==null?d=["100%","100%"]:d=[p,p],d[h.index]=ut(d[h.index],v),d[c.index]=ut(d[c.index],n?v:Math.abs(i)),u.symbolSize=d;var m=u.symbolScale=[d[0]/s,d[1]/s];m[c.index]*=(l.isHorizontal?-1:1)*o}function ZJ(r,e,t,n,a){var i=r.get(HJ)||0;i&&(o0.attr({scaleX:e[0],scaleY:e[1],rotation:t}),o0.updateTransform(),i/=o0.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function XJ(r,e,t,n,a,i,o,s,l,u,c,h){var v=c.categoryDim,p=c.valueDim,d=h.pxSign,m=Math.max(e[p.index]+s,0),x=m;if(n){var y=Math.abs(l),f=pr(r.get("symbolMargin"),"15%")+"",_=!1;f.lastIndexOf("!")===f.length-1&&(_=!0,f=f.slice(0,f.length-1));var S=ut(f,e[p.index]),b=Math.max(m+S*2,0),A=_?0:S*2,C=_P(n),M=C?n:_L((y+A)/b),L=y-M*m;S=L/2/(_?M:Math.max(M-1,1)),b=m+S*2,A=_?0:S*2,!C&&n!=="fixed"&&(M=u?_L((Math.abs(u)+A)/b):0),x=M*b-A,h.repeatTimes=M,h.symbolMargin=S}var D=d*(x/2),P=h.pathPosition=[];P[v.index]=t[v.wh]/2,P[p.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var E=h.bundlePosition=[];E[v.index]=t[v.xy],E[p.index]=t[p.xy];var O=h.barRectShape=K({},t);O[p.wh]=d*Math.max(Math.abs(t[p.wh]),Math.abs(P[p.index]+D)),O[v.wh]=t[v.wh];var N=h.clipShape={};N[v.xy]=-t[v.xy],N[v.wh]=c.ecSize[v.wh],N[p.xy]=0,N[p.wh]=t[p.wh]}function uN(r){var e=r.symbolPatternSize,t=je(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function cN(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(pw(r,function(m){m.__pictorialAnimationIndex=c,m.__pictorialRepeatTimes=u,c<u?Xl(m,null,d(c),t,n):Xl(m,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(m)}),c++});c<u;c++){var v=uN(t);v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,a.add(v);var p=d(c);Xl(v,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},t,n)}function d(m){var x=s.slice(),y=t.pxSign,f=m;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(f=u-1-m),x[l.index]=h*(f-u/2+.5)+s[l.index],{x:x[0],y:x[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function hN(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Xl(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=uN(t),a.add(i),Xl(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function fN(r,e,t){var n=K({},e.barRectShape),a=r.__pictorialBarRect;a?Xl(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Kt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function vN(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)oe(a,{shape:i},s,l);else{i[o.wh]=0,a=new Kt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Ws[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function dL(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=$J,t.isAnimationEnabled=jJ,t}function $J(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function jJ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function gL(r,e,t,n){var a=new Lt,i=new Lt;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?cN(a,e,t):hN(a,e,t),fN(a,t,n),vN(a,e,t,n),a.__pictorialShapeStr=pN(r,t),a.__pictorialSymbolMeta=t,a}function qJ(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;oe(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?cN(r,e,t,!0):hN(r,e,t,!0),fN(r,t,!0),vN(r,e,t,!0)}function yL(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];pw(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),R(i,function(o){co(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function pN(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function pw(r,e,t){R(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function Xl(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&Ws[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function mL(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");pw(r,function(m){if(m instanceof dr){var x=m.style;m.useStyle(K({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},t.style))}else m.useStyle(t.style);var y=m.ensureState("emphasis");y.style=o,v&&(y.scaleX=m.scaleX*1.1,y.scaleY=m.scaleY*1.1),m.ensureState("blur").style=s,m.ensureState("select").style=l,u&&(m.cursor=u),m.z2=t.z2});var p=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,br(d,lr(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:tu(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),Ne(r,c,h,i.get("disabled"))}function _L(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var KJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=yo(hh.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e})(hh);function QJ(r){r.registerChartView(WJ),r.registerSeriesModel(KJ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(KE,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QE("pictorialBar"))}var JJ=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function v(x){return x.name}var p=new yi(this._layersSeries||[],l,v,v),d=[];p.add(ft(m,this,"add")).update(ft(m,this,"update")).remove(ft(m,this,"remove")).execute();function m(x,y,f){var _=o._layers;if(x==="remove"){s.remove(_[y]);return}for(var S=[],b=[],A,C=l[y].indices,M=0;M<C.length;M++){var L=i.getItemLayout(C[M]),D=L.x,P=L.y0,E=L.y;S.push(D,P),b.push(D,P+E),A=i.getItemVisual(C[M],"style")}var O,N=i.getItemLayout(C[0]),z=t.getModel("label"),G=z.get("margin"),U=t.getModel("emphasis");if(x==="add"){var W=d[y]=new Lt;O=new Fk({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),W.add(O),s.add(W),t.isAnimationEnabled()&&O.setClipPath(ttt(O.getBoundingRect(),t,function(){O.removeClipPath()}))}else{var W=_[f];O=W.childAt(0),s.add(W),d[y]=W,oe(O,{shape:{points:S,stackedOnPoints:b}},t),ha(O)}br(O,lr(t),{labelDataIndex:C[M-1],defaultText:i.getName(C[M-1]),inheritColor:A.fill},{normal:{verticalAlign:"middle"}}),O.setTextConfig({position:null,local:!0});var Y=O.getTextContent();Y&&(Y.x=N.x-G,Y.y=N.y0+N.y/2),O.useStyle(A),i.setItemGraphicEl(y,O),Sr(O,t),Ne(O,U.get("focus"),U.get("blurScope"),U.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e})(we);function ttt(r,e,t){var n=new Kt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Pe(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}var l0=2,ett=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Gh(ft(this.getData,this),ft(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=h_(t,function(v){return a.hasOwnProperty(v[0]+"")||(a[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,p){o.push({name:p,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var h=o[l].dataList[c][0]+"";a[h]=l}for(var h in a)a.hasOwnProperty(h)&&a[h]!==l&&(a[h]=l,t[n]=[h,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",$e).models[0],i=a.get("type"),o=fe(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=yt(),c=0,h=0;h<s.length;++h)l.push(s[h][l0]),u.get(s[h][l0])||(u.set(s[h][l0],c),c++);var v=kh(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:kp(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new Hr(v,this);return p.initData(s),p},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=h_(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,v){return t.get(o,h)-t.get(o,v)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){tt(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,v=-1,p=o[c].indices.length,d=0;d<p;++d){var m=i.get(t[0],o[c].indices[d]),x=Math.abs(m-n);x<=h&&(u=m,h=x,v=o[c].indices[d])}s.push(v)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return ur("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(Me);function rtt(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=ut(s[0],o.height),s[1]=ut(s[1],o.height);var u=o.height-s[0]-s[1];xL(n,t,u)}else{s[0]=ut(s[0],o.width),s[1]=ut(s[1],o.width);var c=o.width-s[0]-s[1];xL(n,t,c)}n.setLayout("layoutInfo",i)})}function xL(r,e,t){if(r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=et(a,function(x){return et(x.indices,function(y){var f=n.dataToPoint(r.get(i,y));return f[1]=r.get(o,y),f})}),l=ntt(s),u=l.y0,c=t/l.max,h=a.length,v=a[0].indices.length,p,d=0;d<v;++d){p=u[d]*c,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:p,y:s[0][d][1]*c});for(var m=1;m<h;++m)p+=s[m-1][d][1]*c,r.setItemLayout(a[m].indices[d],{layerIndex:m,x:s[m][d][0],y0:p,y:s[m][d][1]*c})}}function ntt(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<t;++c){var h=n[c]+a[c];h>i&&(i=h)}return{y0:a,max:i}}function att(r){r.registerChartView(JJ),r.registerSeriesModel(ett),r.registerLayout(rtt),r.registerProcessor(Fh("themeRiver"))}var itt=2,ott=4,wL=(function(r){j(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=itt,o.textConfig={inside:!0},Dt(o).seriesIndex=n.seriesIndex;var s=new re({z2:ott,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Dt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),h=K({},c);h.label=null;var v=n.getVisual("style");v.lineJoin="bevel";var p=n.getVisual("decal");p&&(v.decal=Ql(p,o));var d=bs(l.getModel("itemStyle"),h,!0);K(h,d),R(Yr,function(f){var _=s.ensureState(f),S=l.getModel([f,"itemStyle"]);_.style=S.getItemStyle();var b=bs(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=c.r0,Pe(s,{shape:{r:c.r}},a,n.dataIndex)):(oe(s,{shape:h},a),ha(s)),s.useStyle(v),this._updateLabel(a);var m=l.getShallow("cursor");m&&s.attr("cursor",m),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var x=u.get("focus"),y=x==="relative"?Xc(n.getAncestorsIndices(),n.getDescendantIndices()):x==="ancestor"?n.getAncestorsIndices():x==="descendant"?n.getDescendantIndices():x;Ne(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,v=h.getTextContent(),p=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,m=i.get("show")&&!(d!=null&&Math.abs(s)<d);v.ignore=!m,R(Jc,function(y){var f=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),b=t.getFormattedLabel(p,y);_&&(b=b||n.node.name),S.style=Ce(f,{},null,y!=="normal",!0),b&&(S.style.text=b);var A=f.get("show");A!=null&&!_&&(S.ignore=!A);var C=x(f,"position"),M=_?h:h.states[y],L=M.style.fill;M.textConfig={outsideFill:f.get("color")==="inherit"?L:null,inside:C!=="outside"};var D,P=x(f,"distance")||0,E=x(f,"align"),O=x(f,"rotate"),N=Math.PI*.5,z=Math.PI*1.5,G=mn(O==="tangential"?Math.PI/2-l:l),U=G>N&&!Kc(G-N)&&G<z;C==="outside"?(D=o.r+P,E=U?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,E="center"):E==="left"?(D=o.r0+P,E=U?"right":"left"):E==="right"&&(D=o.r-P,E=U?"left":"right"),S.style.align=E,S.style.verticalAlign=x(f,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*c+o.cy;var W=0;O==="radial"?W=mn(-l)+(U?Math.PI:0):O==="tangential"?W=mn(Math.PI/2-l)+(U?Math.PI:0):ae(O)&&(W=O*Math.PI/180),S.rotation=mn(W)});function x(y,f){var _=y.get(f);return _??i.get(f)}v.dirtyStyle()},e})(Zr),h1="sunburstRootToNode",SL="sunburstHighlight",stt="sunburstUnhighlight";function ltt(r){r.registerAction({type:h1,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=vh(e,[h1],a);if(o){var s=a.getViewRoot();s&&(e.direction=Qx(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:SL,update:"none"},function(e,t,n){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=vh(e,[SL],i);o&&(e.dataIndex=o.node.dataIndex)}n.dispatchAction(K(e,{type:"highlight"}))}),r.registerAction({type:stt,update:"updateView"},function(e,t,n){e=K({},e),n.dispatchAction(K(e,{type:"downplay"}))})}var utt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(f){v.push(f)});var p=this._oldChildren||[];d(v,p),y(l,u),this._initEvents(),this._oldChildren=v;function d(f,_){if(f.length===0&&_.length===0)return;new yi(_,f,S,S).add(b).update(b).remove(Et(b,null)).execute();function S(A){return A.getId()}function b(A,C){var M=A==null?null:f[A],L=C==null?null:_[C];m(M,L)}}function m(f,_){if(!h&&f&&!f.getValue()&&(f=null),f!==l&&_!==l){if(_&&_.piece)f?(_.piece.updateData(!1,f,t,n,a),s.setItemGraphicEl(f.dataIndex,_.piece)):x(_);else if(f){var S=new wL(f,t,n,a);c.add(S),s.setItemGraphicEl(f.dataIndex,S)}}}function x(f){f&&f.piece&&(c.remove(f.piece),f.piece=null)}function y(f,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,f,t,n,a):(o.virtualPiece=new wL(f,t,n,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Cp(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h1,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e})(we),ctt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};dN(a);var i=this._levelModels=et(t.levels||[],function(l){return new ye(l,this,n)},this),o=Kx.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Wd(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){xO(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(Me);function dN(r){var e=0;R(r.children,function(n){dN(n);var a=n.value;tt(a)&&(a=a[0]),e+=a});var t=r.value;tt(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),tt(r.value)?r.value[0]=t:r.value=t}var bL=Math.PI/180;function htt(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");tt(i)||(i=[0,i]),tt(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ut(a[0],o),c=ut(a[1],s),h=ut(i[0],l/2),v=ut(i[1],l/2),p=-n.get("startAngle")*bL,d=n.get("minAngle")*bL,m=n.getData().tree.root,x=n.getViewRoot(),y=x.depth,f=n.get("sort");f!=null&&gN(x,f);var _=0;R(x.children,function(G){!isNaN(G.getValue())&&_++});var S=x.getValue(),b=Math.PI/(S||_)*2,A=x.depth>0,C=x.height-(A?-1:1),M=(v-h)/(C||1),L=n.get("clockwise"),D=n.get("stillShowZeroSum"),P=L?1:-1,E=function(G,U){if(G){var W=U;if(G!==m){var Y=G.getValue(),q=S===0&&D?b:Y*b;q<d&&(q=d),W=U+P*q;var Q=G.depth-y-(A?-1:1),rt=h+M*Q,ct=h+M*(Q+1),vt=n.getLevelModel(G);if(vt){var _t=vt.get("r0",!0),Nt=vt.get("r",!0),Jt=vt.get("radius",!0);Jt!=null&&(_t=Jt[0],Nt=Jt[1]),_t!=null&&(rt=ut(_t,l/2)),Nt!=null&&(ct=ut(Nt,l/2))}G.setLayout({angle:q,startAngle:U,endAngle:W,clockwise:L,cx:u,cy:c,r0:rt,r:ct})}if(G.children&&G.children.length){var Mt=0;R(G.children,function(mt){Mt+=E(mt,U+Mt)})}return W-U}};if(A){var O=h,N=h+M,z=Math.PI*2;m.setLayout({angle:z,startAngle:p,endAngle:p+z,clockwise:L,cx:u,cy:c,r0:O,r:N})}E(x,p)})}function gN(r,e){var t=r.children||[];r.children=ftt(t,e),t.length&&R(r.children,function(n){gN(n,e)})}function ftt(r,e){if(wt(e)){var t=et(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),et(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function vtt(r){var e={};function t(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&ht(s)&&(s=J0(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function ptt(r){r.registerChartView(utt),r.registerSeriesModel(ctt),r.registerLayout(Et(htt,"sunburst")),r.registerProcessor(Et(Fh,"sunburst")),r.registerVisual(vtt),ltt(r)}var AL={color:"fill",borderColor:"stroke"},dtt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},hi=Qt(),gtt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return bi(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=hi(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(Me);function ytt(r,e){return e=e||[0,0],et(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function mtt(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ft(ytt,r)}}}function _tt(r,e){return e=e||[0,0],et([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function xtt(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:ft(_tt,r)}}}function wtt(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function Stt(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:ft(wtt,r)}}}function btt(r,e){return e=e||[0,0],et(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Att(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ft(btt,r)}}}function Ttt(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function yN(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||dt(r,"text")))}function mN(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},dt(n,"text")&&(o.text=n.text),dt(n,"rich")&&(o.rich=n.rich),dt(n,"textFill")&&(o.fill=n.textFill),dt(n,"textStroke")&&(o.stroke=n.textStroke),dt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),dt(n,"fontSize")&&(o.fontSize=n.fontSize),dt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),dt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=dt(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),dt(n,"textPosition")&&(a.position=n.textPosition),dt(n,"textOffset")&&(a.offset=n.textOffset),dt(n,"textRotation")&&(a.rotation=n.textRotation),dt(n,"textDistance")&&(a.distance=n.textDistance)}return TL(o,r),R(o.rich,function(l){TL(l,l)}),{textConfig:a,textContent:i}}function TL(r,e){e&&(e.font=e.textFont||e.font,dt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),dt(e,"textAlign")&&(r.align=e.textAlign),dt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),dt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),dt(e,"textWidth")&&(r.width=e.textWidth),dt(e,"textHeight")&&(r.height=e.textHeight),dt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),dt(e,"textPadding")&&(r.padding=e.textPadding),dt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),dt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),dt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),dt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),dt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),dt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),dt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function CL(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";ML(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,R(e.rich,function(s){ML(s,s)}),n}function ML(r,e){e&&(dt(e,"fill")&&(r.textFill=e.fill),dt(e,"stroke")&&(r.textStroke=e.fill),dt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),dt(e,"font")&&(r.font=e.font),dt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),dt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),dt(e,"fontSize")&&(r.fontSize=e.fontSize),dt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),dt(e,"align")&&(r.textAlign=e.align),dt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),dt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),dt(e,"width")&&(r.textWidth=e.width),dt(e,"height")&&(r.textHeight=e.height),dt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),dt(e,"padding")&&(r.textPadding=e.padding),dt(e,"borderColor")&&(r.textBorderColor=e.borderColor),dt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),dt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),dt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),dt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),dt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),dt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),dt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),dt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),dt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),dt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var _N={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LL=jt(_N);Oa(Ba,function(r,e){return r[e]=1,r},{});Ba.join(", ");var Zp=["","style","shape","extra"],nu=Qt();function dw(r,e,t,n,a){var i=r+"Animation",o=cu(r,n,a)||{},s=nu(e).userDuring;return o.duration>0&&(o.during=s?ft(Itt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),K(o,t[i]),o}function ap(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=nu(r),u=e.style;l.userDuring=e.during;var c={},h={};if(Rtt(r,e,h),IL("shape",e,h),IL("extra",e,h),!i&&s&&(Ptt(r,e,c),DL("shape",r,e,c),DL("extra",r,e,c),Ett(r,e,u,c)),h.style=u,Ctt(r,h,o),Ltt(r,e),s)if(i){var v={};R(Zp,function(d){var m=d?e[d]:e;m&&m.enterFrom&&(d&&(v[d]=v[d]||{}),K(d?v[d]:v,m.enterFrom))});var p=dw("enter",r,e,t,a);p.duration>0&&r.animateFrom(v,p)}else Mtt(r,e,a||0,t,c);xN(r,e),u?r.dirty():r.markRedraw()}function xN(r,e){for(var t=nu(r).leaveToProps,n=0;n<Zp.length;n++){var a=Zp[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=nu(r).leaveToProps={}),a&&(t[a]=t[a]||{}),K(a?t[a]:t,i.leaveTo))}}function Zd(r,e,t,n){if(r){var a=r.parent,i=nu(r).leaveToProps;if(i){var o=dw("update",r,e,t,0);o.done=function(){a.remove(r)},r.animateTo(i,o)}else a.remove(r)}}function Rs(r){return r==="all"}function Ctt(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function Mtt(r,e,t,n,a){if(a){var i=dw("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function Ltt(r,e){dt(e,"silent")&&(r.silent=e.silent),dt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Un&&dt(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ut&&dt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var ba={},Dtt={setTransform:function(r,e){return ba.el[r]=e,this},getTransform:function(r){return ba.el[r]},setShape:function(r,e){var t=ba.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=ba.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=ba.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=ba.el.style;if(e)return e[r]},setExtra:function(r,e){var t=ba.el.extra||(ba.el.extra={});return t[r]=e,this},getExtra:function(r){var e=ba.el.extra;if(e)return e[r]}};function Itt(){var r=this,e=r.el;if(e){var t=nu(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}ba.el=e,n(Dtt)}}function DL(r,e,t,n){var a=t[r];if(a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),Rs(l))K(o,i);else for(var u=me(l),c=0;c<u.length;c++){var h=u[c],v=i[h];o[h]=v}else if(Rs(s)||Gt(s,r)>=0){!o&&(o=n[r]={});for(var p=jt(i),c=0;c<p.length;c++){var h=p[c],v=i[h];ktt(a[h],v)&&(o[h]=v)}}}}}function IL(r,e,t){var n=e[r];if(n)for(var a=t[r]={},i=jt(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ec(n[s])}}function Ptt(r,e,t){for(var n=e.transition,a=Rs(n)?Ba:me(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function Rtt(r,e,t){for(var n=0;n<LL.length;n++){var a=LL[n],i=_N[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Ba.length;n++){var s=Ba[n];e[s]!=null&&(t[s]=e[s])}}function Ett(r,e,t,n){if(t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!Rs(o)){var l=me(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],h=a[c];i[c]=h}}else if(r.getAnimationStyleProps&&(Rs(s)||Rs(o)||Gt(s,"style")>=0)){var v=r.getAnimationStyleProps(),p=v?v.style:null;if(p){!i&&(i=n.style={});for(var d=jt(t),u=0;u<d.length;u++){var c=d[u];if(p[c]){var h=a[c];i[c]=h}}}}}}}function ktt(r,e){return Rr(r)?r!==e:r!=null&&isFinite(r)}var wN=Qt(),Ott=["percent","easing","shape","style","extra"];function SN(r){r.stopAnimation("keyframe"),r.attr(wN(r))}function Xp(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(tt(e)){R(e,function(s){Xp(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=cu("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=wN(r);R(Zp,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),R(n,function(u){var c=r.animators,h=s?u[s]:u;if(h){var v=jt(h);if(s||(v=fe(v,function(m){return Gt(Ott,m)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;R(v,function(m){d[m]=((s?r[s]:r)||{})[m]}),l.whenWithKeys(a*u.percent,h,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var fi="emphasis",eo="normal",gw="blur",yw="select",po=[eo,fi,gw,yw],u0={normal:["itemStyle"],emphasis:[fi,"itemStyle"],blur:[gw,"itemStyle"],select:[yw,"itemStyle"]},c0={normal:["label"],emphasis:[fi,"label"],blur:[gw,"label"],select:[yw,"label"]},Ntt=["x","y"],Btt="e\0\0",Rn={normal:{},emphasis:{},blur:{},select:{}},ztt={cartesian2d:mtt,geo:xtt,single:Stt,polar:Att,calendar:Ttt};function f1(r){return r instanceof Ut}function v1(r){return r instanceof Un}function Vtt(r,e){e.copyTransform(r),v1(e)&&v1(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,f1(e)&&f1(r)&&e.setShape(r.shape))}var Ftt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=PL(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(h){h0(a,null,h,u(h,i),t,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&Zd(v,hi(v).option,t)}).update(function(h,v){var p=o.getItemGraphicEl(v);h0(a,p,h,u(h,i),t,l,s)}).execute();var c=t.get("clip",!0)?zh(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=PL(n,s,a,i),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var v=h0(null,null,h,l(h,o),n,this.group,s);v&&(v.traverse(c),u.push(v))}},e.prototype.eachRendered=function(t){go(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(we);function mw(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=TN(n);t=Sd(i,null,a,n.layout||"center"),hi(t).customPathData=i}else if(e==="image")t=new dr({}),hi(t).customImagePath=r.style.image;else if(e==="text")t=new re({});else if(e==="group")t=new Lt;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=ix(e);if(!o){var s="";he(s)}t=new o}return hi(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function _w(r,e,t,n,a,i,o){SN(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=Ntt);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;dt(u,"textFill")&&(u.fill=u.textFill),dt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=f1(e)?l.decal:null;r&&h&&(h.dirty=!0,c=Ql(h,r)),l.__decalPattern=c}if(v1(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}ap(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),Xp(e,n.keyframeAnimation,i)}function bN(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Ns(i)}}function Gtt(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<po.length;s++)Htt(n,e,po[s])}}function Htt(r,e,t){var n=t===eo,a=n?e:$p(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function PL(r,e,t,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):ztt[i.type](i));for(var s=bt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:A,ordinalRawValue:b,styleEmphasis:C,visual:D,barLayout:P,currentSeriesIndices:E,font:O},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Wtt(r.getData())},u,c,h={},v={},p={},d={},m=0;m<po.length;m++){var x=po[m];p[x]=r.getModel(u0[x]),d[x]=r.getModel(c0[x])}function y(N){return N===u?c||(c=e.getItemModel(N)):e.getItemModel(N)}function f(N,z){return e.hasItemOption?N===u?h[z]||(h[z]=y(N).getModel(u0[z])):y(N).getModel(u0[z]):p[z]}function _(N,z){return e.hasItemOption?N===u?v[z]||(v[z]=y(N).getModel(c0[z])):y(N).getModel(c0[z]):d[z]}return function(N,z){return u=N,c=null,h={},v={},a&&a(bt({dataIndexInside:N,dataIndex:e.getRawIndex(N),actionType:z?z.type:null},l),s)};function S(N,z){return z==null&&(z=u),e.getStore().get(e.getDimensionIndex(N||0),z)}function b(N,z){z==null&&(z=u),N=N||0;var G=e.getDimensionInfo(N);if(!G){var U=e.getDimensionIndex(N);return U>=0?e.getStore().get(U,z):void 0}var W=e.get(G.name,z),Y=G&&G.ordinalMeta;return Y?Y.categories[W]:W}function A(N,z){z==null&&(z=u);var G=e.getItemVisual(z,"style"),U=G&&G.fill,W=G&&G.opacity,Y=f(z,eo).getItemStyle();U!=null&&(Y.fill=U),W!=null&&(Y.opacity=W);var q={inheritColor:ht(U)?U:"#000"},Q=_(z,eo),rt=Ce(Q,null,q,!1,!0);rt.text=Q.getShallow("show")?Rt(r.getFormattedLabel(z,eo),tu(e,z)):null;var ct=Ap(Q,q,!1);return L(N,Y),Y=CL(Y,rt,ct),N&&M(Y,N),Y.legacy=!0,Y}function C(N,z){z==null&&(z=u);var G=f(z,fi).getItemStyle(),U=_(z,fi),W=Ce(U,null,null,!0,!0);W.text=U.getShallow("show")?Ea(r.getFormattedLabel(z,fi),r.getFormattedLabel(z,eo),tu(e,z)):null;var Y=Ap(U,null,!0);return L(N,G),G=CL(G,W,Y),N&&M(G,N),G.legacy=!0,G}function M(N,z){for(var G in z)dt(z,G)&&(N[G]=z[G])}function L(N,z){N&&(N.textFill&&(z.textFill=N.textFill),N.textPosition&&(z.textPosition=N.textPosition))}function D(N,z){if(z==null&&(z=u),dt(AL,N)){var G=e.getItemVisual(z,"style");return G?G[AL[N]]:null}if(dt(dtt,N))return e.getItemVisual(z,N)}function P(N){if(i.type==="cartesian2d"){var z=i.getBaseAxis();return RY(bt({axis:z},N))}}function E(){return t.getCurrentSeriesIndices()}function O(N){return ox(N,t)}}function Wtt(r){var e={};return R(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function h0(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=xw(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&Ne(s,n.focus,n.blurScope,n.emphasisDisabled),s}function xw(r,e,t,n,a,i){var o=-1,s=e;e&&AN(e,n,a)&&(o=Gt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=mw(n),s&&Vtt(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Rn.normal.cfg=Rn.normal.conOpt=Rn.emphasis.cfg=Rn.emphasis.conOpt=Rn.blur.cfg=Rn.blur.conOpt=Rn.select.cfg=Rn.select.conOpt=null,Rn.isLegacy=!1,Ytt(u,t,n,a,l,Rn),Utt(u,t,n,a,l),_w(r,u,t,n,Rn,a,l),dt(n,"info")&&(hi(u).info=n.info);for(var c=0;c<po.length;c++){var h=po[c];if(h!==eo){var v=$p(n,h),p=ww(n,v,h);bN(h,u,v,p,Rn)}}return Gtt(u,n,a),n.type==="group"&&Ztt(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function AN(r,e,t){var n=hi(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qtt(i)&&TN(i)!==n.customPathData||a==="image"&&dt(o,"image")&&o.image!==n.customImagePath}function Utt(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&AN(o,i,n)&&(o=null),o||(o=mw(i),r.setClipPath(o)),_w(null,o,e,i,null,n,a)}}function Ytt(r,e,t,n,a,i){if(!r.isGroup){RL(t,null,i),RL(t,fi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=mw(o),r.setTextContent(c)),_w(null,c,e,o,null,n,a);for(var h=o&&o.style,v=0;v<po.length;v++){var p=po[v];if(p!==eo){var d=i[p].conOpt;bN(p,c,d,ww(o,d,p),null)}}h?c.dirty():c.markRedraw()}}}}function RL(r,e,t){var n=e?$p(r,e):r,a=e?ww(r,n,fi):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?$p(s,e):s:null;if(a&&(t.isLegacy||yN(a,i,!!o,!!l))){t.isLegacy=!0;var u=mN(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function $p(r,e){return e?r?r[e]:null:r}function ww(r,e,t){var n=e&&e.style;return n==null&&t===fi&&r&&(n=r.styleEmphasis),n}function Ztt(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){$tt({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var h=i[c],v=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),xw(r,v,t,h,a,e)):v.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var d=e.childAt(p);Xtt(e,d,a)}}}function Xtt(r,e,t){e&&Zd(e,hi(r).option,t)}function $tt(r){new yi(r.oldChildren,r.newChildren,EL,EL,r).add(kL).update(kL).remove(jtt).execute()}function EL(r,e){var t=r&&r.name;return t??Btt+e}function kL(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;xw(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function jtt(r){var e=this.context,t=e.oldChildren[r];t&&Zd(t,hi(t).option,e.seriesModel)}function TN(r){return r&&(r.pathData||r.d)}function qtt(r){return r&&(dt(r,"pathData")||dt(r,"d"))}function Ktt(r){r.registerChartView(Ftt),r.registerSeriesModel(gtt)}var ps=Qt(),OL=Ct,f0=ft,Sw=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Lt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var v=Et(NL,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}zL(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Ux(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=ps(e).pointerEl=new Ws[i.type](OL(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=ps(e).labelEl=new re(OL(t.label));e.add(i),BL(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=ps(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=ps(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),BL(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ph(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vi(u.event)},onmousedown:f0(this._onHandleDragMove,this,0,0),drift:f0(this._onHandleDragMove,this),ondragend:f0(this._onHandleDragEnd,this)}),n.add(a)),zL(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");tt(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,yu(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){NL(this._axisPointerModel,!t&&this._moveAnimation,this._handle,v0(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(v0(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(v0(a)),ps(n).lastProp=null,this._doDispatchAxisPointer()}},r.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}]})}},r.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"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ih(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function NL(r,e,t,n){CN(ps(t).lastProp,n)||(ps(t).lastProp=n,e?oe(t,n,r):(t.stopAnimation(),t.attr(n)))}function CN(r,e){if(Tt(r)&&Tt(e)){var t=!0;return R(e,function(n,a){t=t&&CN(r[a],n)}),!!t}else return r===e}function BL(r,e){r[e.get(["label","show"])?"show":"hide"]()}function v0(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function zL(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function bw(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function MN(r,e,t,n,a){var i=t.get("value"),o=LN(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=vu(s.get("padding")||0),u=s.getFont(),c=Ah(o,u),h=a.position,v=c.width+l[1]+l[3],p=c.height+l[0]+l[2],d=a.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var m=a.verticalAlign;m==="bottom"&&(h[1]-=p),m==="middle"&&(h[1]-=p/2),Qtt(h,v,p,n);var x=s.get("backgroundColor");(!x||x==="auto")&&(x=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ce(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:x}),z2:10}}function Qtt(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function LN(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Ex(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};R(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),ht(o)?i=o.replace("{value}",i):wt(o)&&(i=o(s))}return i}function Aw(r,e,t){var n=_n();return Gs(n,n,t.rotation),Na(n,n,t.position),ua([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function DN(r,e,t,n,a,i){var o=Wr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),MN(e,n,a,i,{position:Aw(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Tw(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function IN(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function VL(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var Jtt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=FL(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=bw(i),p=tet[u](s,h,c);p.style=v,t.graphicKey=p.type,t.pointer=p}var d=X_(l.model,a);DN(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=X_(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Aw(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=FL(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[t.x,t.y];h[c]+=n[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var v=(u[1]+u[0])/2,p=[v,v];p[c]=h[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:p,tooltipOption:d[c]}},e})(Sw);function FL(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var tet={line:function(r,e,t){var n=Tw([e,t[0]],[e,t[1]],GL(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:IN([e-n/2,t[0]],[n,a],GL(r))}}};function GL(r){return r.dim==="x"?0:1}var eet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e})($t),si=Qt(),ret=R;function PN(r,e,t){if(!Yt.node){var n=e.getZr();si(n).records||(si(n).records={}),net(n,e);var a=si(n).records[r]||(si(n).records[r]={});a.handler=t}}function net(r,e){if(si(r).initialized)return;si(r).initialized=!0,t("click",Et(HL,"click")),t("mousemove",Et(HL,"mousemove")),t("globalout",iet);function t(n,a){r.on(n,function(i){var o=oet(e);ret(si(r).records,function(s){s&&a(s,i,o.dispatchAction)}),aet(o.pendings,e)})}}function aet(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function iet(r,e,t){r.handler("leave",null,t)}function HL(r,e,t,n){e.handler(r,t,n)}function oet(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function p1(r,e){if(!Yt.node){var t=e.getZr(),n=(si(t).records||{})[r];n&&(si(t).records[r]=null)}}var set=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";PN("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){p1("axisPointer",n)},e.prototype.dispose=function(t,n){p1("axisPointer",n)},e.type="axisPointer",e})(Ee);function RN(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=ks(i,r);if(o==null||o<0||tt(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,v=u.dim,p=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),m=[];m[p]=i.get(d,o),m[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(m)||[]}else t=l.dataToPoint(i.getValues(et(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var x=s.getBoundingRect().clone();x.applyTransform(s.transform),t=[x.x+x.width/2,x.y+x.height/2]}return{point:t,el:s}}var WL=Qt();function uet(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||ft(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ip(a)&&(a=RN({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ip(a),u=i.axesInfo,c=s.axesInfo,h=n==="leave"||ip(a),v={},p={},d={list:[],map:{}},m={showPointer:Et(het,p),showTooltip:Et(fet,d)};R(s.coordSysMap,function(y,f){var _=l||y.containPoint(a);R(s.coordSysAxesInfo[f],function(S,b){var A=S.axis,C=get(u,S);if(!h&&_&&(!u||C)){var M=C&&C.value;M==null&&!l&&(M=A.pointToData(a)),M!=null&&UL(S,M,m,!1,v)}})});var x={};return R(c,function(y,f){var _=y.linkGroup;_&&!p[f]&&R(_.axesInfo,function(S,b){var A=p[b];if(S!==y&&A){var C=A.value;_.mapper&&(C=y.axis.scale.parse(_.mapper(C,YL(S),YL(y)))),x[y.key]=C}})}),R(x,function(y,f){UL(c[f],y,m,!0,v)}),vet(p,c,v),pet(d,a,r,o),det(c,o,t),v}}function UL(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=cet(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function cet(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return R(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,r,t);v=p.dataIndices,h=p.nestestValue}else{if(v=l.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(c[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,a=h,i.length=0),R(v,function(x){i.push({seriesIndex:l.seriesIndex,dataIndexInside:x,dataIndex:l.getData().getRawIndex(x)})}))}}),{payloadBatch:i,snapToValue:a}}function het(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function fet(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=fh(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function vet(r,e,t){var n=t.axesInfo=[];R(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function pet(r,e,t,n){if(ip(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function det(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=WL(n)[a]||{},o=WL(n)[a]={};R(r,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&R(h.seriesDataIndices,function(v){var p=v.seriesIndex+" | "+v.dataIndex;o[p]=v})});var s=[],l=[];R(i,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function get(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function YL(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function ip(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Uh(r){Xs.registerAxisPointerClass("CartesianAxisPointer",Jtt),r.registerComponentModel(eet),r.registerComponentView(set),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!tt(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=T$(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uet)}function yet(r){Wt(oO),Wt(Uh)}var met=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var p=bw(i),d=xet[v](s,l,h,c);d.style=p,t.graphicKey=d.type,t.pointer=d}var m=i.get(["label","margin"]),x=_et(n,a,i,l,m);MN(t,a,i,o,x)},e})(Sw);function _et(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,h;if(i.dim==="radius"){var v=_n();Gs(v,v,s),Na(v,v,[n.cx,n.cy]),u=ua([o,-a],v);var p=e.getModel("axisLabel").get("rotate")||0,d=Wr.innerTextLayout(s,p*Math.PI/180,-1);c=d.textAlign,h=d.textVerticalAlign}else{var m=l[1];u=n.coordToPoint([m+a,o]);var x=n.cx,y=n.cy;c=Math.abs(u[0]-x)/m<.3?"center":u[0]>x?"left":"right",h=Math.abs(u[1]-y)/m<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var xet={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:Tw(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:VL(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:VL(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},wet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})($t),Cw=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$e).models[0]},e.type="polarAxis",e})($t);qe(Cw,Oh);var Set=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(Cw),bet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(Cw),Mw=(function(r){j(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e})(va);Mw.prototype.dataToRadius=va.prototype.dataToCoord;Mw.prototype.radiusToData=va.prototype.coordToData;var Aet=Qt(),Lw=(function(r){j(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Ah(s==null?"":s+"",n.getFont(),"center","top"),h=Math.max(c.height,7),v=h/u;isNaN(v)&&(v=1/0);var p=Math.max(0,Math.floor(v)),d=Aet(t.model),m=d.lastAutoInterval,x=d.lastTickCount;return m!=null&&x!=null&&Math.abs(m-p)<=1&&Math.abs(x-o)<=1&&m>p?p=m:(d.lastTickCount=o,d.lastAutoInterval=p),p},e})(va);Lw.prototype.dataToAngle=va.prototype.dataToCoord;Lw.prototype.angleToData=va.prototype.coordToData;var EN=["radius","angle"],Tet=(function(){function r(e){this.dimensions=EN,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Mw,this._angleAxis=new Lw,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[a,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,h=u*u+c*c,v=this.r,p=this.r0;return v!==p&&h-o<=v*v&&h+o>=p*p}}},r.prototype.convertToPixel=function(e,t,n){var a=ZL(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=ZL(t);return a===this?this.pointToData(n):null},r})();function ZL(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Cet(r,e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight();r.cx=ut(n[0],a),r.cy=ut(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:tt(l)||(l=[0,l]);var u=[ut(l[0],s),ut(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Met(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();R(Op(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),R(Op(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Jl(n.scale,n.model),Jl(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Let(r){return r.mainType==="angleAxis"}function XL(r,e){var t;if(r.type=e.get("type"),r.scale=Vd(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Let(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,a)}e.axis=r,r.model=e}var Det={dimensions:EN,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new Tet(a+"");i.update=Met;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");XL(o,l),XL(s,u),Cet(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",$e).models[0];n.coordinateSystem=a.coordinateSystem}}),t}},Iet=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Rv(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Ev(r){var e=r.getRadiusAxis();return e.inverse?0:1}function $L(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Pet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=et(a.getViewLabels(),function(c){c=Ct(c);var h=a.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(v),c});$L(u),$L(s),R(Iet,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Ret[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e})(Xs),Ret={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Ev(t),h=c?0:1,v,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?v=new Ws[p]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Mh({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Ev(t)],u=et(n,function(c){return new ir({shape:Rv(t,[l,l+s],c.coord)})});r.add(Fn(u,{style:bt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Ev(t)],c=[],h=0;h<a.length;h++)for(var v=0;v<a[h].length;v++)c.push(new ir({shape:Rv(t,[u,u+l],a[h][v].coord)}));r.add(Fn(c,{style:bt(s.getModel("lineStyle").getLineStyle(),bt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");R(o,function(h,v){var p=l,d=h.tickValue,m=i[Ev(t)],x=t.coordToPoint([m+u,h.coord]),y=t.cx,f=t.cy,_=Math.abs(x[0]-y)/m<.3?"center":x[0]>y?"left":"right",S=Math.abs(x[1]-f)/m<.3?"middle":x[1]>f?"top":"bottom";if(s&&s[d]){var b=s[d];Tt(b)&&b.textStyle&&(p=new ye(b.textStyle,l,l.ecModel))}var A=new re({silent:Wr.isLabelSilent(e),style:Ce(p,{x:x[0],y:x[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(A),c){var C=Wr.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=h.rawLabel,Dt(A).eventData=C}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<n.length;h++){var v=u++%l.length;c[v]=c[v]||[],c[v].push(new ir({shape:Rv(t,i,n[h].coord)}))}for(var h=0;h<c.length;h++)r.add(Fn(c[h],{style:bt({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ir({shape:Rv(t,i,a[u][c].coord)}));r.add(Fn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,v=-n[0].coord*h,p=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),m=e.get("clockwise"),x=1,y=n.length;x<=y;x++){var f=x===y?n[0].coord:n[x].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Zr({shape:{cx:t.cx,cy:t.cy,r0:p,r:d,startAngle:v,endAngle:-f*h,clockwise:m},silent:!0})),v=-f*h}for(var x=0;x<c.length;x++)r.add(Fn(c[x],{style:bt({fill:l[x%l.length]},s.getAreaStyle()),silent:!0}))}}},Eet=["axisLine","axisTickLabel","axisName"],ket=["splitLine","splitArea","minorSplitLine"],Oet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=this._axisGroup,i=this._axisGroup=new Lt;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),p=Bet(s,t,h),d=new Wr(t,p);R(Eet,d.add,d),i.add(d.getGroup()),Ih(a,i,t),R(ket,function(m){t.get([m,"show"])&&!o.scale.isBlank()&&Net[m](this.group,t,s,h,v,u,c)},this)}},e.type="radiusAxis",e})(Xs),Net={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),h=Math.PI/180,v=c.getExtent(),p=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],m=0;m<i.length;m++){var x=u++%l.length;d[x]=d[x]||[],d[x].push(new Ws[p]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[m].coord,0),startAngle:-v[0]*h,endAngle:-v[1]*h,clockwise:c.inverse}}))}for(var m=0;m<d.length;m++)r.add(Fn(d[m],{style:bt({stroke:l[m%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new Si({shape:{cx:t.cx,cy:t.cy,r:o[c][h].coord}}));r.add(Fn(u,{style:bt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=i[0].coord,v=1;v<i.length;v++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Zr({shape:{cx:t.cx,cy:t.cy,r0:h,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=i[v].coord}for(var v=0;v<c.length;v++)r.add(Fn(c[v],{style:bt({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function Bet(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function kN(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function ON(r,e){return e.dim+r.model.componentIndex}function zet(r,e,t){var n={},a=Vet(fe(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=ON(s,l),c=kN(i),h=a[u][c],v=h.offset,p=h.width,d=s.getOtherAxis(l),m=i.coordinateSystem.cx,x=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,f=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=fo(o,_),A=l.dim!=="radius"||!i.get("roundCap",!0),C=d.model,M=C.get("startValue"),L=d.dataToCoord(M||0),D=0,P=o.count();D<P;D++){var E=o.get(_,D),O=o.get(S,D),N=E>=0?"p":"n",z=L;b&&(n[c][O]||(n[c][O]={p:L,n:L}),z=n[c][O][N]);var G=void 0,U=void 0,W=void 0,Y=void 0;if(d.dim==="radius"){var q=d.dataToCoord(E)-L,Q=l.dataToCoord(O);Math.abs(q)<y&&(q=(q<0?-1:1)*y),G=z,U=z+q,W=Q-v,Y=W-p,b&&(n[c][O][N]=U)}else{var rt=d.dataToCoord(E,A)-L,ct=l.dataToCoord(O);Math.abs(rt)<f&&(rt=(rt<0?-1:1)*f),G=ct+v,U=G+p,W=z,Y=z+rt,b&&(n[c][O][N]=Y)}o.setItemLayout(D,{cx:m,cy:x,r0:G,r:U,startAngle:-W*Math.PI/180,endAngle:-Y*Math.PI/180,clockwise:W>=Y})}}})}function Vet(r){var e={};R(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ON(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var p=kN(n);v[p]||h.autoWidthCount++,v[p]=v[p]||{width:0,maxWidth:0};var d=ut(n.get("barWidth"),c),m=ut(n.get("barMaxWidth"),c),x=n.get("barGap"),y=n.get("barCategoryGap");d&&!v[p].width&&(d=Math.min(h.remainedWidth,d),v[p].width=d,h.remainedWidth-=d),m&&(v[p].maxWidth=m),x!=null&&(h.gap=x),y!=null&&(h.categoryGap=y)});var t={};return R(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=ut(n.categoryGap,o),l=ut(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),R(i,function(m,x){var y=m.maxWidth;y&&y<h&&(y=Math.min(y,u),m.width&&(y=Math.min(y,m.width)),u-=y,m.width=y,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var v=0,p;R(i,function(m,x){m.width||(m.width=h),p=m,v+=m.width*(1+l)}),p&&(v-=p.width*l);var d=-v/2;R(i,function(m,x){t[a][x]=t[a][x]||{offset:d,width:m.width},d+=m.width*(1+l)})}),t}var Fet={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Get={splitNumber:5},Het=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(Ee);function Wet(r){Wt(Uh),Xs.registerAxisPointerClass("PolarAxisPointer",met),r.registerCoordinateSystem("polar",Det),r.registerComponentModel(wet),r.registerComponentView(Het),eu(r,"angle",Set,Fet),eu(r,"radius",bet,Get),r.registerComponentView(Pet),r.registerComponentView(Oet),r.registerLayout(Et(zet,"bar"))}function d1(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=h[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pr(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.rotate;return v==null&&(v=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-v:v,a.z2=1,a}var Uet=["axisLine","axisTickLabel","axisName"],Yet=["splitArea","splitLine"],Zet=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Lt;var l=d1(t),u=new Wr(t,l);R(Uet,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),R(Yet,function(c){t.get([c,"show"])&&Xet[c](this,this.group,this._axisGroup,t)},this),Ih(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){nO(this)},e.type="singleAxis",e})(Xs),Xet={splitLine:function(r,e,t,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),h=[],v=0,p=a.getTicksCoords({tickModel:i}),d=[],m=[],x=0;x<p.length;++x){var y=a.toGlobalCoord(p[x].coord);c?(d[0]=y,d[1]=u.y,m[0]=y,m[1]=u.y+u.height):(d[0]=u.x,d[1]=y,m[0]=u.x+u.width,m[1]=y);var f=new ir({shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},silent:!0});ql(f.shape,l);var _=v++%s.length;h[_]=h[_]||[],h[_].push(f)}for(var S=o.getLineStyle(["color"]),x=0;x<h.length;++x)e.add(Fn(h[x],{style:bt({stroke:s[x%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,n){rO(r,t,n,n)}},op=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e})($t);qe(op,Oh.prototype);var $et=(function(r){j(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e})(va),NN=["single"],jet=(function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=NN,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new $et(a,Vd(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();R(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Jl(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Qe({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(e,t,n){var a=jL(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=jL(t);return a===this?this.pointToData(n):null},r})();function jL(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function qet(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new jet(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",$e).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var Ket={create:qet,dimensions:NN},qL=["x","y"],Qet=["width","height"],Jet=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=p0(l,1-jp(s)),c=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var v=bw(i),p=trt[h](s,c,u);p.style=v,t.graphicKey=p.type,t.pointer=p}var d=d1(a);DN(n,t,d,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=d1(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=Aw(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=jp(o),u=p0(s,l),c=[t.x,t.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=p0(s,1-l),v=(h[1]+h[0])/2,p=[v,v];return p[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e})(Sw),trt={line:function(r,e,t){var n=Tw([e,t[0]],[e,t[1]],jp(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:IN([e-n/2,t[0]],[n,a],jp(r))}}};function jp(r){return r.isHorizontal()?0:1}function p0(r,e){var t=r.getRect();return[t[qL[e]],t[qL[e]]+t[Qet[e]]]}var ert=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(Ee);function rrt(r){Wt(Uh),Xs.registerAxisPointerClass("SingleAxisPointer",Jet),r.registerComponentView(ert),r.registerComponentView(Zet),r.registerComponentModel(op),eu(r,"single",op,op.defaultOption),r.registerCoordinateSystem("single",Ket)}var nrt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=pu(t);r.prototype.init.apply(this,arguments),KL(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),KL(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})($t);function KL(r,e){var t=r.cellSize,n;tt(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=et([0,1],function(i){return S7(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});ho(r,e,{type:"box",ignoreSize:a})}var art=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,h=new Kt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(h)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=n.start,v=0;h.time<=n.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(n.start.y+"-"+n.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=s.getDateInfo(p)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(m){o._firstDayOfMonth.push(s.getDateInfo(m)),o._firstDayPoints.push(s.dataToRect([m],!1).tl);var x=o._getLinePointsOfOneWeek(t,m,a);o._tlpoints.push(x[0]),o._blpoints.push(x[x.length-1]),u&&o._drawSplitline(x,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new $r({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return ht(t)&&t?_7(t,n):wt(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=a==="horizontal"?0:1,p={top:[c,u[v][1]],bottom:[c,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var m=o.get("formatter"),x={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(m,x),f=new re({z2:30,style:Ce(o,{text:y}),silent:o.get("silent")});f.attr(this._yearTextPositionControl(f,p[l],a,l,s)),i.add(f)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||ht(s))&&(s&&(n=b_(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,p=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=c==="center",m=o.get("silent"),x=0;x<h[v].length-1;x++){var y=h[v][x].slice(),f=this._firstDayOfMonth[x];if(d){var _=this._firstDayPoints[x];y[p]=(_[p]+h[0][x+1][p])/2}var S=o.get("formatter"),b=s[+f.m-1],A={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:b},C=this._formatterLabel(S,A),M=new re({z2:30,style:K(Ce(o,{text:C}),this._monthTextPositionControl(y,d,a,u,l)),silent:m});i.add(M)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],c=t[1],h=a==="start";return n==="horizontal"?(u=u+i+(h?1:-1)*o[0]/2,s=h?"right":"left"):(c=c+i+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();if(!c||ht(c)){c&&(n=b_(c)||n);var p=n.get(["time","dayOfWeekShort"]);c=p||et(n.get(["time","dayOfWeekAbbr"]),function(A){return A[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];h=ut(h,Math.min(m[1],m[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,h=-h);for(var x=s.get("silent"),y=0;y<7;y++){var f=l.getNextNDay(d,y),_=l.dataToRect([f.time],!1).center,S=y;S=Math.abs((y+v)%7);var b=new re({z2:30,style:K(Ce(s,{text:c[S]}),this._weekTextPositionControl(_,i,u,h,m)),silent:x});o.add(b)}}},e.type="calendar",e})(Ee),d0=864e5,irt=(function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=za(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];R([0,1],function(h){c(i,h)&&(o[a[h]]=i[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Qe(o,l);R([0,1],function(h){c(i,h)||(i[h]=u[a[h]]/s[h])});function c(h,v){return h[v]!=null&&h[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){tt(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+d0))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=QL(t);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=QL(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(tt(e)&&e.length===1&&(e=e[0]),tt(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/d0)-Math.floor(t[0].time/d0)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),h=n?-c+1:c-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r})();function QL(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}function ort(r){r.registerComponentModel(nrt),r.registerComponentView(art),r.registerCoordinateSystem("calendar",irt)}function srt(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function JL(r,e){var t;return R(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function lrt(r,e,t){var n=K({},t),a=r[e],i=t.$action||"merge";i==="merge"?a?(Ot(a,n,!0),ho(a,n,{ignoreSize:!0}),LR(t,a),kv(t,a),kv(t,a,"shape"),kv(t,a,"style"),kv(t,a,"extra"),t.clipPath=a.clipPath):r[e]=n:i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var BN=["transition","enterFrom","leaveTo"],urt=BN.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function kv(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?BN:urt,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function crt(r,e){if(r&&(r.hv=e.hv=[JL(e,["left","right"]),JL(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var hrt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=AP(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];R(l,function(c,h){var v=c.newOption;v&&(u.push(v),srt(c,v),lrt(o,h,v),crt(o[h],v))},this),a.elements=fe(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,n,a){R(t,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})($t),tD={path:null,compoundPath:null,group:Lt,image:dr,text:re},Bn=Qt(),frt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=yt()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");R(n,function(l){var u=Ke(l.id,null),c=u!=null?a.get(u):null,h=Ke(l.parentId,null),v=h!=null?a.get(h):i,p=l.type,d=l.style;p==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var m=l.textContent,x=l.textConfig;if(d&&yN(d,p,!!x,!!m)){var y=mN(d,p,!0);!x&&y.textConfig&&(x=l.textConfig=y.textConfig),!m&&y.textContent&&(m=y.textContent)}var f=vrt(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var A=!c,C=c;A?C=eD(u,v,l.type,a):(C&&(Bn(C).isNew=!1),SN(C)),C&&(ap(C,f,t,{isInit:A}),rD(C,l,o,s))}else if(b){sp(c,l,a,t);var M=eD(u,v,l.type,a);M&&(ap(M,f,t,{isInit:!0}),rD(M,l,o,s))}else _==="remove"&&(xN(c,l),sp(c,l,a,t));var L=a.get(u);if(L&&m)if(S){var D=L.getTextContent();D?D.attr(m):L.setTextContent(new re(m))}else b&&L.setTextContent(new re(m));if(L){var P=l.clipPath;if(P){var E=P.type,O=void 0,A=!1;if(S){var N=L.getClipPath();A=!N||Bn(N).type!==E,O=A?g1(E):N}else b&&(A=!0,O=g1(E));L.setClipPath(O),ap(O,P,t,{isInit:A}),Xp(O,P.keyframeAnimation,t)}var z=Bn(L);L.setTextConfig(x),z.option=l,prt(L,t,l),Hs({el:L,componentModel:t,itemName:L.name,itemTooltipOption:l.tooltip}),Xp(L,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var h=a[c],v=Ke(h.id,null),p=v!=null?o.get(v):null;if(!(!p||!p.isGroup)){var d=p.parent,m=d===i,x=Bn(p),y=Bn(d);x.width=ut(x.option.width,m?s:y.width)||0,x.height=ut(x.option.height,m?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var h=a[c],v=Ke(h.id,null),p=v!=null?o.get(v):null;if(p){var d=p.parent,y=Bn(d),f=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Id(p,h,f,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Bn(p).isNew&&S){for(var b=h.transition,A={},C=0;C<u.length;C++){var M=u[C],L=_[M];b&&(Rs(b)||Gt(b,M)>=0)?A[M]=L:p[M]=L}oe(p,A,t,0)}else p.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){sp(a,Bn(a).option,n,t._lastGraphicModel)}),this._elMap=yt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(Ee);function g1(r){var e=dt(tD,r)?tD[r]:ix(r),t=new e({});return Bn(t).type=r,t}function eD(r,e,t,n){var a=g1(t);return e.add(a),n.set(r,a),Bn(a).id=r,Bn(a).isNew=!0,a}function sp(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){sp(i,e,t,n)}),Zd(r,e,n),t.removeKey(Bn(r).id))}function rD(r,e,t,n){r.isGroup||R([["cursor",Un.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];dt(e,i)?r[i]=Rt(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),R(jt(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=wt(i)?i:null}}),dt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function vrt(r){return r=K({},r),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(MR),function(e){delete r[e]}),r}function prt(r,e,t){var n=Dt(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Dt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function drt(r){r.registerComponentModel(hrt),r.registerComponentView(frt),r.registerPreprocessor(function(e){var t=e.graphic;tt(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var nD=["x","y","radius","angle","single"],grt=["cartesian2d","polar","singleAxis"];function yrt(r){var e=r.get("coordinateSystem");return Gt(grt,e)>=0}function ro(r){return r+"Axis"}function mrt(r,e){var t=yt(),n=[],a=yt();r.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(v,p){var d=t.get(v);d&&d[p]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return n}function zN(r){var e=r.ecModel,t={infoList:[],infoMap:yt()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(ro(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var g0=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),mh=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=aD(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=aD(t);Ot(this.option,t,!0),Ot(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=yt(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return R(nD,function(a){var i=this.getReferringComponents(ro(a),l6);if(i.specified){n=!0;var o=new g0;R(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var h=u[0];if(h){var v=new g0;if(v.add(h.componentIndex),t.set(c,v),i=!1,c==="x"||c==="y"){var p=h.getReferringComponents("grid",$e).models[0];p&&R(u,function(d){h.componentIndex!==d.componentIndex&&p===d.getReferringComponents("grid",$e).models[0]&&v.add(d.componentIndex)})}}}i&&R(nD,function(u){if(i){var c=a.findComponents({mainType:ro(u),filter:function(v){return v.get("type",!0)==="category"}});if(c[0]){var h=new g0;h.add(c[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(ro(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){R(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(ro(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;R(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})($t);function aD(r){var e={};return R(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var _rt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(mh),Dw=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e})(Ee),xrt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(Dw),kl=R,iD=Hn,wrt=(function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(yrt(t)){var n=ro(this._dimName),a=t.getReferringComponents(n,$e).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Ct(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;kl(["start","end"],function(v,p){var d=e[v],m=e[v+"Value"];i[p]==="percent"?(d==null&&(d=o[p]),m=a.parse(ge(d,o,t))):(u=!0,m=m==null?t[p]:a.parse(m),d=ge(m,t,o)),l[p]=m==null||isNaN(m)?t[p]:m,s[p]=d==null||isNaN(d)?o[p]:d}),iD(l),iD(s);var c=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(v,p,d,m,x){var y=x?"Span":"ValueSpan";$s(0,v,d,"all",c["min"+y],c["max"+y]);for(var f=0;f<2;f++)p[f]=ge(v[f],d,m,!0),x&&(p[f]=a.parse(p[f]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Srt(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;kl(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var h=u.getStore(),v=et(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var d,m,x,y=0;y<c.length;y++){var f=h.get(v[y],p),_=!isNaN(f),S=f<o[0],b=f>o[1];if(_&&!S&&!b)return!0;_&&(x=!0),S&&(d=!0),b&&(m=!0)}return x&&d&&m})}else kl(c,function(p){if(i==="empty")l.setData(u=u.map(p,function(m){return s(m)?m:NaN}));else{var d={};d[p]=o,u.selectRange(d)}});kl(c,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;kl(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ge(n[0]+o,n,[0,100],!0):i!=null&&(o=ge(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var a=gP(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r})();function Srt(r,e,t){var n=[1/0,-1/0];kl(t,function(o){tZ(n,o.getData(),e)});var a=r.getAxisModel(),i=rk(a.axis.scale,a,n).calculate();return[i.min,i.max]}var brt={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(ro(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new wrt(a,i,s,r),t.push(o.__dzAxisProxy))});var n=yt();return R(t,function(a){R(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Art(r){r.registerAction("dataZoom",function(e,t){var n=mrt(t,e);R(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var oD=!1;function Iw(r){oD||(oD=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,brt),Art(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Trt(r){r.registerComponentModel(_rt),r.registerComponentView(xrt),Iw(r)}var Vn=(function(){function r(){}return r})(),VN={};function Ol(r,e){VN[r]=e}function FN(r){return VN[r]}var Crt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;R(this.option.feature,function(n,a){var i=FN(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Ot(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e})($t);function Mrt(r,e,t){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Qe(n,i,a);Is(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Id(r,n,i,a)}function GN(r,e){var t=vu(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new Kt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Lrt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];R(u,function(d,m){h.push(m)}),new yi(this._featureNames||[],h).add(v).update(v).remove(Et(v,null)).execute(),this._featureNames=h;function v(d,m){var x=h[d],y=h[m],f=u[x],_=new ye(f,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===x&&(f.title=i.newTitle),x&&!y){if(Drt(x))S={onclick:_.option.onclick,featureName:x};else{var b=FN(x);if(!b)return;S=new b}c[x]=S}else if(S=c[y],!S)return;S.uid=fu("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var A=S instanceof Vn;if(!x&&y){A&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||A&&S.unusable){A&&S.remove&&S.remove(n,a);return}p(_,S,x),_.setIconStatus=function(C,M){var L=this.option,D=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[C]=M,D[C]&&(M==="emphasis"?di:gi)(D[C])},S instanceof Vn&&S.render&&S.render(_,n,a,i)}function p(d,m,x){var y=d.getModel("iconStyle"),f=d.getModel(["emphasis","iconStyle"]),_=m instanceof Vn&&m.getIcons?m.getIcons():d.get("icon"),S=d.get("title")||{},b,A;ht(_)?(b={},b[x]=_):b=_,ht(S)?(A={},A[x]=S):A=S;var C=d.iconPaths={};R(b,function(M,L){var D=Ph(M,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var P=D.ensureState("emphasis");P.style=f.getItemStyle();var E=new re({style:{text:A[L],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:ox({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},n)},ignore:!0});D.setTextContent(E),Hs({el:D,componentModel:t,itemName:L,formatterParamsExtra:{title:A[L]}}),D.__title=A[L],D.on("mouseover",function(){var O=f.getItemStyle(),N=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:f.get("textFill")||O.fill||O.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),D.setTextConfig({position:f.get("textPosition")||N}),E.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",L])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(d.get(["iconStatus",L])==="emphasis"?di:gi)(D),o.add(D),D.on("click",ft(m.onclick,m,n,a,L)),C[L]=D})}Mrt(o,t,a),o.add(GN(o.getBoundingRect(),t)),l||o.eachChild(function(d){var m=d.__title,x=d.ensureState("emphasis"),y=x.textConfig||(x.textConfig={}),f=d.getTextContent(),_=f&&f.ensureState("emphasis");if(_&&!wt(_)&&m){var S=_.style||(_.style={}),b=Ah(m,re.makeFont(S)),A=d.x+o.x,C=d.y+o.y+s,M=!1;C+b.height>a.getHeight()&&(y.position="top",M=!0);var L=M?-5-b.height:s+10;A+b.width/2>a.getWidth()?(y.position=["100%",L],S.align="right"):A-b.width/2<0&&(y.position=[0,L],S.align="left")}})},e.prototype.updateView=function(t,n,a,i){R(this._features,function(o){o instanceof Vn&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){R(this._features,function(a){a instanceof Vn&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){R(this._features,function(a){a instanceof Vn&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e})(Ee);function Drt(r){return r.indexOf("my")===0}var Irt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Yt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),p=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];p&&(d=window.atob(d));var m=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var x=d.length,y=new Uint8Array(x);x--;)y[x]=d.charCodeAt(x);var f=new Blob([y]);window.navigator.msSaveOrOpenBlob(f,m)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,m),document.body.removeChild(_)}}else{var A=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(A&&A[0]||"")+'" /></body>',M=window.open();M.document.write(C),M.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e})(Vn),sD="__ec_magicType_stack__",Prt=[["line","bar"],["stack"]],Rrt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return R(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(lD[a]){var s={series:[]},l=function(h){var v=h.subType,p=h.id,d=lD[a](v,p,h,i);d&&(bt(d,h.option),s.series.push(d));var m=h.coordinateSystem;if(m&&m.type==="cartesian2d"&&(a==="line"||a==="bar")){var x=m.getAxesByScale("ordinal")[0];if(x){var y=x.dim,f=y+"Axis",_=h.getReferringComponents(f,$e).models[0],S=_.componentIndex;s[f]=s[f]||[];for(var b=0;b<=S;b++)s[f][S]=s[f][S]||{};s[f][S].boundaryGap=a==="bar"}}};R(Prt,function(h){Gt(h,a)>=0&&R(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ot({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Vn),lD={line:function(r,e,t,n){if(r==="bar")return Ot({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Ot({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===sD;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Ot({id:e,stack:a?"":sD},n.get(["option","stack"])||{},!0)}};Ha({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Xd=new Array(60).join("-"),au=" ";function Ert(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function krt(r){var e=[];return R(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(et(t.series,function(p){return p.name})),l=[a.model.getCategories()];R(t.series,function(p){var d=p.getRawData();l.push(p.getRawData().mapArray(d.mapDimension(o),function(m){return m}))});for(var u=[s.join(au)],c=0;c<l[0].length;c++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][c]);u.push(h.join(au))}e.push(u.join(`
|
|
38
|
+
`))}),e.join(`
|
|
39
|
+
|
|
40
|
+
`+Xd+`
|
|
41
|
+
|
|
42
|
+
`)}function Ort(r){return et(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+au:"")+a.join(au))}),n.join(`
|
|
43
|
+
`)}).join(`
|
|
44
|
+
|
|
45
|
+
`+Xd+`
|
|
46
|
+
|
|
47
|
+
`)}function Nrt(r){var e=Ert(r);return{value:fe([krt(e.seriesGroupByCategoryAxis),Ort(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
48
|
+
|
|
49
|
+
`+Xd+`
|
|
50
|
+
|
|
51
|
+
`),meta:e.meta}}function qp(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Brt(r){var e=r.slice(0,r.indexOf(`
|
|
52
|
+
`));if(e.indexOf(au)>=0)return!0}var y1=new RegExp("["+au+"]+","g");function zrt(r){for(var e=r.split(/\n+/g),t=qp(e.shift()).split(y1),n=[],a=et(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=qp(e[i]).split(y1);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Vrt(r){for(var e=r.split(/\n+/g),t=qp(e.shift()),n=[],a=0;a<e.length;a++){var i=qp(e[a]);if(i){var o=i.split(y1),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function Frt(r,e){var t=r.split(new RegExp(`
|
|
53
|
+
*`+Xd+`
|
|
54
|
+
*`,"g")),n={series:[]};return R(t,function(a,i){if(Brt(a)){var o=zrt(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Vrt(a);n.series.push(o)}}),n}var Grt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),p=Nrt(t);if(wt(h)){var d=h(n.getOption());ht(d)?u.innerHTML=d:$l(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var m=c.style;m.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",m.color=i.get("textColor"),m.borderColor=i.get("textareaBorderColor"),m.backgroundColor=i.get("textareaColor"),c.value=p.value,u.appendChild(c)}var x=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var f="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");f+=";background-color:"+i.get("buttonColor"),f+=";color:"+i.get("buttonTextColor");var b=this;function A(){a.removeChild(o),b._dom=null}j0(_,"click",A),j0(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){A();return}var C;try{wt(v)?C=v(u,n.getOption()):C=Frt(c.value,x)}catch(M){throw A(),new Error("Data view format error "+M)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),A()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=f,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e})(Vn);function Hrt(r,e){return et(r,function(t,n){var a=e&&e[n];if(Tt(a)&&!tt(a)){var i=Tt(t)&&!tt(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=bt(t,a),o&&delete t.name,t}else return t})}Ha({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];R(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(K({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:Hrt(n.data,i)})}}),e.mergeOption(bt({series:t},r.newOption))});var HN=R,WN=Qt();function Wrt(r,e){var t=Pw(r);HN(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Urt(r){var e=Pw(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return HN(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function Yrt(r){WN(r).snapshots=null}function Zrt(r){return Pw(r).length}function Pw(r){var e=WN(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Xrt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){Yrt(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e})(Vn);Ha({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var $rt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rw=(function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=uD(t,e);R(jrt,function(o,s){(!n||!n.include||Gt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=y0[n.brushType](0,i,a);n.__rangeOffset={offset:vD[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){R(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&R(i.coordSyses,function(o){var s=y0[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){R(e,function(n){var a=this.findTargetInfo(n,t);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=y0[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?vD[n.brushType](i.values,o.offset,qrt(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return et(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:KO(a),isTargetByCursor:JO(a,e,n.coordSysModel),getLinearBrushOtherExtent:QO(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&Gt(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=uD(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<cD.length;l++)if(cD[l](a,o))return o}return!0},r})();function m1(r){return r[0]>r[1]&&r.reverse(),r}function uD(r,e){return Oc(r,e,{includeMainTypes:$rt})}var jrt={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=yt(),o={},s={};!t&&!n&&!a||(R(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),R(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),R(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(h,v){(Gt(t,h.getAxis("x").model)>=0||Gt(n,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:hD.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){R(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:hD.geo})})}},cD=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],hD={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Ds(r)),e}},y0={lineX:Et(fD,0),lineY:Et(fD,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[m1([a[0],i[0]]),m1([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=et(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function fD(r,e,t,n){var a=t.getAxis(["x","y"][r]),i=m1(et([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var vD={lineX:Et(pD,0),lineY:Et(pD,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return et(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function pD(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function qrt(r,e){var t=dD(r),n=dD(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function dD(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var _1=R,Krt=n6("toolbox-dataZoom_"),Qrt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new iw(a.getZr()),this._brushController.on("brush",ft(this._onBrush,this)).mount()),ent(t,n,this,i,a),tnt(t,n)},e.prototype.onclick=function(t,n,a){Jrt[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Rw(Ew(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[v],h,c)}}),Wrt(i,a),this._dispatchZoomAction(a);function s(u,c,h){var v=c.getAxis(u),p=v.model,d=l(u,p,i),m=d.findRepresentativeAxisProxy(p).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(h=$s(0,h.slice(),v.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var d=p.getAxisModel(u,c.componentIndex);d&&(v=p)}),v}},e.prototype._dispatchZoomAction=function(t){var n=[];_1(t,function(a,i){n.push(Ct(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e})(Vn),Jrt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Urt(this.ecModel))}};function Ew(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function tnt(r,e){r.setIconStatus("back",Zrt(e)>1?"emphasis":"normal")}function ent(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Rw(Ew(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}L7("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Ew(n),o=Oc(r,i);_1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),_1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Krt+u+h};v[c]=h,a.push(v)}return a});function rnt(r){r.registerComponentModel(Crt),r.registerComponentView(Lrt),Ol("saveAsImage",Irt),Ol("magicType",Rrt),Ol("dataView",Grt),Ol("dataZoom",Qrt),Ol("restore",Xrt),Wt(Trt)}var nnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e})($t);function UN(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function YN(r){if(Yt.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var ZN=YN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ant=YN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function XN(r,e){if(!r)return e;e=TR(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function int(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var ont=XN(ant,"transition"),kw=XN(ZN,"transform"),snt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Yt.transform3dSupported?"will-change:transform;":"");function lnt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function unt(r,e,t){if(!ht(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=Bs(e);var i=lnt(t),o=Math.max(Math.round(a)*1.5,6),s="",l=kw+":",u;Gt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+a,v=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-h)/2)*100)/100;s+=";"+i+":-"+p+"px";var d=e+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function cnt(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,a="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,a+=Yt.transformSupported?","+kw+n:",left"+n+",top"+n),ont+":"+a}function gD(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Yt.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Yt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+kw+":"+o+";":[["top",0],["left",0],[ZN,o]]}function hnt(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=Rt(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),R(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function fnt(r,e,t){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=iE(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),e&&a&&n.push(cnt(a,t)),i&&n.push("background-color:"+i),R(["width","color","radius"],function(p){var d="border-"+p,m=TR(d),x=r.get(m);x!=null&&n.push(d+":"+x+(p==="color"?"":"px"))}),n.push(hnt(c)),h!=null&&n.push("padding:"+vu(h).join("px ")+"px"),n.join(";")+";"}function yD(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&OH(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var vnt=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Yt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(ht(i)?document.querySelector(i):$l(i)?i:wt(i)&&i(e.getDom()));yD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();kn(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=int(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=snt+fnt(e,!this._firstShow,this._longHide)+gD(i[0],i[1],!0)+("border-color:"+Bs(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ht(i)&&n.get("trigger")==="item"&&!UN(n)&&(s=unt(n,a,i)),ht(e))o.innerHTML=e+s;else if(e){o.innerHTML="",tt(e)||(e=[e]);for(var l=0;l<e.length;l++)$l(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(yD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=gD(n[0],n[1]);R(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Yt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ft(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r})(),pnt=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),_D(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;Tt(e)&&he(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new re({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:iE(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=mD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;_D(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Ui(i.borderWidth||0),s=mD(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ft(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Ui(r){return Math.max(0,r)}function mD(r){var e=Ui(r.shadowBlur||0),t=Ui(r.shadowOffsetX||0),n=Ui(r.shadowOffsetY||0);return{left:Ui(e-t),right:Ui(e+t),top:Ui(e-n),bottom:Ui(e+n)}}function _D(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var dnt=new Kt({shape:{x:-1,y:-1,width:2,height:2}}),gnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(Yt.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=c6(a.get("renderMode"));this._tooltipContent=i==="richText"?new pnt(n):new vnt(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(Yt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?yu(this,"_updatePosition",50,"fixRate"):ih(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");PN("itemTooltip",this._api,ft(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||Yt.node||!a.getDom())){var o=xD(i,a);this._ticket="";var s=i.dataByCoordSys,l=xnt(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=dnt;c.x=i.x,c.y=i.y,c.update(),Dt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,a,i))return;var h=RN(i,n),v=h.point[0],p=h.point[1];v!=null&&p!=null&&this._tryShow({offsetX:v,offsetY:p,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(xD(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),h=lc([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=Dt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xs(a,function(c){if(Dt(c).dataIndex!=null)return l=c,!0;if(Dt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=ft(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=lc([n.tooltipOption],i),l=this._renderMode,u=[],c=ur("section",{blocks:[],noHeader:!0}),h=[],v=new rm;R(t,function(f){R(f.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var A=LN(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),C=ur("section",{header:A,noHeader:!oa(A),sortBlocks:!0,blocks:[]});c.blocks.push(C),R(_.seriesDataIndices,function(M){var L=a.getSeriesByIndex(M.seriesIndex),D=M.dataIndexInside,P=L.getDataParams(D);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=Ex(S.axis,{value:b}),P.axisValueLabel=A,P.marker=v.makeTooltipMarker("item",Bs(P.color),l);var E=oT(L.formatTooltip(D,!0,null)),O=E.frag;if(O){var N=lc([L],i).get("valueFormatter");C.blocks.push(N?K({valueFormatter:N},O):O)}E.text&&h.push(E.text),u.push(P)}})}})}),c.blocks.reverse(),h.reverse();var p=n.position,d=s.get("order"),m=fT(c,v,l,d,a.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var x=l==="richText"?`
|
|
55
|
+
|
|
56
|
+
`:"<br/>",y=h.join(x);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],p,null,v)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=Dt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,h=o.dataType,v=u.getData(h),p=this._renderMode,d=t.positionDefault,m=lc([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),x=m.get("trigger");if(!(x!=null&&x!=="item")){var y=u.getDataParams(c,h),f=new rm;y.marker=f.makeTooltipMarker("item",Bs(y.color),p);var _=oT(u.formatTooltip(c,!1,h)),S=m.get("order"),b=m.get("valueFormatter"),A=_.frag,C=A?fT(b?K({valueFormatter:b},A):A,f,p,S,i.get("useUTC"),m.get("textStyle")):_.text,M="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,C,y,M,t.offsetX,t.offsetY,t.position,t.target,f)}),a({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=Dt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ht(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Ct(l),l.content=Gr(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var p=t.positionDefault,d=lc(h,this._tooltipModel,p?{position:p}:null),m=d.get("content"),x=Math.random()+"",y=new rm;this._showOrMove(d,function(){var f=Ct(d.get("formatterParams")||{});this._showTooltipContent(d,m,f,x,t.offsetX,t.offsetY,t.position,n,y)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var p=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),m=d.color;if(v)if(ht(v)){var x=t.ecModel.get("useUTC"),y=tt(a)?a[0]:a,f=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=v,f&&(p=Td(y.axisValue,p,x)),p=CR(p,a,!0)}else if(wt(v)){var _=ft(function(S,b){S===this._ticket&&(h.setContent(b,c,t,m,l),this._updatePosition(t,l,o,s,h,a,u))},this);this._ticket=i,p=v(a,i,_)}else p=v;h.setContent(p,c,t,m,l),h.show(t,m),this._updatePosition(t,l,o,s,h,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i){if(a==="axis"||tt(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!tt(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||t.get("position");var h=o.getSize(),v=t.get("align"),p=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),wt(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,c],contentSize:h.slice()})),tt(n))a=ut(n[0],u),i=ut(n[1],c);else if(Tt(n)){var m=n;m.width=h[0],m.height=h[1];var x=Qe(m,{width:u,height:c});a=x.x,i=x.y,v=null,p=null}else if(ht(n)&&l){var y=_nt(n,d,h,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=ynt(a,i,o,u,c,v?null:20,p?null:20);a=y[0],i=y[1]}if(v&&(a-=wD(v)?h[0]/2:v==="right"?h[0]:0),p&&(i-=wD(p)?h[1]/2:p==="bottom"?h[1]:0),UN(t)){var y=mnt(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&R(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&R(u,function(v,p){var d=h[p]||{},m=v.seriesDataIndices||[],x=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===x.length,o&&R(m,function(y,f){var _=x[f];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&R(v.seriesDataIndices,function(y){var f=y.seriesIndex,_=n[f],S=i[f];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){Yt.node||!n.getDom()||(ih(this,"_updatePosition"),this._tooltipContent.dispose(),p1("itemTooltip",n))},e.type="tooltip",e})(Ee);function lc(r,e,t){var n=e.ecModel,a;t?(a=new ye(t,n,n),a=new ye(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ye&&(o=o.get("tooltip",!0)),ht(o)&&(o={formatter:o}),o&&(a=new ye(o,a,n)))}return a}function xD(r,e){return r.dispatchAction||ft(e.dispatchAction,e)}function ynt(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function mnt(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function _nt(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function wD(r){return r==="center"||r==="middle"}function xnt(r,e,t){var n=X1(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Th(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Dt(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function wnt(r){Wt(Uh),r.registerComponentModel(nnt),r.registerComponentView(gnt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},We),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},We)}var Snt=["rect","polygon","keep","clear"];function bnt(r,e){var t=me(r?r.brush:[]);if(t.length){var n=[];R(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;tt(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),Ant(s),e&&!s.length&&s.push.apply(s,Snt)}}function Ant(r){var e={};R(r,function(t){e[t]=1}),r.length=0,R(e,function(t,n){r.push(n)})}var SD=R;function bD(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function x1(r,e,t){var n={};return SD(e,function(i){var o=n[i]=a();SD(r[i],function(s,l){if(sr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new sr(u),l==="opacity"&&(u=Ct(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new sr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function $N(r,e,t){var n;R(t,function(a){e.hasOwnProperty(a)&&bD(e[a])&&(n=!0)}),n&&R(t,function(a){e.hasOwnProperty(a)&&bD(e[a])?r[a]=Ct(e[a]):delete r[a]})}function Tnt(r,e,t,n,a,i){var o={};R(r,function(h){var v=sr.prepareVisualTypes(e[h]);o[h]=v});var s;function l(h){return bx(t,s,h)}function u(h,v){dE(t,s,h,v)}t.each(c);function c(h,v){s=h;var p=t.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var d=n.call(a,h),m=e[d],x=o[d],y=0,f=x.length;y<f;y++){var _=x[y];m[_]&&m[_].applyVisual(h,l,u)}}}function Cnt(r,e,t,n){var a={};return R(r,function(i){var o=sr.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return bx(s,h,b)}function c(b,A){dE(s,h,b,A)}for(var h,v=s.getStore();(h=o.next())!=null;){var p=s.getRawDataItem(h);if(!(p&&p.visualMap===!1))for(var d=n!=null?v.get(l,h):h,m=t(d),x=e[m],y=a[m],f=0,_=y.length;f<_;f++){var S=y[f];x[S]&&x[S].applyVisual(d,u,c)}}}}}function Mnt(r){var e=r.brushType,t={point:function(n){return AD[e].point(n,t,r)},rect:function(n){return AD[e].rect(n,t,r)}};return t}var AD={lineX:TD(0),lineY:TD(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&fs(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(fs(n,a,i)||fs(n,a+o,i)||fs(n,a,i+s)||fs(n,a+o,i+s)||zt.create(r).contain(l[0],l[1])||wc(a,i,a+o,i,n)||wc(a,i,a,i+s,n)||wc(a+o,i,a+o,i+s,n)||wc(a,i+s,a+o,i+s,n))return!0}}};function TD(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return uc(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),uc(s[0],o)||uc(s[1],o)||uc(o[0],s)||uc(o[1],s)}}}}function uc(r,e){return e[0]<=r&&r<=e[1]}var CD=["inBrush","outOfBrush"],m0="__ecBrushSelect",w1="__ecInBrushSelectEvent";function jN(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Rw(e.option,r);t.setInputRanges(e.areas,r)})}function Lnt(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),jN(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ct(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,h=[],v=[],p=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var m=et(o.areas,function(b){var A=Rnt[b.brushType],C=bt({boundingRect:A?A(b):void 0},b);return C.selectors=Mnt(C),C}),x=x1(o.option,CD,function(b){b.mappingMethod="fixed"});tt(c)&&R(c,function(b){h[b]=1});function y(b){return c==="all"||!!h[b]}function f(b){return!!b.length}r.eachSeries(function(b,A){var C=p[A]=[];b.subType==="parallel"?_(b,A):S(b,A,C)});function _(b,A){var C=b.coordinateSystem;d=d||C.hasAxisBrushed(),y(A)&&C.eachActiveState(b.getData(),function(M,L){M==="active"&&(v[L]=1)})}function S(b,A,C){if(!(!b.brushSelector||Pnt(o,A))&&(R(m,function(L){o.brushTargetManager.controlSeries(L,b,r)&&C.push(L),d=d||f(C)}),y(A)&&f(C))){var M=b.getData();M.each(function(L){MD(b,C,M,L)&&(v[L]=1)})}}r.eachSeries(function(b,A){var C={seriesId:b.id,seriesIndex:A,seriesName:b.name,dataIndex:[]};l.selected.push(C);var M=p[A],L=b.getData(),D=y(A)?function(P){return v[P]?(C.dataIndex.push(L.getRawIndex(P)),"inBrush"):"outOfBrush"}:function(P){return MD(b,M,L,P)?(C.dataIndex.push(L.getRawIndex(P)),"inBrush"):"outOfBrush"};(y(A)?d:f(M))&&Tnt(CD,x,L,D)})}),Dnt(e,a,i,n,t)}function Dnt(r,e,t,n,a){if(a){var i=r.getZr();if(!i[w1]){i[m0]||(i[m0]=Int);var o=yu(i,m0,t,e);o(r,n)}}}function Int(r,e){if(!r.isDisposed()){var t=r.getZr();t[w1]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[w1]=!1}}function MD(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function Pnt(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(tt(t)?Gt(t,e)<0:e!==t)}var Rnt={rect:function(r){return LD(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&LD(e)}};function LD(r){return new zt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Ent=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new iw(n.getZr())).on("brush",ft(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){jN(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ct(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ct(a),$from:n})},e.type="brush",e})(Ee),knt="#ddd",Ont=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&$N(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:knt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=et(t,function(n){return DD(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=DD(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e})($t);function DD(r,e){return Ot({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ye(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var Nnt=["rect","polygon","lineX","lineY","keep","clear"],Bnt=(function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,R(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return R(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:Nnt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e})(Vn);function znt(r){r.registerComponentView(Ent),r.registerComponentModel(Ont),r.registerPreprocessor(bnt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Lnt),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},We),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},We),Ol("brush",Bnt)}var Vnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e})($t),Fnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Rt(t.get("textBaseline"),t.get("textVerticalAlign")),c=new re({style:Ce(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),v=t.get("subtext"),p=new re({style:Ce(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),m=t.get("sublink"),x=t.get("triggerEvent",!0);c.silent=!d&&!x,p.silent=!m&&!x,d&&c.on("click",function(){Cp(d,"_"+t.get("target"))}),m&&p.on("click",function(){Cp(m,"_"+t.get("subtarget"))}),Dt(c).eventData=Dt(p).eventData=x?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),v&&i.add(p);var y=i.getBoundingRect(),f=t.getBoxLayoutParams();f.width=y.width,f.height=y.height;var _=Qe(f,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),p.setStyle(S),y=i.getBoundingRect();var b=_.margin,A=t.getItemStyle(["color","opacity"]);A.fill=t.get("backgroundColor");var C=new Kt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e})(Ee);function Gnt(r){r.registerComponentModel(Vnt),r.registerComponentView(Fnt)}var ID=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],R(n,function(u,c){var h=Ke(lu(u),""),v;Tt(u)?(v=Ct(u),v.value=c):v=c,o.push(v),i.push(h)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Hr([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e})($t),qN=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=yo(ID.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e})(ID);qe(qN,Rd.prototype);var Hnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(Ee),Wnt=(function(r){j(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(va),_0=Math.PI,PD=Qt(),Unt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ur("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=Znt(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":ht(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:_0/2},h=i==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),p=v.get("show",!0),d=p?v.get("itemSize"):0,m=p?v.get("itemGap"):0,x=d+m,y=t.get(["label","rotate"])||0;y=y*_0/180;var f,_,S,b=v.get("position",!0),A=p&&v.get("showPlayBtn",!0),C=p&&v.get("showPrevBtn",!0),M=p&&v.get("showNextBtn",!0),L=0,D=h;b==="left"||b==="bottom"?(A&&(f=[0,0],L+=x),C&&(_=[L,0],L+=x),M&&(S=[D-d,0],D-=x)):(A&&(f=[D-d,0],D-=x),C&&(_=[0,0],L+=x),M&&(S=[D-d,0],D-=x));var P=[L,D];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:f,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:d,controlGap:m}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=_n(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Gs(s,s,-_0/2),Na(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=f(o),h=f(a.getBoundingRect()),v=f(i.getBoundingRect()),p=[a.x,a.y],d=[i.x,i.y];d[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(m==null||ht(m)){var x=m==="+"?0:1;_(p,h,c,1,x),_(d,v,c,1,1-x)}else{var x=m>=0?0:1;_(p,h,c,1,x),d[1]=p[1]+m}a.setPosition(p),i.setPosition(d),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function f(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,A,C,M){S[C]+=A[C][M]-b[C][M]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=Ynt(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Wnt("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new Lt;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new ir({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new ir({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:bt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=a.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),m={x:c,y:0,onclick:ft(o._changeTimeline,o,u.value)},x=RD(h,v,n,m);x.ensureState("emphasis").style=p.getItemStyle(),x.ensureState("progress").style=d.getItemStyle(),Ls(x);var y=Dt(x);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(x)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],R(u,function(c){var h=c.tickValue,v=l.getItemModel(h),p=v.getModel("label"),d=v.getModel(["emphasis","label"]),m=v.getModel(["progress","label"]),x=a.dataToCoord(c.tickValue),y=new re({x,y:0,rotation:t.labelRotation-t.rotation,onclick:ft(o._changeTimeline,o,h),silent:!1,style:Ce(p,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ce(d),y.ensureState("progress").style=Ce(m),n.add(y),Ls(y),PD(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),h=i.get("inverse",!0);v(t.nextBtnPosition,"next",ft(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",ft(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,c?"stop":"play",ft(this._handlePlayClick,this,!c),!0);function v(p,d,m,x){if(p){var y=ca(Rt(i.get(["controlStyle",d+"BtnSize"]),o),o),f=[0,-y/2,y,y],_=Xnt(i,d+"Icon",f,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:x?-s:0,rectHover:!0,style:l,onclick:m});_.ensureState("emphasis").style=u,n.add(_),Ls(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=ft(u._handlePointerDrag,u),h.ondragend=ft(u._handlePointerDragend,u),ED(h,u._progressLine,s,a,i,!0)},onUpdate:function(h){ED(h,u._progressLine,s,a,i)}};this._currentPointer=RD(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=Hn(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return ua(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",PD(a[i]).dataIndex<=t)},e.type="timeline.slider",e})(Hnt);function Ynt(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new zd({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Px({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new mi}}function Znt(r,e){return Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function Xnt(r,e,t,n){var a=n.style,i=Ph(r.get(["controlStyle",e]),n||{},new zt(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function RD(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=je(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=Ot({rectHover:!0,z2:100},n,!0);var u=mu(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Us(r.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var h=r.get("symbolRotate");return n.rotation=(h||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function ED(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function $nt(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),bt({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function jnt(r){var e=r&&r.timeline;tt(e)||(e=e?[e]:[]),R(e,function(t){t&&qnt(t)})}function qnt(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),kD(r),ds(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ds(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ds(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}R(r.data||[],function(a){Tt(a)&&!tt(a)&&(!ds(a,"value")&&ds(a,"name")&&(a.value=a.name),kD(a))})}function kD(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};R(n,function(o,s){!i[s]&&!ds(a,s)&&(a[s]=o)}),t.label&&!ds(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function ds(r,e){return r.hasOwnProperty(e)}function Knt(r){r.registerComponentModel(qN),r.registerComponentView(Unt),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),$nt(r),r.registerPreprocessor(jnt)}function Ow(r,e){if(!r)return!1;for(var t=tt(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function Ov(r){Es(r,"label",["show"])}var Nv=Qt(),xi=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Yt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Nv(s)[o];if(!l||!l.data){Nv(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Ov(l),R(l.data,function(c){c instanceof Array?(Ov(c[0]),Ov(c[1])):Ov(c)}),u=this.createMarkerModelFromSeries(l,this,n),K(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Nv(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ur("section",{header:this.name,blocks:[ur("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var a=Rd.prototype.getDataParams.call(this,t,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},e.getMarkerModelFromSeries=function(t,n){return Nv(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})($t);qe(xi,Rd.prototype);var Qnt=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(xi);function S1(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Jnt(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Bv(r,e,t,n,a,i){var o=[],s=fo(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Nw(e,l,r),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,c),o[i]=e.get(l,c);var h=e.get(n,c),v=Da(e.get(n,c));return v=Math.min(v,20),v>=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var x0={min:Et(Bv,"min"),max:Et(Bv,"max"),average:Et(Bv,"average"),median:Et(Bv,"median")};function _h(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!Jnt(e)&&!tt(e.coord)&&tt(a)){var i=KN(e,t,n,r);if(e=Ct(e),e.type&&x0[e.type]&&i.baseAxis&&i.valueAxis){var o=Gt(a,i.baseAxis.dim),s=Gt(a,i.valueAxis.dim),l=x0[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!tt(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)x0[u[c]]&&(u[c]=Nw(t,t.mapDimension(a[c]),u[c]));return e}}function KN(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(tat(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function tat(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xh(r,e){return r&&r.containData&&e.coord&&!S1(e)?r.containData(e.coord):!0}function eat(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!S1(e)&&!S1(t)?r.containZone(e.coord,t.coord):!0}function QN(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return io(o,e[i])}:function(t,n,a,i){return io(t.value,e[i])}}function Nw(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var w0=Qt(),Bw=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=yt()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){w0(s).keep=!1}),n.eachSeries(function(s){var l=xi.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!w0(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){w0(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;R(t,function(i){var o=xi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?WP(l):tx(l))})}})},e.type="marker",e})(Ee);function OD(r,e,t){var n=e.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=ut(i.get("x"),t.getWidth()),l=ut(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),c=r.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var rat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=xi.getMarkerModelFromSeries(i,"markPoint");o&&(OD(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Bh),h=nat(o,t,n);n.setData(h),OD(n.getData(),t,i),h.each(function(v){var p=h.getItemModel(v),d=p.getShallow("symbol"),m=p.getShallow("symbolSize"),x=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),f=p.getShallow("symbolKeepAspect");if(wt(d)||wt(m)||wt(x)||wt(y)){var _=n.getRawValue(v),S=n.getDataParams(v);wt(d)&&(d=d(_,S)),wt(m)&&(m=m(_,S)),wt(x)&&(x=x(_,S)),wt(y)&&(y=y(_,S))}var b=p.getModel("itemStyle").getItemStyle(),A=Eh(l,"color");b.fill||(b.fill=A),h.setItemVisual(v,{symbol:d,symbolSize:m,symbolRotate:x,symbolOffset:y,symbolKeepAspect:f,style:b})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(v){v.traverse(function(p){Dt(p).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e})(Bw);function nat(r,e,t){var n;r?n=et(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Hr(n,t),i=et(t.get("data"),Et(_h,e));r&&(i=fe(i,Et(xh,r)));var o=QN(!!r,n);return a.initData(i,null,o),a}function aat(r){r.registerComponentModel(Qnt),r.registerComponentView(rat),r.registerPreprocessor(function(e){Ow(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var iat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(xi),zv=Qt(),oat=function(r,e,t,n){var a=r.getData(),i;if(tt(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=pr(n.yAxis,n.xAxis);else{var u=KN(n,a,e,r);s=u.valueAxis;var c=UE(a,u.valueDataDim);l=Nw(a,c,o)}var h=s.dim==="x"?0:1,v=1-h,p=Ct(n),d={coord:[]};p.type=null,p.coord=[],p.coord[v]=-1/0,d.coord[v]=1/0;var m=t.get("precision");m>=0&&ae(l)&&(l=+l.toFixed(Math.min(m,20))),p.coord[h]=d.coord[h]=l,i=[p,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var x=[_h(r,i[0]),_h(r,i[1]),K({},i[2])];return x[2].type=x[2].type||null,Ot(x[2],x[0]),Ot(x[2],x[1]),x};function Kp(r){return!isNaN(r)&&!isFinite(r)}function ND(r,e,t,n){var a=1-r,i=n.dimensions[r];return Kp(e[a])&&Kp(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function sat(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(ND(1,t,n,r)||ND(0,t,n,r)))return!0}return xh(r,e[0])&&xh(r,e[1])}function S0(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=ut(o.get("x"),a.getWidth()),u=ut(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,h=r.get(c[0],e),v=r.get(c[1],e);s=i.dataToPoint([h,v])}if(Zs(i,"cartesian2d")){var p=i.getAxis("x"),d=i.getAxis("y"),c=i.dimensions;Kp(r.get(c[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[t?0:1]):Kp(r.get(c[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var lat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=xi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=zv(o).from,u=zv(o).to;l.each(function(c){S0(l,c,!0,i,a),S0(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new aw);this.group.add(c.group);var h=uat(o,t,n),v=h.from,p=h.to,d=h.line;zv(n).from=v,zv(n).to=p,n.setData(d);var m=n.get("symbol"),x=n.get("symbolSize"),y=n.get("symbolRotate"),f=n.get("symbolOffset");tt(m)||(m=[m,m]),tt(x)||(x=[x,x]),tt(y)||(y=[y,y]),tt(f)||(f=[f,f]),h.from.each(function(S){_(v,S,!0),_(p,S,!1)}),d.each(function(S){var b=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),p.getItemLayout(S)]),b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:p.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(S,"symbolOffset"),toSymbolRotate:p.getItemVisual(S,"symbolRotate"),toSymbolSize:p.getItemVisual(S,"symbolSize"),toSymbol:p.getItemVisual(S,"symbol"),style:b})}),c.updateData(d),h.line.eachItemGraphicEl(function(S){Dt(S).dataModel=n,S.traverse(function(b){Dt(b).dataModel=n})});function _(S,b,A){var C=S.getItemModel(b);S0(S,b,A,t,i);var M=C.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Eh(l,"color")),S.setItemVisual(b,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Rt(C.get("symbolOffset",!0),f[A?0:1]),symbolRotate:Rt(C.get("symbolRotate",!0),y[A?0:1]),symbolSize:Rt(C.get("symbolSize"),x[A?0:1]),symbol:Rt(C.get("symbol",!0),m[A?0:1]),style:M})}this.markKeep(c),c.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e})(Bw);function uat(r,e,t){var n;r?n=et(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Hr(n,t),i=new Hr(n,t),o=new Hr([],t),s=et(t.get("data"),Et(oat,e,r,t));r&&(s=fe(s,Et(sat,r)));var l=QN(!!r,n);return a.initData(et(s,function(u){return u[0]}),null,l),i.initData(et(s,function(u){return u[1]}),null,l),o.initData(et(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function cat(r){r.registerComponentModel(iat),r.registerComponentView(lat),r.registerPreprocessor(function(e){Ow(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(xi),Vv=Qt(),fat=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=_h(r,a),s=_h(r,i),l=o.coord,u=s.coord;l[0]=pr(l[0],-1/0),l[1]=pr(l[1],-1/0),u[0]=pr(u[0],1/0),u[1]=pr(u[1],1/0);var c=N1([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Qp(r){return!isNaN(r)&&!isFinite(r)}function BD(r,e,t,n){var a=1-r;return Qp(e[a])&&Qp(t[a])}function vat(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Zs(r,"cartesian2d")?t&&n&&(BD(1,t,n)||BD(0,t,n))?!0:eat(r,a,i):xh(r,a)||xh(r,i)}function zD(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=ut(o.get(t[0]),a.getWidth()),u=ut(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(c),p=i.clampData(h),d=[];t[0]==="x0"?d[0]=v[0]>p[0]?h[0]:c[0]:d[0]=v[0]>p[0]?c[0]:h[0],t[1]==="y0"?d[1]=v[1]>p[1]?h[1]:c[1]:d[1]=v[1]>p[1]?c[1]:h[1],s=n.getMarkerPosition(d,t,!0)}else{var m=r.get(t[0],e),x=r.get(t[1],e),y=[m,x];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Zs(i,"cartesian2d")){var f=i.getAxis("x"),_=i.getAxis("y"),m=r.get(t[0],e),x=r.get(t[1],e);Qp(m)?s[0]=f.toGlobalCoord(f.getExtent()[t[0]==="x0"?0:1]):Qp(x)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var VD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],pat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=xi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=et(VD,function(h){return zD(s,l,h,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Lt});this.group.add(c.group),this.markKeep(c);var h=dat(o,t,n);n.setData(h),h.each(function(v){var p=et(VD,function(M){return zD(h,v,M,t,i)}),d=o.getAxis("x").scale,m=o.getAxis("y").scale,x=d.getExtent(),y=m.getExtent(),f=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[m.parse(h.get("y0",v)),m.parse(h.get("y1",v))];Hn(f),Hn(_);var S=!(x[0]>f[1]||x[1]<f[0]||y[0]>_[1]||y[1]<_[0]),b=!S;h.setItemLayout(v,{points:p,allClipped:b});var A=h.getItemModel(v).getModel("itemStyle").getItemStyle(),C=Eh(l,"color");A.fill||(A.fill=C,ht(A.fill)&&(A.fill=pp(A.fill,.4))),A.stroke||(A.stroke=C),h.setItemVisual(v,"style",A)}),h.diff(Vv(c).data).add(function(v){var p=h.getItemLayout(v);if(!p.allClipped){var d=new Xr({shape:{points:p.points}});h.setItemGraphicEl(v,d),c.group.add(d)}}).update(function(v,p){var d=Vv(c).data.getItemGraphicEl(p),m=h.getItemLayout(v);m.allClipped?d&&c.group.remove(d):(d?oe(d,{shape:{points:m.points}},n,v):d=new Xr({shape:{points:m.points}}),h.setItemGraphicEl(v,d),c.group.add(d))}).remove(function(v){var p=Vv(c).data.getItemGraphicEl(v);c.group.remove(p)}).execute(),h.eachItemGraphicEl(function(v,p){var d=h.getItemModel(p),m=h.getItemVisual(p,"style");v.useStyle(h.getItemVisual(p,"style")),br(v,lr(d),{labelFetcher:n,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:ht(m.fill)?pp(m.fill,1):"#000"}),Sr(v,d),Ne(v,null,null,d.get(["emphasis","disabled"])),Dt(v).dataModel=n}),Vv(c).data=h,c.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e})(Bw);function dat(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=et(r&&r.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},h),{name:u,ordinalMeta:null})});a=et(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new Hr(a,t)}else a=[{name:"value",type:"float"}],n=new Hr(a,t);var s=et(t.get("data"),Et(fat,e,r,t));r&&(s=fe(s,Et(vat,r)));var l=r?function(u,c,h,v){var p=u.coord[Math.floor(v/2)][v%2];return io(p,a[v])}:function(u,c,h,v){return io(u.value,a[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}function gat(r){r.registerComponentModel(hat),r.registerComponentView(pat),r.registerPreprocessor(function(e){Ow(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var yat=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},b1=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),tt(n)&&R(n,function(i,o){ht(i)&&(i={type:i}),n[o]=Ot(i,yat(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):c=!0}else c=!0;c&&Z1(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=yt(),s=et(i,function(l){return(ht(l)||ae(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ye(l,this,this.ecModel))},this);this._data=fe(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;R(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;R(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;R(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&Gt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e})($t),Ml=Et,A1=R,Fv=Lt,JN=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Fv),this.group.add(this._selectorGroup=new Fv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var c=t.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},v=t.get("padding"),p=Qe(c,h,v),d=this.layoutInner(t,o,p,i,l,u),m=Qe(bt({width:d.width,height:d.height},c),h,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=GN(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),c=yt(),h=n.get("selectedMode"),v=[];a.eachRawSeries(function(p){!p.get("legendHoverLink")&&v.push(p.id)}),A1(n.getData(),function(p,d){var m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
57
|
+
`)){var x=new Fv;x.newline=!0,u.add(x);return}var y=a.getSeriesByName(m)[0];if(!c.get(m))if(y){var f=y.getData(),_=f.getVisual("legendLineStyle")||{},S=f.getVisual("legendIcon"),b=f.getVisual("style"),A=this._createItem(y,m,d,p,n,t,_,b,S,h,i);A.on("click",Ml(FD,m,null,i,v)).on("mouseover",Ml(T1,y.name,null,i,v)).on("mouseout",Ml(C1,y.name,null,i,v)),a.ssr&&A.eachChild(function(C){var M=Dt(C);M.seriesIndex=y.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(C){if(!c.get(m)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(m))return;var L=M.indexOfName(m),D=M.getItemVisual(L,"style"),P=M.getItemVisual(L,"legendIcon"),E=xn(D.fill);E&&E[3]===0&&(E[3]=.2,D=K(K({},D),{fill:ci(E,"rgba")}));var O=this._createItem(C,m,d,p,n,t,{},D,P,h,i);O.on("click",Ml(FD,null,m,i,v)).on("mouseover",Ml(T1,null,m,i,v)).on("mouseout",Ml(C1,null,m,i,v)),a.ssr&&O.eachChild(function(N){var z=Dt(N);z.seriesIndex=C.seriesIndex,z.dataIndex=d,z.ssrType="legend"}),c.set(m,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();A1(t,function(u){var c=u.type,h=new re({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),p=n.getModel(["emphasis","selectorLabel"]);br(h,{normal:v,emphasis:p},{defaultText:u.title}),Ls(h)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,c,h,v){var p=t.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),x=o.isSelected(n),y=i.get("symbolRotate"),f=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=mat(c,i,l,u,p,x,v),b=new Fv,A=i.getModel("textStyle");if(wt(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:f}));else{var C=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(_at({itemWidth:d,itemHeight:m,icon:c,iconRotate:C,itemStyle:S.itemStyle,symbolKeepAspect:f}))}var M=s==="left"?d+5:-5,L=s,D=o.get("formatter"),P=n;ht(D)&&D?P=D.replace("{name}",n??""):wt(D)&&(P=D(n));var E=x?A.getTextColor():i.get("inactiveColor");b.add(new re({style:Ce(A,{text:P,x:M,y:m/2,fill:E,align:L,verticalAlign:"middle"},{inheritColor:E})}));var O=new Kt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),N=i.getModel("tooltip");return N.get("show")&&Hs({el:O,componentModel:o,itemName:n,itemTooltipOption:N.option}),b.add(O),b.eachChild(function(z){z.silent=!0}),O.silent=!h,this.getContentGroup().add(b),Ls(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Is(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Is("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),p=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),m=t.getOrient().index,x=m===0?"width":"height",y=m===0?"height":"width",f=m===0?"y":"x";s==="end"?p[m]+=c[x]+d:h[m]+=v[x]+d,p[1-m]+=c[y]/2-v[y]/2,u.x=p[0],u.y=p[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[x]=c[x]+d+v[x],_[y]=Math.max(c[y],v[y]),_[f]=Math.min(0,v[f]+p[1-m]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(Ee);function mat(r,e,t,n,a,i,o){function s(x,y){x.lineWidth==="auto"&&(x.lineWidth=y.lineWidth>0?2:0),A1(x,function(f,_){x[_]==="inherit"&&(x[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Ql(h,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var v=e.getModel("lineStyle"),p=v.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),!i){var d=e.get("inactiveBorderWidth"),m=u[c];u.lineWidth=d==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=v.get("inactiveColor"),p.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function _at(r){var e=r.icon||"roundRect",t=je(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function FD(r,e,t,n){C1(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),T1(r,e,t,n)}function tB(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function T1(r,e,t,n){tB(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function C1(r,e,t,n){tB(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function xat(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function cc(r,e,t){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),GD(s,a),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){R(a,function(l,u){s[l?"select":"unSelect"](u)}),GD(s,o)}),n?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function GD(r,e){var t=e||{};return R(r.getData(),function(n){var a=n.get("name");if(!(a===`
|
|
58
|
+
`||a==="")){var i=r.isSelected(a);dt(t,a)?t[a]=t[a]&&i:t[a]=i}}),t}function wat(r){r.registerAction("legendToggleSelect","legendselectchanged",Et(cc,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Et(cc,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Et(cc,"inverseSelect")),r.registerAction("legendSelect","legendselected",Et(cc,"select")),r.registerAction("legendUnSelect","legendunselected",Et(cc,"unSelect"))}function eB(r){r.registerComponentModel(b1),r.registerComponentView(JN),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,xat),r.registerSubTypeDefaulter("legend",function(){return"plain"}),wat(r)}var Sat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=pu(t);r.prototype.init.call(this,t,n,a),HD(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),HD(this,this.option,t)},e.type="legend.scroll",e.defaultOption=yo(b1.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e})(b1);function HD(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,ho(e,t,{type:"box",ignoreSize:!!a})}var WD=Lt,b0=["width","height"],A0=["x","y"],bat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new WD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WD)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),v=tt(h)?h:[h,h];d("pagePrev",0);var p=n.getModel("pageTextStyle");c.add(new re({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,x){var y=m+"DataIndex",f=Ph(n.get("pageIcons",!0)[n.getOrient().name][x],{onclick:ft(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});f.name=m,c.add(f)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=b0[u],h=A0[u],v=b0[1-u],p=A0[1-u];o&&Is("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),m=l.getBoundingRect(),x=[-m.x,-m.y],y=Ct(a);o&&(y[c]=a[c]-m[c]-d);var f=this._layoutContentAndController(t,i,y,u,c,v,p,h);if(o){if(s==="end")x[u]+=f[c]+d;else{var _=m[c]+d;x[u]-=_,f[h]-=_}f[c]+=m[c]+d,x[1-u]+=f[p]+f[v]/2-m[v]/2,f[v]=Math.max(f[v],m[v]),f[p]=Math.min(f[p],m[p]+x[1-u]),l.x=x[0],l.y=x[1],l.markRedraw()}return f},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Is(t.get("orient"),c,t.get("itemGap"),i?a.width:null,i?null:a.height),Is("horizontal",v,t.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),d=v.getBoundingRect(),m=this._showController=p[o]>a[o],x=[-p.x,-p.y];n||(x[i]=c[u]);var y=[0,0],f=[-d.x,-d.y],_=Rt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var S=t.get("pageButtonPosition",!0);S==="end"?f[i]+=a[o]-d[o]:y[i]+=d[o]+_}f[1-i]+=p[s]/2-d[s]/2,c.setPosition(x),h.setPosition(y),v.setPosition(f);var b={x:0,y:0};if(b[o]=m?a[o]:p[o],b[s]=Math.max(p[s],d[s]),b[l]=Math.min(0,d[l]+f[1-i]),h.__rectSize=a[o],m){var A={x:0,y:0};A[o]=Math.max(a[o]-d[o]-_,0),A[s]=b[s],h.setClipPath(new Kt({shape:A})),h.__rectSize=A[o]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(t);return C.pageIndex!=null&&oe(c,{x:C.contentPosition[0],y:C.contentPosition[1]},m?t:null),this._updatePageInfoView(t,C),b},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",v=n[h]!=null,p=a.childOfName(c);p&&(p.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",ht(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=b0[o],l=A0[o],u=this._findTargetItemIndex(n),c=a.children(),h=c[u],v=c.length,p=v?1:0,d={contentPosition:[a.x,a.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=S(h);d.contentPosition[o]=-m.s;for(var x=u+1,y=m,f=m,_=null;x<=v;++x)_=S(c[x]),(!_&&f.e>y.s+i||_&&!b(_,y.s))&&(f.i>y.i?y=f:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),f=_;for(var x=u-1,y=m,f=m,_=null;x>=-1;--x)_=S(c[x]),(!_||!b(f,_.s))&&y.i<f.i&&(f=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(A){if(A){var C=A.getBoundingRect(),M=C[l]+A[l];return{s:M,e:M+C[s],i:A.__legendDataIndex}}}function b(A,C){return A.e>=C&&A.s<=C+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n??i},e.type="legend.scroll",e})(JN);function Aat(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function Tat(r){Wt(eB),r.registerComponentModel(Sat),r.registerComponentView(bat),Aat(r)}function Cat(r){Wt(eB),Wt(Tat)}var Mat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=yo(mh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(mh),zw=Qt();function Lat(r,e,t){zw(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Dat(r,e){for(var t=zw(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||rB(t,o))}}}function rB(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Iat(r,e){var t={model:e,containsPoint:Et(Rat,e),dispatchAction:Et(Pat,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Hh(r.getZr());return R(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Pat(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Rat(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function Eat(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function kat(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=zw(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=yt());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=zN(i);R(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Iat(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=yt());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){rB(a,i);return}var c=Eat(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),yu(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Oat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Lat(a,t,{pan:ft(T0.pan,this),zoom:ft(T0.zoom,this),scrollMove:ft(T0.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Dat(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(Dw),T0={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=C0[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($s(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:UD(function(r,e,t,n,a,i){var o=C0[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:UD(function(r,e,t,n,a,i){var o=C0[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function UD(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,a);if($s(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var C0={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function nB(r){Iw(r),r.registerComponentModel(Mat),r.registerComponentView(Oat),kat(r)}var Nat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=yo(mh.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(mh),hc=Kt,YD=7,Bat=1,M0=30,zat=7,fc="horizontal",ZD="vertical",Vat=5,Fat=["line","bar","candlestick","scatter"],Gat={easing:"cubicOut",duration:100,delay:0},Hat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=ft(this._onBrush,this),this._onBrushEnd=ft(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),yu(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ih(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?zat:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===fc?{right:s.width-o.x-o.width,top:s.height-M0-YD-i,width:o.width,height:M0}:{right:YD,top:o.y,width:M0,height:o.height},u=pu(t.option);R(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=Qe(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===ZD&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===fc&&!o?{scaleY:l?1:-1,scaleX:1}:a===fc&&o?{scaleY:l?1:-1,scaleX:-1}:a===ZD&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new hc({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new hc({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ft(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var p=[0,n[1]],d=[0,n[0]],m=[[n[0],0],[0,0]],x=[],y=d[1]/(o.count()-1),f=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(L,D){if(_>0&&D%_){f+=y;return}var P=L==null||isNaN(L)||L==="",E=P?0:ge(L,h,p,!0);P&&!S&&D?(m.push([m[m.length-1][0],0]),x.push([x[x.length-1][0],0])):!P&&S&&(m.push([f,0]),x.push([f,0])),m.push([f,E]),x.push([f,E]),f+=y,S=P}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=x}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function A(L){var D=b.getModel(L?"selectedDataBackground":"dataBackground"),P=new Lt,E=new Xr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new $r({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(E),P.add(O),P}for(var C=0;C<3;C++){var M=A(C===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!a&&!(n!==!0&&Gt(Fat,u.get("type"))<0)){var c=i.getComponent(ro(o),s).axis,h=Wat(o),v,p=u.coordinateSystem;h!=null&&p.getOtherAxis&&(v=p.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),a={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),v=n.filler=new hc({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new hc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Bat,fill:"rgba(0,0,0,0)"}})),R([0,1],function(_){var S=l.get("handleIcon");!Dp[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=je(S,-1,0,2,2,null,!0);b.attr({cursor:XD(this._orient),draggable:!0,drift:ft(this._onDragMove,this,_),ondragend:ft(this._onDragEnd,this),onmouseover:ft(this._showDataInfo,this,!0),onmouseout:ft(this._showDataInfo,this,!1),z2:5});var A=b.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ut(C,this._size[1]),this._handleWidth=A.width/A.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ls(b);var M=l.get("handleColor");M!=null&&(b.style.fill=M),o.add(a[_]=b);var L=l.getModel("textStyle"),D=l.get("handleLabel")||{},P=D.show||!1;t.add(i[_]=new re({silent:!0,invisible:!P,style:Ce(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var p=v;if(h){var d=ut(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Kt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),x=d*.8,y=n.moveHandleIcon=je(l.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var f=Math.min(s[1]/2,Math.max(d,10));p=n.moveZone=new Kt({invisible:!0,shape:{y:s[1]-f,height:d+f}}),p.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(y),o.add(p)}p.attr({draggable:!0,cursor:XD(this._orient),drift:ft(this._onDragMove,this,"all"),ondragstart:ft(this._showDataInfo,this,!0),ondragend:ft(this._onDragEnd,this),onmouseover:ft(this._showDataInfo,this,!0),onmouseout:ft(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ge(t[0],[0,100],n,!0),ge(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$s(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?ge(s.minSpan,l,o,!0):null,s.maxSpan!=null?ge(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Hn([ge(i[0],o,l,!0),ge(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=Hn(a.slice()),o=this._size;R([0,1],function(p){var d=n.handles[p],m=this._handleHeight;d.attr({scaleX:m/2,scaleY:m/2,x:a[p]+(p?-1:1),y:o[1]/2-m/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var h=l[c],v=h.getClipPath();v||(v=new Kt,h.setClipPath(v)),v.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=Hn(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(d){var m=Ds(a.handles[d].parent,this.group),x=bd(d===0?"right":"left",m),y=this._handleWidth/2+Vat,f=ua([v[d]+(d===0?-y:y),this._size[1]/2],m);i[d].setStyle({x:f[0],y:f[1],verticalAlign:o===fc?"middle":x,align:o===fc?x:"center",text:s[d]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return wt(i)?i(t,s):ht(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,vi(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ua([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new Bt(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Hn([ge(a.x,o,s,!0),ge(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(vi(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new hc({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Gat:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=zN(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(Dw);function Wat(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function XD(r){return r==="vertical"?"ns-resize":"ew-resize"}function aB(r){r.registerComponentModel(Nat),r.registerComponentView(Hat),Iw(r)}function Uat(r){Wt(nB),Wt(aB)}var iB={get:function(r,e,t){var n=Ct((Yat[r]||{})[e]);return t&&tt(n)?n[n.length-1]:n}},Yat={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]}},$D=sr.mapVisual,Zat=sr.eachVisual,Xat=tt,jD=R,$at=Hn,jat=ge,Jp=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&$N(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=ft(t,this),this.controllerVisuals=x1(this.option.controller,n,t),this.targetVisuals=x1(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=me(t),n},e.prototype.eachTargetSeries=function(t,n){R(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],tt(t)&&(t=t.slice(),u=!0);var c=n?t:u?[h(t[0]),h(t[1])]:h(t);if(ht(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(wt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=$at([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Ot(i,a),Ot(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(h){Xat(n.color)&&!h.inRange&&(h.inRange={color:n.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,p){var d=h[v],m=h[p];d&&!m&&(m=h[p]={},jD(d,function(x,y){if(sr.isValidType(y)){var f=iB.get(y,"inactive",s);f!=null&&(m[y]=f,y==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function c(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,p=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),m=this.getItemSymbol(),x=m||"roundRect";jD(this.stateList,function(y){var f=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&Ct(v)||(s?x:[x])),_.symbolSize==null&&(_.symbolSize=p&&Ct(p)||(s?f[0]:[f[0],f[0]])),_.symbol=$D(_.symbol,function(A){return A==="none"?x:A});var S=_.symbolSize;if(S!=null){var b=-1/0;Zat(S,function(A){A>b&&(b=A)}),_.symbolSize=$D(S,function(A){return jat(A,[0,b],[0,f[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e})($t),qD=[20,140],qat=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=qD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=qD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):tt(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Hn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=t)&&(n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=KD(this,"outOfRange",this.getExtent()),a=KD(this,"inRange",this.option.range.slice()),i=[];function o(p,d){i.push({value:p,color:t(p,d)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var h=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(n[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=yo(Jp.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e})(Jp);function KD(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var oB=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=vu(n.get("padding")||0),i=t.getBoundingRect();t.add(new Kt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(p){return s[p]}function c(p,d){s[p]=d}var h=o.controllerVisuals[i||o.getValueState(t)],v=sr.prepareVisualTypes(h);return R(v,function(p){var d=h[p];a.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",d=h.__alphaForOpacity),sr.dependsOn(p,n)&&d&&d.applyVisual(t,u,c)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api;Id(t,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Ee),QD=[["left","right","width"],["top","bottom","height"]];function sB(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=QD[o],l=[0,null,10],u={},c=0;c<3;c++)u[QD[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:n[s[c]];var h=[["x","width",3],["y","height",0]][o],v=Qe(u,i,n.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<i[h[1]]*.5?0:1]}function lp(r,e){return R(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Aa=ge,Kat=R,JD=Math.min,L0=Math.max,Qat=12,Jat=6,tit=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=ft(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ft(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),h=this._applyTransform(a===0?"bottom":"top",u),v=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new re({style:Ce(p,{x:c[0],y:c[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=sB(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Lt;u.add(c),c.add(a.outOfRange=tI()),c.add(a.inRange=tI(null,s?rI(this._orient):null,ft(this._dragHandle,this,"all",!1),ft(this._dragHandle,this,"all",!0))),c.setClipPath(new Kt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=n.textStyleModel.getTextRect("国"),v=L0(h.width,h.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,v,o),this._createHandle(n,u,1,i,v,o)),this._createIndicator(n,u,i,v,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=ft(this._dragHandle,this,a,!1),u=ft(this._dragHandle,this,a,!0),c=ca(t.get("handleSize"),i[0]),h=je(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=rI(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){vi(y.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ms(h,!0),n.add(h);var p=this.visualMapModel.textStyleModel,d=new re({cursor:v,draggable:!0,drift:l,onmousemove:function(y){vi(y.event)},ondragend:u,style:Ce(p,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var m=[c,0],x=this._shapes;x.handleThumbs[a]=h,x.handleLabelPoints[a]=m,x.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=ca(t.get("indicatorSize"),a[0]),l=je(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof dr){var c=l.style;l.useStyle(K({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var h=this.visualMapModel.textStyleModel,v=new re({silent:!0,invisible:!0,style:Ce(h,{x:0,y:0,text:""})});this.group.add(v);var p=[(o==="horizontal"?i/2:Jat)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():eI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Aa(n[0],a,i,!0),Aa(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];$s(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Aa(i[0],o,s,!0),Aa(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Dh(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Lt(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",a.mainGroup);Kat([0,1],function(h){var v=o[h];v.setStyle("fill",n.handlesColor[h]),v.y=t[h];var p=Aa(t[h],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var m=ua(a.handleLabelPoints[h],Ds(v,this.group));if(this._orient==="horizontal"){var x=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;m[1]+=x}s[h].setStyle({x:m[0],y:m[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",v),d=this.getControllerVisual(t,"symbolSize"),m=Aa(t,s,u,!0),x=l[0]-d/2,y={x:h.x,y:h.y};h.y=m,h.x=x;var f=ua(c.indicatorLabelPoint,Ds(h,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),b=this._orient,A=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:A?S:"middle",align:A?"center":S});var C={x,y:m,style:{fill:p}},M={style:{x:f[0],y:f[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var L={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(C,L),_.animateTo(M,L)}else h.attr(C),_.attr(M);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var P=0;P<D.length;P++)this.api.enterBlur(D[P])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=JD(L0(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=JD(L0(o[0],t),o[1]);var l=eit(a,s,o),u=[t-l,t+l],c=Aa(t,o,s,!0),h=[Aa(u[0],o,s,!0),Aa(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),n&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var v=this._hoverLinkDataIndices,p=[];(n||eI(a))&&(p=this._hoverLinkDataIndices=a.findTargetDataIndices(h));var d=o6(v,p);this._dispatchHighDown("downplay",lp(d[0],a)),this._dispatchHighDown("highlight",lp(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(xs(t.target,function(l){var u=Dt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",lp(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Ds(n,i?null:this.group);return tt(t)?ua(t,o,a):bd(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(oB);function tI(r,e,t,n){return new Xr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){vi(a.event)},ondragend:n})}function eit(r,e,t){var n=Qat/2,a=r.get("hoverLinkDataSize");return a&&(n=Aa(a,e,t,!0)/2),n}function eI(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function rI(r){return r==="vertical"?"ns-resize":"ew-resize"}var rit={type:"selectDataRange",event:"dataRangeSelected",update:"update"},nit=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},ait=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(Cnt(n.stateList,n.targetVisuals,ft(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(ft(iit,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function iit(r,e,t,n){for(var a=e.targetVisuals[n],i=sr.prepareVisualTypes(a),o={color:Eh(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,v)}return o.color;function h(p){return o[p]}function v(p,d){o[p]=d}}var nI=R;function oit(r){var e=r&&r.visualMap;tt(e)||(e=e?[e]:[]),nI(e,function(t){if(t){Ll(t,"splitList")&&!Ll(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&tt(n)&&nI(n,function(a){Tt(a)&&(Ll(a,"start")&&!Ll(a,"min")&&(a.min=a.start),Ll(a,"end")&&!Ll(a,"max")&&(a.max=a.end))})}})}function Ll(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var aI=!1;function lB(r){aI||(aI=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(rit,nit),R(ait,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(oit))}function uB(r){r.registerComponentModel(qat),r.registerComponentView(tit),lB(r)}var sit=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],lit[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ct(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=et(this._pieceList,function(l){return l=Ct(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=sr.listVisualTypes(),i=this.isCategory();R(t.pieces,function(s){R(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&R(this.stateList,function(c){(t[c]||(t[c]={}))[l]=iB.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,R(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;R(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ct(t)},e.prototype.getValueState=function(t){var n=sr.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=sr.findPieceIndex(l,a);c===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,h){var v=i.getRepresentValue({interval:c});h||(h=i.getValueState(v));var p=t(v,h);c[0]===-1/0?a[0]=p:c[1]===1/0?a[1]=p:n.push({value:c[0],color:p},{value:c[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=yo(Jp.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(Jp),lit={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),Q2(r),R(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;R(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),iI(e,r)},pieces:function(r){var e=this.option;R(e.pieces,function(t,n){Tt(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&o[h]==null;p++)o[h]=t[v[p]],s[h]=l[p],c[h]=p===2;o[h]==null&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=sr.retrieveVisuals(t),r.push(a)},this),iI(e,r),Q2(r),R(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function iI(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var uit=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),h=c.endsText,v=pr(n.get("showLabel",!0),!h),p=!n.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),R(c.viewPieceList,function(d){var m=d.piece,x=new Lt;x.onclick=ft(this._onItemClick,this,m),this._enableHoverLink(x,d.indexInModelPieceList);var y=n.getRepresentValue(m);if(this._createItemSymbol(x,y,[0,0,u[0],u[1]],p),v){var f=this.visualMapModel.getValueState(y);x.add(new re({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:m.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:f==="outOfRange"?.5:1},silent:p}))}t.add(x)},this),h&&this._renderEndsText(t,h[1],u,v,l),Is(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:lp(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return sB(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Lt,l=this.visualMapModel.textStyleModel;s.add(new re({style:Ce(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=et(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=je(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Ct(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(oB);function cB(r){r.registerComponentModel(sit),r.registerComponentView(uit),lB(r)}function cit(r){Wt(uB),Wt(cB)}var hit={label:{enabled:!0},decal:{show:!1}},oI=Qt(),fit={};function vit(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Ct(hit);Ot(n.label,r.getLocaleModel().get("aria"),!1),Ot(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=yt();r.eachSeries(function(v){if(!v.isColorBySeries()){var p=h.get(v.type);p||(p={},h.set(v.type,p)),oI(v).scope=p}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(wt(v.enableAriaDecal)){v.enableAriaDecal();return}var p=v.getData();if(v.isColorBySeries()){var f=C_(v.ecModel,v.name,fit,r.getSeriesCount()),_=p.getVisual("decal");p.setVisual("decal",S(_,f))}else{var d=v.getRawData(),m={},x=oI(v).scope;p.each(function(b){var A=p.getRawIndex(b);m[A]=b});var y=d.count();d.each(function(b){var A=m[b],C=d.getName(b)||b+"",M=C_(v.ecModel,C,x,y),L=p.getItemVisual(A,"decal");p.setItemVisual(A,"decal",S(L,M))})}function S(b,A){var C=b?K(K({},A),b):A;return C.dirty=!0,C}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=bt(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,m=Math.min(v,d),x;if(!(v<1)){var y=s();if(y){var f=h.get(["general","withTitle"]);x=o(f,{title:y})}else x=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);x+=o(S,{seriesCount:v}),r.eachSeries(function(M,L){if(L<m){var D=void 0,P=M.get("name"),E=P?"withName":"withoutName";D=v>1?h.get(["series","multiple",E]):h.get(["series","single",E]),D=o(D,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var O=M.getData();if(O.count()>p){var N=h.get(["data","partialData"]);D+=o(N,{displayCnt:p})}else D+=h.get(["data","allData"]);for(var z=h.get(["data","separator","middle"]),G=h.get(["data","separator","end"]),U=h.get(["data","excludeDimensionId"]),W=[],Y=0;Y<O.count();Y++)if(Y<p){var q=O.getName(Y),Q=U?fe(O.getValues(Y),function(ct,vt){return Gt(U,vt)===-1}):O.getValues(Y),rt=h.get(["data",q?"withName":"withoutName"]);W.push(o(rt,{name:q,value:Q.join(z)}))}D+=W.join(z)+G,_.push(D)}});var b=h.getModel(["series","multiple","separator"]),A=b.get("middle"),C=b.get("end");x+=_.join(A)+C,u.setAttribute("aria-label",x)}}}}function o(u,c){if(!ht(u))return u;var h=u;return R(c,function(v,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function pit(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},R(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function dit(r){r.registerPreprocessor(pit),r.registerVisual(r.PRIORITY.VISUAL.ARIA,vit)}var sI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},git=(function(){function r(e){var t=this._condVal=ht(e)?new RegExp(e):CH(e)?e:null;if(t==null){var n="";he(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return ht(t)?this._condVal.test(e):ae(t)?this._condVal.test(e+""):!1},r})(),yit=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),mit=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),_it=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),xit=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),wit=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r})();function Vw(r,e){if(r===!0||r===!1){var t=new yit;return t.value=r,t}var n="";return hB(r)||he(n),r.and?lI("and",r,e):r.or?lI("or",r,e):r.not?Sit(r,e):bit(r,e)}function lI(r,e,t){var n=e[r],a="";tt(n)||he(a),n.length||he(a);var i=r==="and"?new mit:new _it;return i.children=et(n,function(o){return Vw(o,t)}),i.children.length||he(a),i}function Sit(r,e){var t=r.not,n="";hB(t)||he(n);var a=new xit;return a.child=Vw(t,e),a.child||he(n),a}function bit(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=jt(r),o=r.parser,s=o?ZR(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=dt(sI,u)?sI[u]:u,h=r[u],v=s?s(h):h,p=uU(c,v)||c==="reg"&&new git(v);p||he(t),a.push(p)}}a.length||he(t);var d=new wit;return d.valueGetterParam=n,d.valueParser=s,d.getValue=e.getValue,d.subCondList=a,d}function hB(r){return Tt(r)&&!Rr(r)}var Ait=(function(){function r(e,t){this._cond=Vw(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function Tit(r,e){return new Ait(r,e)}var Cit={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=Tit(r.config,{valueGetterAttrMap:yt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;dt(s,"dimension")||he(l);var c=e.getDimensionInfo(u);return c||he(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),n.evaluate()&&a.push(t);return{data:a}}},Mit={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,n="",a=me(t);a.length||he(n);var i=[];R(a,function(c){var h=c.dimension,v=c.order,p=c.parser,d=c.incomparable;if(h==null&&he(n),v!=="asc"&&v!=="desc"&&he(n),d&&d!=="min"&&d!=="max"){var m="";he(m)}if(v!=="asc"&&v!=="desc"){var x="";he(x)}var y=e.getDimensionInfo(h);y||he(n);var f=p?ZR(p):null;p&&!f&&he(n),i.push({dimIdx:y.index,parser:f,comparator:new $R(v,d)})});var o=e.sourceFormat;o!==Er&&o!==Xn&&he(n);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,h){for(var v=0;v<i.length;v++){var p=i[v],d=e.retrieveValueFromItem(c,p.dimIdx),m=e.retrieveValueFromItem(h,p.dimIdx);p.parser&&(d=p.parser(d),m=p.parser(m));var x=p.comparator.evaluate(d,m);if(x!==0)return x}return 0}),{data:s}}};function Lit(r){r.registerTransform(Cit),r.registerTransform(Mit)}var Dit=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new QR(this),cT(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),cT(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ka},e})($t),Iit=(function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Ee);function Pit(r){r.registerComponentModel(Dit),r.registerComponentView(Iit)}var Sa=Va.CMD;function Vl(r,e){return Math.abs(r-e)<1e-5}function M1(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(O,N){a&&a.length>2&&n.push(a),a=[O,N]}function c(O,N,z,G){Vl(O,z)&&Vl(N,G)||a.push(O,N,z,G,z,G)}function h(O,N,z,G,U,W){var Y=Math.abs(N-O),q=Math.tan(Y/4)*4/3,Q=N<O?-1:1,rt=Math.cos(O),ct=Math.sin(O),vt=Math.cos(N),_t=Math.sin(N),Nt=rt*U+z,Jt=ct*W+G,Mt=vt*U+z,mt=_t*W+G,Pt=U*q*Q,gt=W*q*Q;a.push(Nt-Pt*ct,Jt+gt*rt,Mt+Pt*_t,mt-gt*vt,Mt,mt)}for(var v,p,d,m,x=0;x<t;){var y=e[x++],f=x===1;switch(f&&(i=e[x],o=e[x+1],s=i,l=o,(y===Sa.L||y===Sa.C||y===Sa.Q)&&(a=[s,l])),y){case Sa.M:i=s=e[x++],o=l=e[x++],u(s,l);break;case Sa.L:v=e[x++],p=e[x++],c(i,o,v,p),i=v,o=p;break;case Sa.C:a.push(e[x++],e[x++],e[x++],e[x++],i=e[x++],o=e[x++]);break;case Sa.Q:v=e[x++],p=e[x++],d=e[x++],m=e[x++],a.push(i+2/3*(v-i),o+2/3*(p-o),d+2/3*(v-d),m+2/3*(p-m),d,m),i=d,o=m;break;case Sa.A:var _=e[x++],S=e[x++],b=e[x++],A=e[x++],C=e[x++],M=e[x++]+C;x+=1;var L=!e[x++];v=Math.cos(C)*b+_,p=Math.sin(C)*A+S,f?(s=v,l=p,u(s,l)):c(i,o,v,p),i=Math.cos(M)*b+_,o=Math.sin(M)*A+S;for(var D=(L?-1:1)*Math.PI/2,P=C;L?P>M:P<M;P+=D){var E=L?Math.max(P+D,M):Math.min(P+D,M);h(P,E,_,S,b,A)}break;case Sa.R:s=i=e[x++],l=o=e[x++],v=s+e[x++],p=l+e[x++],u(v,l),c(v,l,v,p),c(v,p,s,p),c(s,p,s,l),c(s,l,v,l);break;case Sa.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function L1(r,e,t,n,a,i,o,s,l,u){if(Vl(r,t)&&Vl(e,n)&&Vl(a,o)&&Vl(i,s)){l.push(o,s);return}var c=2/u,h=c*c,v=o-r,p=s-e,d=Math.sqrt(v*v+p*p);v/=d,p/=d;var m=t-r,x=n-e,y=a-o,f=i-s,_=m*m+x*x,S=y*y+f*f;if(_<h&&S<h){l.push(o,s);return}var b=v*m+p*x,A=-v*y-p*f,C=_-b*b,M=S-A*A;if(C<h&&b>=0&&M<h&&A>=0){l.push(o,s);return}var L=[],D=[];uo(r,t,a,o,.5,L),uo(e,n,i,s,.5,D),L1(L[0],D[0],L[1],D[1],L[2],D[2],L[3],D[3],l,u),L1(L[4],D[4],L[5],D[5],L[6],D[6],L[7],D[7],l,u)}function Rit(r,e){var t=M1(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++],m=i[u++];L1(s,l,c,h,v,p,d,m,o,e),s=d,l=m}n.push(o)}return n}function fB(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=t-c;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function uI(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),h=fB([l,u],c?0:1,e),v=(c?s:u)/h.length,p=0;p<h.length;p++)for(var d=(c?u:s)/h[p],m=0;m<h[p];m++){var x={};c?(x.startAngle=i+v*p,x.endAngle=i+v*(p+1),x.r0=n+d*m,x.r=n+d*(m+1)):(x.startAngle=i+d*m,x.endAngle=i+d*(m+1),x.r0=n+v*p,x.r=n+v*(p+1)),x.clockwise=r.clockwise,x.cx=r.cx,x.cy=r.cy,t.push(x)}}function Eit(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=fB([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var p=r[l]/o[v],d=0;d<o[v];d++){var m={};m[u]=v*h,m[c]=d*p,m[s]=h,m[l]=p,m.x+=r.x,m.y+=r.y,t.push(m)}}function cI(r,e,t,n){return r*n-t*e}function kit(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,h=s-i,v=cI(c,h,l,u);if(Math.abs(v)<1e-6)return null;var p=r-a,d=e-i,m=cI(p,d,c,h)/v;return m<0||m>1?null:new Bt(m*l+r,m*u+e)}function Oit(r,e,t){var n=new Bt;Bt.sub(n,t,e),n.normalize();var a=new Bt;Bt.sub(a,r,e);var i=a.dot(n);return i}function Dl(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Nit(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=kit(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Oit(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(x,y){return x.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var v=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],d=[v],m=[p],i=u.idx+1;i<=c.idx;i++)Dl(d,r[i].slice());Dl(d,p),Dl(d,v);for(var i=c.idx+1;i<=u.idx+n;i++)Dl(m,r[i%n].slice());return Dl(m,v),Dl(m,p),[{points:d},{points:m}]}function hI(r){var e=r.points,t=[],n=[];yd(e,t,n);var a=new zt(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Bt,c=new Bt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),Nit(e,u,c)}function td(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);td(r,i[0],a,n),td(r,i[1],t-a,n)}return n}function Bit(r,e){for(var t=[],n=0;n<e;n++)t.push(rx(r));return t}function zit(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Vit(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Fit(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":Eit(n,e,t),a=Kt;break;case"sector":uI(n,e,t),a=Zr;break;case"circle":uI({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Zr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=et(Rit(r.getUpdatedPathProxy(),o),function(y){return Vit(y)}),l=s.length;if(l===0)td(hI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,h=et(s,function(y){var f=[],_=[];yd(y,f,_);var S=(_[1]-f[1])*(_[0]-f[0]);return c+=S,{poly:y,area:S}});h.sort(function(y,f){return f.area-y.area});for(var v=e,u=0;u<l;u++){var p=h[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(p.area/c*e);d<0||(td(hI,{points:p.poly},d,t),v-=d)}}a=Xr;break}if(!a)return Bit(r,e);for(var m=[],u=0;u<t.length;u++){var x=new a;x.setShape(t[u]),zit(r,x),m.push(x)}return m}function Git(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],v=l,p=2;p<s;){var d=o[p-2],m=o[p-1],x=o[p++],y=o[p++],f=o[p++],_=o[p++],S=o[p++],b=o[p++];if(v<=0){h.push(x,y,f,_,S,b);continue}for(var A=Math.min(v,c-1)+1,C=1;C<=A;C++){var M=C/A;uo(d,x,f,S,M,a),uo(m,y,_,b,M,i),d=a[3],m=i[3],h.push(a[1],i[1],a[2],i[2],d,m),x=a[5],y=i[5],f=a[6],_=i[6]}v-=A-1}return o===r?[h,e]:[r,h]}function fI(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function Hit(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,h=void 0;l?u?(t=Git(l,u),c=t[0],h=t[1],n=c,a=h):(h=fI(a||l,l),c=l):(c=fI(n||u,u),h=u),i.push(c),o.push(h)}return[i,o]}function vI(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],h=s*c-u*l;e+=h,t+=(s+u)*h,n+=(l+c)*h}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function Wit(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var c=u*6,h=0,v=0;v<s;v+=2){var p=v===0?c:(c+v-2)%l+2,d=r[p]-t[0],m=r[p+1]-t[1],x=e[v]-n[0],y=e[v+1]-n[1],f=x-d,_=y-m;h+=f*f+_*_}h<i&&(i=h,o=u)}return o}function Uit(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function Yit(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=vI(s),c=vI(l);i==null&&(i=u[2]<0!=c[2]<0);var h=[],v=[],p=0,d=1/0,m=[],x=s.length;i&&(s=Uit(s));for(var y=Wit(s,l,u,c)*6,f=x-2,_=0;_<f;_+=2){var S=(y+_)%f+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}h[0]=s[y]-u[0],h[1]=s[y+1]-u[1];for(var b=n/t,A=-n/2;A<=n/2;A+=b){for(var C=Math.sin(A),M=Math.cos(A),L=0,_=0;_<s.length;_+=2){var D=h[_],P=h[_+1],E=l[_]-c[0],O=l[_+1]-c[1],N=E*M-O*C,z=E*C+O*M;m[_]=N,m[_+1]=z;var G=N-D,U=z-P;L+=G*G+U*U}if(L<d){d=L,p=A;for(var W=0;W<m.length;W++)v[W]=m[W]}}a.push({from:h,to:v,fromCp:u,toCp:c,rotation:-p})}return a}function ed(r){return r.__isCombineMorphing}var vB="__mOriginal_";function rd(r,e,t){var n=vB+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Yc(r,e){var t=vB+e;r[t]&&(r[e]=r[t],r[t]=null)}function pI(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function pB(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=Hit(M1(t),M1(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&pI(i,s),l&&pI(o,l),rd(e,"updateTransform",{replace:u}),e.transform=null;var c=Yit(i,o,10,Math.PI),h=[];rd(e,"buildPath",{replace:function(v){for(var p=e.__morphT,d=1-p,m=[],x=0;x<c.length;x++){var y=c[x],f=y.from,_=y.to,S=y.rotation*p,b=y.fromCp,A=y.toCp,C=Math.sin(S),M=Math.cos(S);Uv(m,b,A,p);for(var L=0;L<f.length;L+=2){var D=f[L],P=f[L+1],E=_[L],O=_[L+1],N=D*d+E*p,z=P*d+O*p;h[L]=N*M-z*C+m[0],h[L+1]=N*C+z*M+m[1]}var G=h[0],U=h[1];v.moveTo(G,U);for(var L=2;L<f.length;){var E=h[L++],O=h[L++],W=h[L++],Y=h[L++],q=h[L++],Q=h[L++];G===E&&U===O&&W===q&&Y===Q?v.lineTo(q,Q):v.bezierCurveTo(E,O,W,Y,q,Q),G=q,U=Q}}}})}function Fw(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;pB(r,e),e.__morphT=0;function i(){Yc(e,"buildPath"),Yc(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},bt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function Zit(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(r&u)>0&&(c=1),(e&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function nd(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=et(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),n=Math.max(c,n),a=Math.max(h,a),[c,h]}),o=et(i,function(s,l){return{cp:s,z:Zit(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function dB(r){return Fit(r.path,r.count)}function D1(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Xit(r,e,t){var n=[];function a(b){for(var A=0;A<b.length;A++){var C=b[A];ed(C)?a(C.childrenRef()):C instanceof Ut&&n.push(C)}}a(r);var i=n.length;if(!i)return D1();var o=t.dividePath||dB,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),D1();n=nd(n),s=nd(s);for(var l=t.done,u=t.during,c=t.individualDelay,h=new oi,v=0;v<i;v++){var p=n[v],d=s[v];d.parent=e,d.copyTransform(h),c||pB(p,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function m(b){for(var A=0;A<s.length;A++)s[A].addSelfToZr(b)}rd(e,"addSelfToZr",{after:function(b){m(b)}}),rd(e,"removeSelfFromZr",{after:function(b){for(var A=0;A<s.length;A++)s[A].removeSelfFromZr(b)}});function x(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Yc(e,"addSelfToZr"),Yc(e,"removeSelfFromZr")}var y=s.length;if(c)for(var f=y,_=function(){f--,f===0&&(x(),l&&l())},v=0;v<y;v++){var S=c?bt({delay:(t.delay||0)+c(v,y,n[v],s[v]),done:_},t):t;Fw(n[v],s[v],S)}else e.__morphT=0,e.animateTo({__morphT:1},bt({during:function(b){for(var A=0;A<y;A++){var C=s[A];C.__morphT=e.__morphT,C.dirtyShape()}u&&u(b)},done:function(){x();for(var b=0;b<r.length;b++)Yc(r[b],"updateTransform");l&&l()}},t));return e.__zr&&m(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function $it(r,e,t){var n=e.length,a=[],i=t.dividePath||dB;function o(p){for(var d=0;d<p.length;d++){var m=p[d];ed(m)?o(m.childrenRef()):m instanceof Ut&&a.push(m)}}if(ed(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(rx(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),D1()}a=nd(a),e=nd(e);for(var h=t.individualDelay,u=0;u<n;u++){var v=h?bt({delay:(t.delay||0)+h(u,n,a[u],e[u])},t):t;Fw(a[u],e[u],v)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function dI(r){return tt(r[0])}function gI(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var jit={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=rx(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function D0(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=cu("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;dI(r)&&(u=r,c=e),dI(e)&&(u=e,c=r);function h(y,f,_,S,b){var A=y.many,C=y.one;if(A.length===1&&!b){var M=f?A[0]:C,L=f?C:A[0];if(ed(M))h({many:[M],one:L},!0,_,S,!0);else{var D=s?bt({delay:s(_,S)},l):l;Fw(M,L,D),i(M,L,M,L,D)}}else for(var P=bt({dividePath:jit[t],individualDelay:s&&function(U,W,Y,q){return s(U+_,S)}},l),E=f?Xit(A,C,P):$it(C,A,P),O=E.fromIndividuals,N=E.toIndividuals,z=O.length,G=0;G<z;G++){var D=s?bt({delay:s(G,z)},l):l;i(O[G],N[G],f?A[G]:y.one,f?y.one:A[G],D)}}for(var v=u?u===r:r.length>e.length,p=u?gI(c,u):gI(v?e:r,[v?r:e]),d=0,m=0;m<p.length;m++)d+=p[m].many.length;for(var x=0,m=0;m<p.length;m++)h(p[m],v,x,d),x+=p[m].many.length}function hs(r){if(!r)return[];if(tt(r)){for(var e=[],t=0;t<r.length;t++)e.push(hs(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof Ut&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var gB=1e4,qit=0,yI=1,mI=2,Kit=Qt();function Qit(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function Jit(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function _I(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=Qit(r,a);if(i){var o=Jit(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function xI(r){var e=[];return R(r,function(t){var n=t.data,a=t.dataGroupId;if(!(n.count()>gB))for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:_I(n,o,a,!1),childGroupId:_I(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function I0(r,e,t){r.traverse(function(n){n instanceof Ut&&Pe(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function P0(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Il(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function tot(r,e,t){var n=cu("update",t,e);n&&r.traverse(function(a){if(a instanceof Un){var i=Z8(a);i&&a.animateFrom({style:i},n)}})}function eot(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function yB(r,e,t){var n=xI(r),a=xI(e);function i(_,S,b,A,C){(b||_)&&S.animateFrom({style:b&&b!==_?K(K({},b.style),_.style):_.style},C)}var o=!1,s=qit,l=yt(),u=yt();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<a.length;c++){var h=a[c].groupId;if(u.get(h)){s=yI;break}var v=a[c].childGroupId;if(v&&l.get(v)){s=mI;break}}function p(_,S){return function(b){var A=b.data,C=b.dataIndex;return S?A.getId(C):_?s===yI?b.childGroupId:b.groupId:s===mI?b.childGroupId:b.groupId}}var d=eot(n,a),m={};if(!d)for(var c=0;c<a.length;c++){var x=a[c],y=x.data.getItemGraphicEl(x.dataIndex);y&&(m[y.id]=!0)}function f(_,S){var b=n[S],A=a[_],C=A.data.hostModel,M=b.data.getItemGraphicEl(b.dataIndex),L=A.data.getItemGraphicEl(A.dataIndex);if(M===L){L&&tot(L,A.dataIndex,C);return}M&&m[M.id]||L&&(Il(L),M?(Il(M),P0(M),o=!0,D0(hs(M),hs(L),A.divide,C,_,i)):I0(L,C,_))}new yi(n,a,p(!0,d),p(!1,d),null,"multiple").update(f).updateManyToOne(function(_,S){var b=a[_],A=b.data,C=A.hostModel,M=A.getItemGraphicEl(b.dataIndex),L=fe(et(S,function(D){return n[D].data.getItemGraphicEl(n[D].dataIndex)}),function(D){return D&&D!==M&&!m[D.id]});M&&(Il(M),L.length?(R(L,function(D){Il(D),P0(D)}),o=!0,D0(hs(L),hs(M),b.divide,C,_,i)):I0(M,C,b.dataIndex))}).updateOneToMany(function(_,S){var b=n[S],A=b.data.getItemGraphicEl(b.dataIndex);if(!(A&&m[A.id])){var C=fe(et(_,function(L){return a[L].data.getItemGraphicEl(a[L].dataIndex)}),function(L){return L&&L!==A}),M=a[_[0]].data.hostModel;C.length&&(R(C,function(L){return Il(L)}),A?(Il(A),P0(A),o=!0,D0(hs(A),hs(C),b.divide,M,_[0],i)):R(C,function(L){return I0(L,M,_[0])}))}}).updateManyToMany(function(_,S){new yi(S,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,A){f(_[b],S[A])}).execute()}).execute(),o&&R(e,function(_){var S=_.data,b=S.hostModel,A=b&&t.getViewOfSeriesModel(b),C=cu("update",b,0);A&&b.isAnimationEnabled()&&C&&C.duration>0&&A.group.traverse(function(M){M instanceof Ut&&!M.animators.length&&M.animateFrom({style:{opacity:0}},C)})})}function wI(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function SI(r){return tt(r)?r.sort().join(","):r}function Zi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function rot(r,e){var t=yt(),n=yt(),a=yt();return R(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=wI(i),c=SI(u);n.set(c,{dataGroupId:s,data:l}),tt(u)&&R(u,function(h){a.set(h,{key:c,dataGroupId:s,data:l})})}),R(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=wI(i),u=SI(l),c=n.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Zi(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Zi(s),data:s}]});else if(tt(l)){var h=[];R(l,function(d){var m=n.get(d);m.data&&h.push({dataGroupId:m.dataGroupId,divide:Zi(m.data),data:m.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Zi(s)}]})}else{var v=a.get(l);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Zi(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:o,data:s,divide:Zi(s)})}}}}),t}function bI(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function not(r,e,t,n){var a=[],i=[];R(me(r.from),function(o){var s=bI(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Zi(e.oldData[s]),groupIdDim:o.dimension})}),R(me(r.to),function(o){var s=bI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Zi(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&yB(a,i,n)}function aot(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){R(me(n.seriesTransition),function(a){R(me(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][ep]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=Kit(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)R(me(i),function(p){not(p,a,n,t)});else{var o=rot(a,n);R(o.keys(),function(p){var d=o.get(p);yB(d.oldSeries,d.newSeries,t)})}R(n.updatedSeries,function(p){p[ep]&&(p[ep]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<gB&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(v))}})}Wt([vX]);Wt([lX]);Wt([EX,$X,a$,B$,$$,kj,lq,Yq,vK,_K,LK,SQ,XQ,aJ,xJ,AJ,kJ,GJ,QJ,att,ptt,Ktt]);Wt(yet);Wt(Wet);Wt(dO);Wt(rrt);Wt(tN);Wt(ort);Wt(drt);Wt(rnt);Wt(wnt);Wt(Uh);Wt(znt);Wt(Gnt);Wt(Knt);Wt(aat);Wt(cat);Wt(gat);Wt(Cat);Wt(Uat);Wt(nB);Wt(aB);Wt(cit);Wt(uB);Wt(cB);Wt(dit);Wt(Lit);Wt(Pit);Wt(aot);Wt(LZ);var up=1;function en(r){var e=60,t=62,n=45,a=47,i=33,o=39,s=34,l=63,u=`\r
|
|
59
|
+
>/= `,c=0;return up=1,mB((function h(){for(var v=[];r[c];){if(r.charCodeAt(c)==e){if(r.charCodeAt(c+1)===a)return c=r.indexOf(">",c),v;if(r.charCodeAt(c+1)===i){if(r.charCodeAt(c+2)==n){for(;r.charCodeAt(c)!==t||r.charCodeAt(c-1)!=n||r.charCodeAt(c-2)!=n||c==-1;)c=r.indexOf(">",c+1);c===-1&&(c=r.length)}else for(c+=2;r.charCodeAt(c)!==t;c++);c++;continue}if(r.charCodeAt(c+1)===l){c=r.indexOf(">",c),c++;continue}for(var p=++c;u.indexOf(r[c])===-1;c++);for(var d=r.slice(p,c),m=!1,x={};r.charCodeAt(c)!==t;c++){var y=r.charCodeAt(c);if(y>64&&y<91||y>96&&y<123){for(p=c;u.indexOf(r[c])===-1;c++);for(var f=r.slice(p,c),_=r.charCodeAt(c);_!==o&&_!==s;)c++,_=r.charCodeAt(c);var S=r[c],b=++c;c=r.indexOf(S,b);var A=r.slice(b,c);m||(x={},m=!0),x[f]=A}}var C=[];r.charCodeAt(c-1)!==a&&(c++,C=h()),v.push({children:C,tagName:d,attrs:x})}else{var M=c;(c=r.indexOf("<",c)-1)===-2&&(c=r.length);var L=r.slice(M,c+1);L.length>0&&v.push(L)}c++}return v})())}function mB(r){var e={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var t in r.forEach((function(n){if(e[n.tagName]||(e[n.tagName]=[]),typeof n=="object"){var a=mB(n.children);typeof a=="object"&&(n.attrs&&(a.attrs=n.attrs),a.attrs===void 0?a.attrs={order:up}:a.attrs.order=up),up++,e[n.tagName].push(a)}})),e)e[t].length==1&&(e[t]=e[t][0]);return e}function Fl(r){return Math.abs(r)>2e4?"emu":"point"}function xe(r){return r/12700}function Ta(r){return r/20}function ad(r){return r/100}function $d(r){return r/6e4}function Xi(r){return r/1e5}function R0(r){var e=Math.ceil(r/26),t=(r%26||26)-1+65;return String.fromCharCode(t).repeat(e)}function Fe(r,e,t){var n={type:"solidFill"};if(r["a:srgbClr"])n.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var a=r["a:schemeClr"].attrs.val;t&&(a=t.getColorThemeName(a)),n.color=e.getColor(a)}else if(r["a:sysClr"])n.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var i=F.get(r["a:prstClr"],["attrs","val"]);n.color=(function(v){var p,d=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],m=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],x=d.indexOf(v);return x!=-1&&(p=m[x]),"#".concat(p||"000000")})(i)}var o=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],s=F.get(o,["a:alpha","attrs","val"],1e5);n.alpha=s/1e5;var l=F.get(o,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var u=F.get(o,["a:lumMod","attrs","val"]);u&&(n.lumMod=u/1e5);var c=F.get(o,["a:lumOff","attrs","val"]);c&&(n.lumOff=c/1e5);var h=F.get(o,["a:tint","attrs","val"]);return h&&(n.tint=h/1e5),n}function Yh(r,e,t){var n,a={type:"blipFill"},i=F.get(r,["a:blip","attrs","r:embed"]);if(i){var o=(n=t.rels[i])===null||n===void 0?void 0:n.target;o&&(a.base64=e.getMedia(o))}var s=F.get(r,["a:blip","a:alphaModFix","attrs","amt"]);s&&(a.alpha=s/1e5);var l=F.get(r,["a:stretch","a:fillRect","attrs"]);return l&&(a.fillRect={},l.b&&(a.fillRect.b=l.b/1e5),l.t&&(a.fillRect.t=l.t/1e5),l.r&&(a.fillRect.r=l.r/1e5),l.l&&(a.fillRect.l=l.l/1e5)),a}function Zh(r,e,t){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=r.attrs.flip,n.path=F.get(r,["a:path","attrs","path"])||"linear",n.rotWithShape=r.attrs.rotWithShape==="1",F.get(r,["a:lin","attrs","ang"])&&(n.lin.ang=$d(r["a:lin"].attrs.ang)),F.get(r,["a:lin","attrs","scaled"])&&(n.lin.scaled=r["a:lin"].attrs.scaled==="1");var a=F.get(r,["a:gsLst","a:gs"])||[];return n.gsList=a.map((function(i){return{color:Fe(i,e,t),pos:Xi(i.attrs.pos)}})),F.get(r,["a:tileRect","attrs","l"])&&(n.tileRect.l=Xi(r["a:tileRect"].attrs.l)),F.get(r,["a:tileRect","attrs","t"])&&(n.tileRect.t=Xi(r["a:tileRect"].attrs.t)),F.get(r,["a:tileRect","attrs","r"])&&(n.tileRect.r=Xi(r["a:tileRect"].attrs.r)),F.get(r,["a:tileRect","attrs","b"])&&(n.tileRect.b=Xi(r["a:tileRect"].attrs.b)),n}function E0(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function k0(r){return r<.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}function AI(r,e){var t=r[0],n=r[1],a=r[2],i=E0(t/255)*e,o=E0(n/255)*e,s=E0(a/255)*e;return[Math.round(255*k0(i)),Math.round(255*k0(o)),Math.round(255*k0(s))]}function O0(r,e,t){var n=r/255,a=e/255,i=t/255,o=Math.max(n,a,i),s=Math.min(n,a,i),l=o-s,u=0,c=(o+s)/2;return l===0?u=0:o===n?u=(a-i)/l%6:o===a?u=(i-n)/l+2:o===i&&(u=(n-a)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||c===0||c===1?0:l/(1-Math.abs(2*c-1)),l:c}}function N0(r,e,t){var n,a,i,o=(1-Math.abs(2*t-1))*e,s=o*(1-Math.abs(r/60%2-1)),l=t-o/2;return r<60?(n=o,a=s,i=0):r<120?(n=s,a=o,i=0):r<180?(n=0,a=o,i=s):r<240?(n=0,a=s,i=o):r<300?(n=s,a=0,i=o):(n=o,a=0,i=s),[n=Math.round(255*(n+l)),a=Math.round(255*(a+l)),i=Math.round(255*(i+l))]}function de(r,e){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var t=parseInt(r.color.substr(1,2),16),n=parseInt(r.color.substr(3,2),16),a=parseInt(r.color.substr(5,2),16);if(r.shade){var i=AI([t,n,a],r.shade);t=i[0],n=i[1],a=i[2]}if(r.lumMod){var o=(function(c,h,v,p){var d=O0(c,h,v),m=d.h,x=d.l*p;return x>=1&&(x=1),N0(m,d.s,x)})(t,n,a,r.lumMod);t=o[0],n=o[1],a=o[2]}if(r.lumOff&&(o=(function(c,h,v,p){var d=O0(c,h,v),m=d.h,x=p+d.l;return x>1&&(x=1),N0(m,d.s,x)})(t,n,a,r.lumOff),t=o[0],n=o[1],a=o[2]),r.tint||e?.light){var s=(function(c,h,v,p){var d=O0(c,h,v),m=d.h,x=d.l;return p>=1&&(p=1),N0(m,d.s,x*p+(1-p))})(t,n,a,r.tint||e?.light);t=s[0],n=s[1],a=s[2]}if(e?.dark){var l=AI([t,n,a],e?.dark);t=l[0],n=l[1],a=l[2]}var u=r.alpha;return"rgba(".concat(t,",").concat(n,",").concat(a,",").concat(u,")")}}var Xh=(function(){function r(e,t,n){var a,i;this.uuid=uH(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=t,this.group=n;var o=F.get(e,["p:nvSpPr","p:nvPr"]);if(o){var s=F.get(o,"p:ph");s&&s.attrs&&(this.idx=s.attrs.idx,this.type=s.attrs.type),F.get(o,["attrs","userDrawn"])&&(this.userDrawn=F.get(o,["attrs","userDrawn"])==="1")}if(this.order=F.get(e,"attrs.order",0),this.source["p:spPr"]){if(u=this.getXfrm()){var l=this.group&&(!((a=this.ctx.pptx)===null||a===void 0)&&a.wps||Fl(parseInt(u["a:off"].attrs.x))==="point")?Ta:xe;this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy||"0")))},this.rotate=$d(parseInt(F.get(u,"attrs.rot",0))),this.flipV=F.get(u,"attrs.flipV")==="1",this.flipH=F.get(u,"attrs.flipH")==="1"}}else if(this.source["p:xfrm"]){var u=this.source["p:xfrm"];l=this.group&&(!((i=this.ctx.pptx)===null||i===void 0)&&i.wps||Fl(parseInt(u["a:off"].attrs.x))==="point")?Ta:xe,this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy)))}}if(n){var c=n.extend,h=n.chExtend,v=n.chOffset,p=h.w===0?0:c.w/h.w,d=h.h===0?0:c.h/h.h;this.extend.w=this.extend.w*p,this.extend.h=this.extend.h*d,this.offset.x=(this.offset.x-v.x)*p,this.offset.y=(this.offset.y-v.y)*d}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},r.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},r})(),iot=(function(){function r(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,n=this.node.type,a=this.node.idx;if(n||a)switch(t.slideType){case"slideMaster":break;case"slideLayout":(e=n?t.slideMaster.getNodeByType(n):t.slideMaster.getNodeByIdx(a))&&(this.inheritProps=F.get(e,["textBody","props"])||{});break;case"slide":(e=n?t.slideLayout.slideMaster.getNodeByType(n):t.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(this.inheritProps,F.get(e,["textBody","props"])||{}),(e=n?t.slideLayout.getNodeByType(n):t.slideLayout.getNodeByIdx(a))&&Object.assign(this.inheritProps,F.get(e,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var e=this,t=F.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(t).forEach((function(o){switch(o){case"anchor":e.props.anchor=t[o];break;case"rtlCol":e.props.rtlCol=t[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[o]=xe(parseInt(t[o]));break;case"order":break;default:e.props[o]=t[o]}}));var n=F.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var a=n.fontScale;a&&(this.props.normAutofit.fontScale=Xi(parseInt(a)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=Xi(parseInt(i)))}},r.prototype._parseLstStyle=function(){var e=this,t={},n=F.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach((function(a){if(a.startsWith("a:")&&a.endsWith("pPr")){var i=a.substr(2,a.length-5);t[i]={props:e._formatPPr(n[a])};var o=F.get(n[a],["a:defRPr"]);t[i].defRPr=e._formatRPr(o)}})),this.lstStyle=t},r.prototype._parseText=function(){var e=this,t=F.get(this.source,["a:p"])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map((function(n){return e._parseParagraph(n)}))},r.prototype._parseParagraph=function(e){var t=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=F.get(e,["a:pPr"])||{};n.props=this._formatPPr(a);var i=F.get(e,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(i);var o=F.get(e,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=F.get(e,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map((function(l){return pt({isBr:!0},l)})))).sort((function(l,u){return F.get(l,["attrs","order"])-F.get(u,["attrs","order"])})),n.rows=o.map((function(l){return t._parseRow(l)})),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},r.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var t,n={},a=this.node.ctx,i=this.node.type,o=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,F.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,F.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,F.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,F.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||o)&&(t=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(o))&&Object.assign(n,F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,F.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(n,F.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,F.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(o))&&Object.assign(n,F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return n},r.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var t,n={},a=this.node.ctx,i=this.node.type,o=this.node.idx;switch(a.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,F.get(a.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,F.get(a,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,F.get(a.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,F.get(a.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||o)&&(t=i?a.slideMaster.getNodeByType(i):a.slideMaster.getNodeByIdx(o))&&(n=F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,F.get(a.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(n,F.get(a.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(i||o)&&(["subTitle","ctrTitle","title"].includes(i)&&Object.assign(n,F.get(a.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=i?a.slideLayout.slideMaster.getNodeByType(i):a.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=i?a.slideLayout.getNodeByType(i):a.slideLayout.getNodeByIdx(o))&&Object.assign(n,F.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var s=F.get(this.node.source,["p:style","a:fontRef"]);return F.get(s,"a:schemeClr")&&(n.color=Fe(s,this.node.theme,this.node)),F.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(n,F.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),n},r.prototype._formatPPr=function(e){var t={},n=F.get(e,"attrs")||{};return Object.keys(n).forEach((function(a){switch(a){case"algn":t.align=n[a];break;case"marL":t.marginLeft=xe(parseInt(n[a]));break;case"indent":t.indent=xe(parseInt(n[a]));break;case"lvl":t.level=n[a]}})),F.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),F.get(e,["a:buAutoNum","attrs","type"])&&(t.buAutoNum=e["a:buAutoNum"].attrs.type),F.get(e,["a:buChar","attrs","char"])&&(t.buChar=e["a:buChar"].attrs.char),F.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(t.spaceBefore=ad(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),F.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(t.spaceAfter=ad(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),F.get(e,["a:defRPr"])&&(t.defRPr=this._formatRPr(F.get(e,["a:defRPr"]))),t},r.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:""},n=F.get(e,["a:rPr"])||{};return t.props=this._formatRPr(n),t.text=F.get(e,"a:t")||"",t},r.prototype._formatRPr=function(e){var t={},n=F.get(e,"attrs")||{};Object.keys(n).forEach((function(o){switch(o){case"sz":t.size=parseInt(n[o])/100;break;case"b":t.bold=n[o]==="1";break;case"i":t.italic=n[o]==="1";break;case"u":t.underline=n[o];break;case"strike":t.strike=n[o];break;case"order":case"dirty":break;default:t[o]=n[o]}}));var a=F.get(e,"a:solidFill");a&&(t.color=Fe(a,this.node.theme,this.node));var i=F.get(e,"a:highlight");return i&&(t.background=Fe(i,this.node.theme,this.node)),t.typeface=F.get(e,["a:ea","attrs","typeface"]),t},r})();function Gl(r,e,t){var n={};if(!F.get(r,"a:noFill")){F.get(r,"attrs.w")&&(n.width=xe(parseInt(F.get(r,"attrs.w"))));var a=F.get(r,"a:solidFill");a&&(n.color=Fe(a,e,t));var i=F.get(r,"a:prstDash");if(i&&(n.type=i.attrs.val),F.get(r,["a:miter"])&&(n.lineJoin="miter"),F.get(r,["a:bevel"])&&(n.lineJoin="bevel"),F.get(r,["a:round"])&&(n.lineJoin="round"),F.get(r,["a:miter","attrs","lim"])&&(n.miterLim=xe(parseInt(F.get(r,["a:miter","attrs","lim"])))),F.get(r,["a:headEnd"])){var o=F.get(r,["a:headEnd","attrs"]);n.headEnd={type:o.type,len:o.len,w:o.w}}if(F.get(r,["a:tailEnd"])){var s=F.get(r,["a:tailEnd","attrs"]);n.tailEnd={type:s.type,len:s.len,w:s.w}}return n}}var wh=(function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=n,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return Sh(e,r),e.prototype._parseShape=function(){if(this.shape=F.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&F.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=F.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],a=[],i=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":a=Array.isArray(t[s])?t[s]:[t[s]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map((function(u){return[xe(parseInt(F.get(u,["attrs","x"]))),xe(parseInt(F.get(u,["attrs","y"])))]}))}})));break;case"a:close":a=Array.isArray(t[s])?t[s]:[t[s]],n=n.concat(a.map((function(l){return{order:l.attrs.order,type:s.split(":")[1]}})))}};for(var o in t)i(o);n.sort((function(s,l){return s.order-l.order})),this.prstGeom.pathList=n,F.get(t,["attrs","w"])&&(this.prstGeom.w=xe(parseInt(F.get(t,["attrs","w"])))),F.get(t,["attrs","h"])&&(this.prstGeom.h=xe(parseInt(F.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=F.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var t=this,n=F.get(this.source,["p:spPr","a:prstGeom"]),a=F.get(n,["a:avLst","a:gd"]);a&&(Array.isArray(a)||(a=[a]),this.prstGeom.gd=a.map((function(i){var o=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(i.attrs.name)?$d(parseInt(i.attrs.fmla.split(" ")[1])):Xi(parseInt(i.attrs.fmla.split(" ")[1]));return{name:i.attrs.name,fmla:o}})))},e.prototype._parseBackground=function(){if(!F.get(this.source,["p:spPr","a:noFill"]))if(F.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=F.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=Fe(t,this.theme,this);else{var n=F.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=Zh(n,this.theme,this);else{var a=F.get(this.source,["p:spPr","a:blipFill"]);if(a)this.background=Yh(a,this.pptx,this.ctx);else{var i=F.get(this.source,["p:style","a:fillRef"]);i&&(this.background=Fe(i,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=F.get(this.source,["p:style","a:lnRef"]);if(t){var n=parseInt(t.attrs.idx),a=this.theme.getLineStyle(n);this.border=pt(pt({},a),this.border),this.border.color&&this.border.color.color||(this.border.color=Fe(t,this.theme,this))}var i=F.get(this.source,["p:spPr","a:ln"]);i&&Object.assign(this.border,Gl(i,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new iot(F.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=.75,e})(Xh),id=(function(r){function e(t,n,a,i,o){var s,l,u=r.call(this,n,i,o)||this;u.userDrawn=!0,u.pptx=a,u.path=t;var c=F.get(u.source,["p:blipFill","a:srcRect"]);c&&(u.clip={},c.attrs.b&&(u.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(u.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(u.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(u.clip.r=parseInt(c.attrs.r)/1e5));var h=F.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(h){var v=(s=u.ctx.rels[h])===null||s===void 0?void 0:s.target;u.audioFile=u.pptx.getMedia(v)}var p=F.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(p){var d=(l=u.ctx.rels[p])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(d)}return u}return Sh(e,r),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e})(Xh),_B=(function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=n,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return Sh(e,r),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=F.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=F.get(t,"a:tableStyleId"),this.tableStyles=F.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},F.get(t,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),F.get(t,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),F.get(t,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),F.get(t,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),F.get(t,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),F.get(t,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=F.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var n=0;n<t.length;n++){var a=F.get(t[n],["attrs","w"]);this.tableGrid.gridCol.push({width:xe(parseInt(a))})}},e.prototype._parseTr=function(){var t=[],n=F.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var a=0;a<n.length;a++){var i={props:{},td:[]},o=n[a];i.props.height=xe(parseInt(F.get(o,["attrs","h"])));var s=F.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)i.td.push(this._parseTd(s[l]));t.push(i)}this.tr=t},e.prototype._parseTd=function(t){var n,a,i,o,s=this,l={props:{border:{}},paragraphs:[]},u=F.get(t,["a:tcPr","attrs"]);u?.marB&&(l.props.marB=xe(parseInt(u?.marB))),u?.marT&&(l.props.marT=xe(parseInt(u?.marT))),u?.marL&&(l.props.marL=xe(parseInt(u?.marL))),u?.marR&&(l.props.marR=xe(parseInt(u?.marR))),u?.anchor&&(l.props.anchor=u?.anchor);var c=F.get(t,["a:tcPr"]);F.get(c,["a:lnR"])&&(l.props.border.right=Gl(F.get(c,["a:lnR"]),this.theme,this.ctx)),F.get(c,["a:lnL"])&&(l.props.border.left=Gl(F.get(c,["a:lnL"]),this.theme,this.ctx)),F.get(c,["a:lnT"])&&(l.props.border.top=Gl(F.get(c,["a:lnT"]),this.theme,this.ctx)),F.get(c,["a:lnB"])&&(l.props.border.bottom=Gl(F.get(c,["a:lnB"]),this.theme,this.ctx)),!((n=t?.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(t.attrs.rowSpan)),!((a=t?.attrs)===null||a===void 0)&&a.gridSpan&&(l.props.gridSpan=parseInt(t.attrs.gridSpan)),!((i=t?.attrs)===null||i===void 0)&&i.vMerge&&(l.props.vMerge=t.attrs.vMerge==="1"),!((o=t?.attrs)===null||o===void 0)&&o.hMerge&&(l.props.hMerge=t.attrs.hMerge==="1");var h=F.get(t,["a:tcPr","a:solidFill"]);h&&(l.props.background=Fe(h,this.theme,this.ctx));var v=F.get(t,["a:txBody"]),p=F.get(v,["a:p"]);return Array.isArray(p)||(p=[p]),l.paragraphs=p.map((function(d){return s._parseParagraph(d)})),l},e.prototype._parseParagraph=function(t){var n=this,a={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=F.get(t,["a:pPr"])||{};a.props=this._formatPPr(i);var o=F.get(t,["a:endParaRPr"]);a.endParaRProps=this._formatRPr(o);var s=F.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=F.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map((function(u){return pt({isBr:!0},u)})))).sort((function(u,c){return F.get(u,["attrs","order"])-F.get(c,["attrs","order"])})),a.rows=s.map((function(u){return n._parseRow(u)})),a},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var n={props:{},text:""},a=F.get(t,["a:rPr"])||{};return n.props=this._formatRPr(a),n.text=F.get(t,"a:t")||"",n},e.prototype._formatPPr=function(t){var n={},a=F.get(t,"attrs")||{};return Object.keys(a).forEach((function(i){i==="algn"&&(n.align=a[i])})),F.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),F.get(t,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=t["a:buAutoNum"].attrs.type),F.get(t,["a:buChar","attrs","char"])&&(n.buChar=t["a:buChar"].attrs.char),F.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=ad(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),F.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=ad(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),n},e.prototype._formatRPr=function(t){var n={},a=F.get(t,"attrs")||{};Object.keys(a).forEach((function(s){switch(s){case"sz":n.size=parseInt(a[s])/100;break;case"b":n.bold=a[s]==="1";break;case"i":n.italic=a[s]==="1";break;case"u":n.underline=a[s];break;case"strike":n.strike=a[s];break;case"order":case"dirty":break;default:n[s]=a[s]}}));var i=F.get(t,"a:solidFill");i&&(n.color=Fe(i,this.theme,this.ctx));var o=F.get(t,"a:highlight");return o&&(n.background=Fe(o,this.theme,this.ctx)),n.typeface=F.get(t,["a:ea","attrs","typeface"]),n},e.prototype._isLastCol=function(t,n){var a,i;if(n===t.length-1)return!0;for(var o=n+1;o<t.length;o++)if(!(!((a=t[o].props)===null||a===void 0)&&a.hMerge)&&!(!((i=t[o].props)===null||i===void 0)&&i.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,n,a,i,o,s,l,u,c=this,h=(n=(t=this.tableStyles)===null||t===void 0?void 0:t.wholeTbl)===null||n===void 0?void 0:n.tcStyle,v=(i=(a=this.tableStyles)===null||a===void 0?void 0:a.wholeTbl)===null||i===void 0?void 0:i.tcTxStyle,p=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,d=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach((function(m,x){m.td.forEach((function(y,f){var _,S,b,A,C,M,L,D,P,E,O,N,z,G,U,W,Y,q,Q,rt,ct,vt,_t,Nt,Jt,Mt,mt,Pt,gt,St,se,te,Zt,ue,ke,De,Ue,sn,cr,hr,ln,Ai,wu,Ua,Su,Ya,pa,mo,_o,xo,wo,So,bo,Ao,To,Co,ve=pt(pt({},p),h),Je=pt(pt({},d),v);c.props.firstRow&&x===0?(ve=pt(pt(pt({},ve),(S=(_=c.tableStyles)===null||_===void 0?void 0:_.firstRow)===null||S===void 0?void 0:S.tcStyle),{border:pt(pt({},ve?.border),(C=(A=(b=c.tableStyles)===null||b===void 0?void 0:b.firstRow)===null||A===void 0?void 0:A.tcStyle)===null||C===void 0?void 0:C.border)}),Je=pt(pt({},Je),(L=(M=c.tableStyles)===null||M===void 0?void 0:M.firstRow)===null||L===void 0?void 0:L.tcTxStyle)):c.props.lastRow&&x===c.tr.length-1?(ve=pt(pt(pt({},ve),(P=(D=c.tableStyles)===null||D===void 0?void 0:D.lastRow)===null||P===void 0?void 0:P.tcStyle),{border:pt(pt({},ve?.border),(N=(O=(E=c.tableStyles)===null||E===void 0?void 0:E.lastRow)===null||O===void 0?void 0:O.tcStyle)===null||N===void 0?void 0:N.border)}),Je=pt(pt({},Je),(G=(z=c.tableStyles)===null||z===void 0?void 0:z.lastRow)===null||G===void 0?void 0:G.tcTxStyle)):c.props.firstCol&&f===0?(ve=pt(pt(pt({},ve),(W=(U=c.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||W===void 0?void 0:W.tcStyle),{border:pt(pt({},ve?.border),(Q=(q=(Y=c.tableStyles)===null||Y===void 0?void 0:Y.firstCol)===null||q===void 0?void 0:q.tcStyle)===null||Q===void 0?void 0:Q.border)}),Je=pt(pt({},Je),(ct=(rt=c.tableStyles)===null||rt===void 0?void 0:rt.firstCol)===null||ct===void 0?void 0:ct.tcTxStyle)):c.props.lastCol&&c._isLastCol(m.td,f)?(ve=pt(pt(pt({},ve),(_t=(vt=c.tableStyles)===null||vt===void 0?void 0:vt.lastCol)===null||_t===void 0?void 0:_t.tcStyle),{border:pt(pt({},ve?.border),(Mt=(Jt=(Nt=c.tableStyles)===null||Nt===void 0?void 0:Nt.lastCol)===null||Jt===void 0?void 0:Jt.tcStyle)===null||Mt===void 0?void 0:Mt.border)}),Je=pt(pt({},Je),(Pt=(mt=c.tableStyles)===null||mt===void 0?void 0:mt.lastCol)===null||Pt===void 0?void 0:Pt.tcTxStyle)):(c.props.bandRow&&(c._isBandRow(x)?(ve=pt(pt(pt({},ve),(St=(gt=c.tableStyles)===null||gt===void 0?void 0:gt.band1H)===null||St===void 0?void 0:St.tcStyle),{border:pt(pt({},ve?.border),(Zt=(te=(se=c.tableStyles)===null||se===void 0?void 0:se.band1H)===null||te===void 0?void 0:te.tcStyle)===null||Zt===void 0?void 0:Zt.border)}),Je=pt(pt({},Je),(ke=(ue=c.tableStyles)===null||ue===void 0?void 0:ue.band1H)===null||ke===void 0?void 0:ke.tcTxStyle)):(ve=pt(pt(pt({},ve),(Ue=(De=c.tableStyles)===null||De===void 0?void 0:De.band2V)===null||Ue===void 0?void 0:Ue.tcStyle),{border:pt(pt({},ve?.border),(hr=(cr=(sn=c.tableStyles)===null||sn===void 0?void 0:sn.band2V)===null||cr===void 0?void 0:cr.tcStyle)===null||hr===void 0?void 0:hr.border)}),Je=pt(pt({},Je),(Ai=(ln=c.tableStyles)===null||ln===void 0?void 0:ln.band2V)===null||Ai===void 0?void 0:Ai.tcTxStyle))),c.props.bandCol&&(c._isBandCol(f)?(ve=pt(pt(pt({},ve),(Ua=(wu=c.tableStyles)===null||wu===void 0?void 0:wu.band1V)===null||Ua===void 0?void 0:Ua.tcStyle),{border:pt(pt({},ve?.border),(pa=(Ya=(Su=c.tableStyles)===null||Su===void 0?void 0:Su.band1V)===null||Ya===void 0?void 0:Ya.tcStyle)===null||pa===void 0?void 0:pa.border)}),Je=pt(pt({},Je),(_o=(mo=c.tableStyles)===null||mo===void 0?void 0:mo.band1V)===null||_o===void 0?void 0:_o.tcTxStyle)):(ve=pt(pt(pt({},ve),(wo=(xo=c.tableStyles)===null||xo===void 0?void 0:xo.band2H)===null||wo===void 0?void 0:wo.tcStyle),{border:pt(pt({},ve?.border),(Ao=(bo=(So=c.tableStyles)===null||So===void 0?void 0:So.band2H)===null||bo===void 0?void 0:bo.tcStyle)===null||Ao===void 0?void 0:Ao.border)}),Je=pt(pt({},Je),(Co=(To=c.tableStyles)===null||To===void 0?void 0:To.band2H)===null||Co===void 0?void 0:Co.tcTxStyle)))),y.inheritTcStyle=ve,y.inheritTcTxStyle=Je}))}))},e})(Xh),Gw=(function(){function r(e,t,n,a){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=F.get(e,["attrs","order"]),this.pptx=t,this.ctx=n,this.source=e,this.group=a,this.source["p:grpSpPr"]){var i=F.get(this.source,["p:grpSpPr","a:xfrm"]);if(i&&(this.offset={x:Math.round(this.group&&this.pptx.wps?Ta(parseInt(i["a:off"].attrs.x)):xe(parseInt(i["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?Ta(parseInt(i["a:off"].attrs.y)):xe(parseInt(i["a:off"].attrs.y)))},this.chOffset={x:Math.round(Fl(i["a:chOff"].attrs.x)==="point"||this.pptx.wps?Ta(parseInt(i["a:chOff"].attrs.x)):xe(parseInt(i["a:chOff"].attrs.x))),y:Math.round(Fl(i["a:chOff"].attrs.y)==="point"||this.pptx.wps?Ta(parseInt(i["a:chOff"].attrs.y)):xe(parseInt(i["a:chOff"].attrs.y)))},this.chExtend={w:Math.round(Fl(i["a:chExt"].attrs.cx)==="point"||this.pptx.wps?Ta(parseInt(i["a:chExt"].attrs.cx)):xe(parseInt(i["a:chExt"].attrs.cx))),h:Math.round(Fl(i["a:chExt"].attrs.cy)==="point"||this.pptx.wps?Ta(parseInt(i["a:chExt"].attrs.cy)):xe(parseInt(i["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?Ta(parseInt(i["a:ext"].attrs.cx)):xe(parseInt(i["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?Ta(parseInt(i["a:ext"].attrs.cy)):xe(parseInt(i["a:ext"].attrs.cy)))},this.rotate=$d(parseInt(F.get(i,"attrs.rot",0))),this.flipV=F.get(i,"attrs.flipV")==="1",this.flipH=F.get(i,"attrs.flipH")==="1"),a){var o=a.extend,s=a.chExtend,l=a.chOffset,u=o.w/s.w,c=o.h/s.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*c,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*c}}this._parseBackground(),this._parseNodes()}return r.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},r.prototype._parseBackground=function(){var e=F.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=Fe(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=Zh(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=Yh(e["a:blipFill"],this.pptx,this.ctx))},r.prototype._parseNodes=function(){var e=this.source;$h(this.nodes,e,this.pptx,this.ctx,this)},r})(),xB=(function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.nodes=[],o.pptx=n,o}return Sh(e,r),e.prototype.parseNode=function(){return nr(this,void 0,void 0,(function(){var t,n,a,i,o,s,l,u,c;return ar(this,(function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),(t=F.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(n=this.ctx.rels[t].target,i=en,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[h.sent()]),(o=F.get(a,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=h.sent()).replace(/dsp:/g,"p:"),u=en(l),c=F.get(u,["p:drawing","p:spTree"]),$h(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return h.sent(),[3,4];case 4:return[2]}}))}))},e})(Xh),wB=(function(r){function e(t,n,a,i){var o=r.call(this,t,a,i)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,o}return Sh(e,r),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return nr(this,void 0,void 0,(function(){var t,n,a,i,o,s;return ar(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(t=F.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(n=this.ctx.rels[t].target,i=en,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return a=i.apply(void 0,[l.sent()]),o=F.get(a,["c:chartSpace","c:chart"]),s=F.get(o,["c:plotArea"]),F.get(s,["c:lineChart"])?this.parseLine(F.get(s,["c:lineChart"]),o):F.get(s,["c:line3DChart"])?this.parseLine(F.get(s,["c:line3DChart"]),o):F.get(s,["c:areaChart"])?this.parseAreaLine(F.get(s,["c:areaChart"]),o):F.get(s,["c:area3DChart"])?this.parseAreaLine(F.get(s,["c:area3DChart"]),o):F.get(s,["c:barChart"])?this.parseBar(F.get(s,["c:barChart"]),o):F.get(s,["c:bar3DChart"])?this.parseBar(F.get(s,["c:bar3DChart"]),o):F.get(s,["c:pieChart"])?this.parsePie(F.get(s,["c:pieChart"])):F.get(s,["c:pie3DChart"])?this.parsePie(F.get(s,["c:pie3DChart"])):F.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(F.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}}))}))},e.prototype.parseAreaLine=function(t,n){this.parseLine(t,n),this.options.series=this.options.series.map((function(a){return a.areaStyle={},a}))},e.prototype.parseLine=function(t,n){var a=F.get(t,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(F.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(a,t),this.options.color=this.parseLineColors(a),this.options.legend={bottom:"bottom",left:"center"},F.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parseBar=function(t,n){var a=F.get(t,["c:ser"]);Array.isArray(a)||(a=[a]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(F.get(n,["c:title"]))},F.get(t,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(a[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(a[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(a,t),this.options.color=this.parseBarColors(a),this.options.legend={bottom:"bottom",left:"center"},F.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(i){return(100*i).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var n=F.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var n=F.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return F.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var n=F.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map((function(a){var i=F.get(a,["a:r"]);return Array.isArray(i)||(i=[i]),i.map((function(o){return F.get(o,["a:t"])||""})).join("")})).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var n=this;return t.map((function(a){return de(Fe(F.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parseLineColors=function(t){var n=this;return t.map((function(a){return de(Fe(F.get(a,["c:spPr","a:ln","a:solidFill"])||F.get(a,["c:spPr","a:solidFill"]),n.theme,n.ctx))}))},e.prototype.parsePieColors=function(t){var n=this,a=[],i=F.get(t,["c:dPt"]);return Array.isArray(i)||(i=[i]),i.forEach((function(o){a.push(de(Fe(F.get(o,["c:spPr","a:solidFill"]),n.theme,n.ctx)))})),a},e.prototype.parsePieSeries=function(t,n){var a={type:"pie",radius:"80%",startAngle:90,data:[]};F.get(n,["c:holeSize","attrs","val"])&&(a.radius=["".concat(.8*F.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var i=F.get(n,["c:firstSliceAng","attrs","val"]);i&&(a.startAngle=90-i);for(var o=this.getCategory(t),s=this.getVal(t),l=0;l<o.length;l++)a.data.push({name:o[l],value:s[l]});return a},e.prototype.parseBarSeries=function(t,n){var a,i=this,o=F.get(n,["c:grouping","attrs","val"]);o==="stacked"?a="Ad":o==="percentStacked"&&(a="total");var s=t.map((function(u){return{type:"bar",name:F.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(o==="percentStacked"){var l=[];s.forEach((function(u,c){l=c===0?Dc([],u.data,!0):l.map((function(h,v){return h+u.data[v]}))})),s.forEach((function(u){u.data=u.data.map((function(c,h){return l[h]<=0?0:c/l[h]}))}))}return s},e.prototype.parseLineSeries=function(t,n){var a,i=this,o=F.get(n,["c:grouping","attrs","val"]);o==="stacked"?a="Ad":o==="percentStacked"&&(a="total");var s=t.map((function(u){return{type:"line",name:F.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:i.getVal(u),stack:a}}));if(a==="total"){var l=[];s.forEach((function(u,c){l=c===0?Dc([],u.data,!0):l.map((function(h,v){return h+u.data[v]}))})),s.forEach((function(u){u.data=u.data.map((function(c,h){return l[h]<=0?0:c/l[h]}))}))}return s},e.prototype.getCategory=function(t){if(F.get(t,["c:cat","c:strRef"])){var n=F.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return F.get(a,["c:v"])}))}if(F.get(t,["c:cat","c:numRef"]))return n=F.get(t,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map((function(a){return F.get(a,["c:v"])}))},e.prototype.getVal=function(t){var n=F.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map((function(a){return+F.get(a,["c:v"])}))},e})(Xh);function TI(r){var e={},t=F.get(r,"attrs")||{};return Object.keys(t).forEach((function(n){switch(n){case"algn":e.align=t[n];break;case"marL":e.marginLeft=xe(parseInt(t[n]));break;case"indent":e.indent=xe(parseInt(t[n]));break;case"lvl":e.level=t[n]}})),F.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function CI(r,e,t){var n={},a=F.get(r,"attrs")||{};Object.keys(a).forEach((function(o){switch(o){case"sz":n.size=parseInt(a[o])/100;break;case"b":n.bold=a[o]==="1";break;case"i":n.italic=a[o]==="1";break;case"u":n.underline=a[o];break;case"strike":n.strike=a[o];break;case"order":case"dirty":break;default:n[o]=a[o]}}));var i=F.get(r,"a:solidFill");return i&&(n.color=Fe(i,e,t)),n}function $h(r,e,t,n,a){return nr(this,void 0,void 0,(function(){var i,o,s,l,u,c,h,v,p,d,m,x,y,f,_,S,b,A,C,M,L;return ar(this,(function(D){switch(D.label){case 0:for(s in o=[],i=e)o.push(s);l=0,D.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in i))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<c.length;M++)y=c[M],r.push(new wh(y,t,n,a));return[3,16];case 3:for(h=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<h.length;M++)v=h[M],p=v["p:blipFill"]["a:blip"].attrs["r:embed"],d=n.rels[p].target,m=new id(d,v,t,n,a),r.push(m);return[3,16];case 4:for(x=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<x.length;M++)y=x[M],r.push(new wh(y,t,n,a));return[3,16];case 5:f=Array.isArray(e[u])?e[u]:[e[u]],M=0,D.label=6;case 6:if(!(M<f.length))return[3,13];switch(_=f[M],S=F.get(_,["a:graphic","a:graphicData","attrs","uri"]),S){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return r.push(new _B(_,t,n,a)),[3,12];case 8:return[4,(b=new xB(_,t,n,a)).parseNode()];case 9:return D.sent(),r.push(b),[3,12];case 10:return[4,(A=new wB(_,t,n,a)).parseNode()];case 11:return D.sent(),r.push(A),[3,12];case 12:return M++,[3,6];case 13:return[3,16];case 14:for(C=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<C.length;M++)L=C[M],r.push(new Gw(L,t,n,a));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}}))}))}var oot=(function(){function r(e,t,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=n}return Object.defineProperty(r.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return nr(this,void 0,void 0,(function(){return ar(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}}))}))},r.prototype._loadRels=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a=this;return ar(this,(function(i){switch(i.label){case 0:return t=en,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=F.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(o){switch(F.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.slideLayout=a.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},r.prototype._loadBackground=function(){var e=F.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=Fe(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Zh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Yh(e["a:blipFill"],this.pptx,this))},r.prototype._loadNodes=function(){return nr(this,void 0,void 0,(function(){var e;return ar(this,(function(t){switch(t.label){case 0:return e=F.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,$h(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}}))}))},r.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},r.prototype.getNodeInheritAttrsByType=function(e,t){var n=this.slideLayout.getNodeByType(e),a=F.get(n.source,t);return a||this.slideLayout.getNodeInheritAttrsByType(e,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var n=this.slideLayout.getNodeByIdx(e),a=F.get(n.source,t);return a||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},r})(),sot=(function(){function r(e,t,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=n}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),r.prototype.load=function(){return nr(this,void 0,void 0,(function(){return ar(this,(function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}}))}))},r.prototype._loadRels=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a=this;return ar(this,(function(i){switch(i.label){case 0:return t=en,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=F.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(o){switch(F.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.slideMaster=a.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},r.prototype._loadBackground=function(){return nr(this,void 0,void 0,(function(){var e;return ar(this,(function(t){return(e=F.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=Fe(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=Zh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=Yh(e["a:blipFill"],this.pptx,this)),[2]}))}))},r.prototype._loadNodes=function(){return nr(this,void 0,void 0,(function(){var e;return ar(this,(function(t){return e=F.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),$h(this.nodes,e,this.pptx,this),[2]}))}))},r.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},r.prototype.getNodeByType=function(e){return this.nodes.find((function(t){return t.type===e}))},r.prototype.getNodeByIdx=function(e){return this.nodes.find((function(t){return t.idx===e}))},r.prototype.getNodeInheritAttrsByType=function(e,t){var n=this.slideMaster.getNodeByType(e);return n&&F.get(n.source,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var n=this.slideMaster.getNodeByIdx(e);return n&&F.get(n.source,t)},r})(),lot=(function(){function r(e,t,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=t,this.pptx=n,this.load()}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return nr(this,void 0,void 0,(function(){return ar(this,(function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}}))}))},r.prototype._parseRels=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a=this;return ar(this,(function(i){switch(i.label){case 0:return t=en,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=F.get(e,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach((function(o){switch(F.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),a.theme=a.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),a.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}})),[2]}}))}))},r.prototype._parseColorMap=function(){this.colorMap=F.omit(F.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},r.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},r.prototype._parseBackground=function(){var e=F.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),t=F.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=Fe(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=Zh(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=Yh(e["a:blipFill"],this.pptx,this):t&&(this.background=Fe(t,this.theme,this))},r.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach((function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var a=n.substr(2,n.length-5),i=F.get(t[n],["a:defRPr"]);e.defaultTextStyle[a]={props:TI(t[n]),defRPr:CI(i,e.theme,e)}}}))},r.prototype._parseTextStyles=function(){var e=this,t=F.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach((function(n){var a=e.textStyles[n],i=F.get(t,"p:".concat(n))||{};Object.keys(i).forEach((function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);a[s]={},a[s].props=TI(i[o]);var l=F.get(i[o],["a:defRPr"]);a[s].defRPr=CI(l,e.theme,e)}}))}))},r.prototype._parseTableStyles=function(){var e=this,t={},n=F.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach((function(a){var i=F.get(a,["attrs","styleId"]);t[i]={},Object.keys(a).forEach((function(o){if(o.startsWith("a:")){var s=o.substr(2);t[i][s]={};var l=F.get(a[o],["a:tcStyle"]);if(l){var u={};F.get(l,["a:fill","a:solidFill"])&&(u.background=Fe(F.get(l,["a:fill","a:solidFill"]),e.theme,e));var c=F.get(l,"a:tcBdr");c&&(u.border={},Object.keys(c).forEach((function(p){if(p.startsWith("a:")){var d=p.substr(2),m=F.get(c[p],["a:ln"]);u.border[d]=Gl(m,e.theme,e)}}))),t[i][s].tcStyle=u}var h=F.get(a[o],["a:tcTxStyle"]);if(h){var v={};v.color=Fe(h,e.theme,e),F.get(h,["attrs","b"])==="on"&&(v.bold=!0),t[i][s].tcTxStyle=v}}}))})),this.tableStyles=t},r.prototype._loadNodes=function(){return nr(this,void 0,void 0,(function(){var e;return ar(this,(function(t){return e=F.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),$h(this.nodes,e,this.pptx,this),[2]}))}))},r.prototype.getNodeByType=function(e){return this.nodes.find((function(t){return t.type===e}))},r.prototype.getNodeByIdx=function(e){return this.nodes.find((function(t){return t.idx===e}))},r.prototype.getNodeInheritAttrsByType=function(e,t){},r.prototype.getNodeInheritAttrsByIdx=function(e,t){},r})(),uot=(function(){function r(e,t,n){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return r.prototype._parseClrScheme=function(){var e=F.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var t in e)if(t.startsWith("a:")){var n=t.substring(2),a=F.get(e[t],["a:sysClr","attrs","lastClr"])||F.get(e[t],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+a}},r.prototype._parseLineStyleLst=function(){var e=this,t=F.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=t.map((function(n){var a={color:{}};return F.get(n,["attrs","w"])&&(a.width=xe(parseInt(F.get(n,["attrs","w"])))),F.get(n,["attrs","algn"])&&(a.algn=F.get(n,["attrs","algn"])),F.get(n,["attrs","cap"])&&(a.cap=F.get(n,["attrs","cap"])),F.get(n,["attrs","cmpd"])&&(a.cmpd=F.get(n,["attrs","cmpd"])),F.get(n,["a:miter","attrs","lim"])&&(a.miterLim=xe(parseInt(F.get(n,["a:miter","attrs","lim"])))),F.get(n,["a:prstDash","attrs","val"])&&(a.type=F.get(n,["a:prstDash","attrs","val"])),F.get(n,["a:solidFill"])&&(a.color=Fe(F.get(n,["a:solidFill"]),e)),a}))},r.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},r.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},r})(),MI=(function(){function r(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return r.prototype.load=function(e){return nr(this,void 0,void 0,(function(){var t,n;return ar(this,(function(a){switch(a.label){case 0:return t=new J4,n=this,[4,t.loadAsync(e)];case 1:return n._zipContents=a.sent(),[4,this._loadThumbnail()];case 2:return a.sent(),[4,this._loadMedia()];case 3:return a.sent(),[4,this._loadPresentation()];case 4:return a.sent(),[4,this._loadContentTypes()];case 5:return a.sent(),[2]}}))}))},r.prototype._loadThumbnail=function(){return nr(this,void 0,void 0,(function(){var e;return ar(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=t.sent(),this.thumbnail="data:image/jpeg;base64,"+e,t.label=2;case 2:return[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}}))}))},r.prototype._loadPresentation=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a,i,o;return ar(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=s.sent(),t=en(e),n=t["p:presentation"]["p:sldSz"].attrs,this.width=xe(parseInt(n.cx)),this.height=xe(parseInt(n.cy)),this.defaultTextStyleSource=F.get(t,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:a=s.sent(),i=en(a),o=F.get(i,["Properties","Application"]),this.wps=o?.includes("WPS")||!1,s.label=3;case 3:return[3,5];case 4:return s.sent(),[3,5];case 5:return[2]}}))}))},r.prototype._loadContentTypes=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a,i,o,s,l,u,c,h,v,p,d,m,x,y,f,_,S,b;return ar(this,(function(A){switch(A.label){case 0:return A.trys.push([0,22,,23]),t=en,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=t.apply(void 0,[A.sent()]),n=e.Types.Override,!(a=n.filter((function(C){return C.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"}))))return[3,5];i=0,o=a,A.label=2;case 2:return i<o.length?(s=o[i],f=s.attrs.PartName.substr(1),l=en,[4,this._zipContents.files[f].async("text")]):[3,5];case 3:_=l.apply(void 0,[A.sent()]),this.themes.push(new uot(f,_,this)),A.label=4;case 4:return i++,[3,2];case 5:return(u=n.find((function(C){return C.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"})))?(f=u.attrs.PartName.substr(1),c=en,[4,this._zipContents.files[f].async("text")]):[3,7];case 6:_=c.apply(void 0,[A.sent()]),this.tableStyles=_,A.label=7;case 7:h=n.filter((function(C){return C.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"})),y=0,A.label=8;case 8:return y<h.length?(f=h[y].attrs.PartName.substr(1),v=en,[4,this._zipContents.files[f].async("text")]):[3,11];case 9:_=v.apply(void 0,[A.sent()]),this.slideMaster.push(new lot(f,_,this)),A.label=10;case 10:return y++,[3,8];case 11:p=n.filter((function(C){return C.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"})),y=0,A.label=12;case 12:return y<p.length?(f=p[y].attrs.PartName.substr(1),d=en,[4,this._zipContents.files[f].async("text")]):[3,16];case 13:return _=d.apply(void 0,[A.sent()]),[4,(m=new sot(f,_,this)).load()];case 14:A.sent(),this.slideLayouts.push(m),A.label=15;case 15:return y++,[3,12];case 16:x=n.filter((function(C){return C.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"})),y=0,A.label=17;case 17:return y<x.length?(f=x[y].attrs.PartName.substr(1),S=en,[4,this._zipContents.files[f].async("text")]):[3,21];case 18:return _=S.apply(void 0,[A.sent()]),[4,(b=new oot(f,_,this)).load()];case 19:A.sent(),this.slides.push(b),A.label=20;case 20:return y++,[3,17];case 21:return this.slides.sort((function(C,M){return C.index-M.index})),[3,23];case 22:return A.sent(),[3,23];case 23:return[2]}}))}))},r.prototype._loadMedia=function(){return nr(this,void 0,void 0,(function(){var e,t,n,a,i,o,s,l,u,c,h,v,p,d=this;return ar(this,(function(m){switch(m.label){case 0:e=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/image")})).map((function(y){return d._zipContents.files[y]})),t=0,n=e,m.label=1;case 1:return t<n.length?(a=n[t],i=(function(y){var f;switch(y){case"jpg":case"jpeg":f="image/jpeg";break;case"png":f="image/png";break;case"gif":f="image/gif";break;case"emf":f="image/x-emf";break;case"wmf":f="image/x-wmf";break;default:f="image/*"}return f})((x=a.name).substr(2+(~-x.lastIndexOf(".")>>>0))),[4,a.async("base64")]):[3,4];case 2:o=m.sent(),this.medias[a.name]="data:".concat(i,";base64,").concat(o),m.label=3;case 3:return t++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter((function(y){return y.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(y.split(".").pop().toLowerCase())})).map((function(y){return d._zipContents.files[y]})),l=0,u=s,m.label=5;case 5:return l<u.length?(c=u[l],h=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:v=m.sent(),p=new Blob([v],{type:"".concat(["mp3","wav"].includes(h)?"audio":"video","/").concat(h)}),this.medias[c.name]=URL.createObjectURL(p),m.label=7;case 7:return l++,[3,5];case 8:return[2]}var x}))}))},r.prototype.getXmlByPath=function(e){return nr(this,void 0,void 0,(function(){return ar(this,(function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw new Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,t.sent()]}}))}))},r.prototype.getSlideLayout=function(e){return this.slideLayouts.find((function(t){return t.name===e}))},r.prototype.getSlideMaster=function(e){return this.slideMaster.find((function(t){return t.name===e}))},r.prototype.getTheme=function(e){return this.themes.find((function(t){return t.name===e}))},r.prototype.getMedia=function(e){return this.medias[e]},r})();function I1(r){var e=r.extend,t=r.offset,n=r.clip,a=r.base64,i=r.audioFile,o=r.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",t.x+"px"),s.style.setProperty("top",t.y+"px");var l,u,c,h,v=document.createElement("div");v.style.setProperty("position","absolute"),v.style.setProperty("left","0"),v.style.setProperty("top","0"),v.style.setProperty("width",e.w+"px"),v.style.setProperty("height",e.h+"px"),v.style.setProperty("overflow","hidden"),n?(l=e.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),u=e.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),c=-1*l*(n.l===void 0?0:n.l),h=-1*u*(n.t===void 0?0:n.t)):(l=e.w,u=e.h,c=0);var p=document.createElement("img");if(p.src=a,p.width=l,p.height=u,p.style.setProperty("position","absolute"),p.style.setProperty("left",c+"px"),p.style.setProperty("top",h+"px"),v.append(p),s.append(v),i){var d=document.createElement("audio");d.style.position="absolute",d.style.left="0",d.style.top="0",d.src=i,d.controls=!0,d.style.transform="translate(-50%)",s.append(d)}if(o){var m=document.createElement("video");m.style.position="absolute",m.style.left="0",m.style.top="0",m.width=e.w,m.height=e.h,m.src=o,m.controls=!0,s.append(m)}return s}function cot(r,e,t){var n,a=r.props,i=r.text,o=pt(pt({},e),a),s=document.createElement("span");s.innerHTML=typeof i=="string"?i:"";var l=18;o.size&&(!((n=t?.normAutofit)===null||n===void 0)&&n.fontScale?(l=o.size*t.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var u=de(o.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":c.test(i)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":c.test(i)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(i)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else c.test(i)&&(s.style.letterSpacing=-.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=de(o.background)),s.style.wordBreak="break-word",s}function hot(r,e,t){var n=document.createElement("span"),a=r.firstElementChild;switch(n.style.fontSize=a.style.fontSize,n.style.color=a.style.color,n.style.fontWeight=a.style.fontWeight,n.style.fontStyle=a.style.fontStyle,n.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:n.textContent=t+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][t-1]||t+"";break;case"romanUcPeriod":n.textContent=(function(i){var o=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof i!="number"||i<1||i>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;i>=o[l].value;)s+=o[l].numeral,i-=o[l].value;return s})(t)+".";break;case"alphaUcPeriod":n.textContent=R0(t)+".";break;case"alphaLcPeriod":n.textContent=R0(t).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=R0(t).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=(function(i){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(i)||i<0)return"";for(var s="",l=i.toString(),u=0;u<l.length;u++)s+=o[parseInt(l[u],10)];return s})(t)+"."}r.prepend(n)}function od(r,e,t){var n,a,i,o;e===void 0&&(e=0),t===void 0&&(t={});var s=r.inheritProps,l=r.inheritRProps,u=r.props,c=r.rows,h=pt(pt({},s),u),v=function(){for(var A,C,M=0,L=0,D=c;L<D.length;L++){var P=D[L];P.props&&P.props.size&&(M=Math.max(M,P.props.size))}var E=((C=(A=t?.bodyProps)===null||A===void 0?void 0:A.normAutofit)===null||C===void 0?void 0:C.fontScale)||1;return(M||l.size||18)*E},p=document.createElement("div"),d=t.isFirst?0:h.spaceBefore||0,m=t.isLast?0:h.spaceAfter||0;p.style.margin="".concat(Math.floor(.2*v()),"px 0 0 0"),p.style.padding="".concat(Math.floor(d),"px 0px ").concat(Math.floor(m),"px 0px");var x=document.createElement("p");x.style.margin="0",x.style.padding="0px",x.style.wordBreak="break-word",x.style.textAlign=h.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[h.align]||"center",h.align==="dist"&&(x.style.textAlignLast="justify");var y=h.hasOwnProperty("lineHeight")?h.lineHeight:1;if(!((a=(n=t.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||a===void 0)&&a.lnSpcReduction&&(y*=1-((o=(i=t.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),x.style.lineHeight=y+"",x.style.fontSize=v()+"px",c.length){for(var f=0,_=c;f<_.length;f++){var S=_[f];S.isBr?x.appendChild(document.createElement("br")):x.appendChild(cot(S,pt(pt({},l),{marginTop:Math.floor(.2*v())}),t.bodyProps))}h.buAutoNum?hot(x,h,e):h.buChar&&(function(A,C){var M=document.createElement("span"),L=A.firstElementChild;M.style.color=L.style.color,M.style.fontSize=L.style.fontSize,M.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[C.buChar]||"■",M.style.marginRight="10px",A.prepend(M)})(x,h),x.style.paddingLeft=(h.marginLeft||0)+(h.indent||0)+"px"}else{var b=document.createElement("span");b.innerHTML=" ",b.style.fontSize=l.size+"px",x.appendChild(b)}return p.appendChild(x),p}var SB="http://www.w3.org/2000/svg";function st(r){return document.createElementNS(SB,r)}function ni(r){var e=r.extend;return .16667*Math.min(e.w,e.h)}function kt(r,e,t){t===void 0&&(t=0);var n=e.prstGeom,a=(n?.gd||[]).find((function(i){return i.name===r}));return a?a.fmla:t}function at(r,e,t){t===void 0&&(t=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(o){return o.name===r}));return i?Math.min(n.w,n.h)*i.fmla:t}function LI(r,e,t){t===void 0&&(t=0);var n=e.extend,a=e.prstGeom,i=(a?.gd||[]).find((function(o){return o.name===r}));return i?Math.max(n.w,n.h)*i.fmla:t}function Fa(r,e){var t=0;switch(r){case"sm":t=1*e;break;case"med":t=1.5*e;break;case"lg":t=2.5*e}return Math.max(t,2)}function DI(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,h=n?s:c,v=h.len,p=v===void 0?"med":v,d=h.w,m=d===void 0?"med":d,x=Fa(p,l),y=Fa(m,l),f=st("defs"),_=st("marker"),S="marker-".concat(o,"-").concat(n?"start":"end");_.setAttribute("id",S),_.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*y)),_.setAttribute("refX",x+"px"),_.setAttribute("refY",y+"px"),_.setAttribute("markerWidth",2*x+"px"),_.setAttribute("markerHeight",2*y+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=st("ellipse");b.setAttribute("cx",x+"px"),b.setAttribute("cy",y+"px"),b.setAttribute("rx",x+"px"),b.setAttribute("ry",y+"px"),b.setAttribute("fill",de(u)||"transparent"),_.appendChild(b),f.appendChild(_),e.appendChild(f),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(S,")"))}function II(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,h=n?s:c,v=h.len,p=v===void 0?"med":v,d=h.w,m=d===void 0?"med":d,x=Fa(p,l),y=Fa(m,l),f=st("defs"),_=st("marker"),S="marker-".concat(o,"-").concat(n?"start":"end");_.setAttribute("id",S),_.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*y)),_.setAttribute("refX",(n?.9*x:1.1*x)+"px"),_.setAttribute("refY",y+"px"),_.setAttribute("markerWidth",2*x+"px"),_.setAttribute("markerHeight",2*y+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=st("path"),A=n?["M ".concat(2*x,",0"),"L 0,".concat(y),"L ".concat(2*x,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(y),"L 0,".concat(2*y),"Z"].join(" ");b.setAttribute("d",A),b.setAttribute("fill",de(u)||"transparent"),_.appendChild(b),f.appendChild(_),e.appendChild(f),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(S,")"))}function PI(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,h=n?s:c,v=h.len,p=v===void 0?"med":v,d=h.w,m=d===void 0?"med":d,x=Fa(p,l),y=Fa(m,l),f=st("defs"),_=st("marker"),S="marker-".concat(o,"-").concat(n?"start":"end");_.setAttribute("id",S),_.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*y)),_.setAttribute("refX",x+"px"),_.setAttribute("refY",y+"px"),_.setAttribute("markerWidth",2*x+"px"),_.setAttribute("markerHeight",2*y+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var b=st("path"),A=["M 0,".concat(y),"L ".concat(x,",0"),"L ".concat(2*x,",").concat(y),"L ".concat(x,",").concat(2*y),"Z"].join(" ");b.setAttribute("d",A),b.setAttribute("fill",de(u)||"transparent"),_.appendChild(b),f.appendChild(_),e.appendChild(f),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(S,")"))}function RI(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,h=n?s:c,v=h.len,p=v===void 0?"med":v,d=h.w,m=d===void 0?"med":d,x=Fa(p,l),y=Fa(m,l),f=st("defs"),_=st("marker"),S="marker-".concat(o,"-").concat(n?"start":"end");_.setAttribute("id",S),_.setAttribute("viewBox","0 0 ".concat(2*x+2*l," ").concat(2*y+2*l));var b=n?m==="lg"?2*l:3*l:m==="lg"?2*x:2*x-l;_.setAttribute("refX",b+"px"),_.setAttribute("refY",y+l+"px"),_.setAttribute("markerWidth",2*x+"px"),_.setAttribute("markerHeight",2*y+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var A=st("path"),C=n?["M ".concat(2*x+l,", ").concat(l),"L ".concat(l,",").concat(y+l),"L ".concat(2*x+l,",").concat(2*y+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*x+l,",").concat(y+l),"L ".concat(l,",").concat(2*y+l)].join(" ");A.setAttribute("d",C),A.setAttribute("stroke-width",l+"px"),A.setAttribute("stroke",de(u)||"transparent"),A.setAttribute("fill","transparent"),A.setAttribute("stroke-linecap","round"),A.setAttribute("stroke-linejoin","miter"),A.style.overflow="visible",_.appendChild(A),f.appendChild(_),e.appendChild(f),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(S,")"))}function EI(r,e,t,n){n===void 0&&(n=!1);var a=r.border,i=a===void 0?{}:a,o=r.uuid,s=i.headEnd,l=i.width,u=i.color,c=i.tailEnd,h=n?s:c,v=h.len,p=v===void 0?"med":v,d=h.w,m=d===void 0?"med":d,x=Fa(p,l),y=Fa(m,l),f=st("defs"),_=st("marker"),S="marker-".concat(o,"-").concat(n?"start":"end");_.setAttribute("id",S),_.setAttribute("viewBox","0 0 ".concat(2*x," ").concat(2*y));var b=n?m==="sm"?1.5*l:2*l:m==="sm"?2*x-1.5*l:2*x-2*l;_.setAttribute("refX",b+"px"),_.setAttribute("refY",y+"px"),_.setAttribute("markerWidth",2*x+"px"),_.setAttribute("markerHeight",2*y+"px"),_.setAttribute("orient","auto"),_.setAttribute("markerUnits","userSpaceOnUse");var A=st("path"),C=n?["M 0, ".concat(y),"L ".concat(2*x,",0"),"L ".concat(x,",").concat(y),"L ".concat(2*x,",").concat(2*y),"Z"].join(" "):["M 0,0","L ".concat(2*x,",").concat(y),"L 0,".concat(2*y),"L ".concat(x,",").concat(y),"Z"].join(" ");A.setAttribute("d",C),A.setAttribute("fill",de(u)||"transparent"),A.style.overflow="visible",_.appendChild(A),f.appendChild(_),e.appendChild(f),t.setAttribute(n?"marker-start":"marker-end","url(#".concat(S,")"))}function vc(r,e,t){var n=r.border,a=n===void 0?{}:n;r.extend;var i=a.headEnd,o=a.tailEnd;if(i&&i.type!=="none")switch(i.type){case"triangle":II(r,e,t,!0);break;case"oval":DI(r,e,t,!0);break;case"diamond":PI(r,e,t,!0);break;case"arrow":RI(r,e,t,!0);break;case"stealth":EI(r,e,t,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":II(r,e,t,!1);break;case"oval":DI(r,e,t,!1);break;case"diamond":PI(r,e,t,!1);break;case"arrow":RI(r,e,t,!1);break;case"stealth":EI(r,e,t,!1)}}function kI(r){var e=r.extend,t=st("rect");return t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width",e.w+"px"),t.setAttribute("height",e.h+"px"),t}function Dr(r,e,t,n,a){var i=r*Math.PI/180;return[i===0||i===2*Math.PI?e+n:i===Math.PI?e-n:i===Math.PI/2||i===3*Math.PI/2?e:i>0&&i<Math.PI/2||i>3*Math.PI/2&&i<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))):e-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(i),2)/Math.pow(a,2))),i===0||i===2*Math.PI||i===Math.PI?t:i===Math.PI/2?t+a:i===3*Math.PI/2?t-a:i>Math.PI&&i<2*Math.PI?t-Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2))):t+Math.sqrt(1/(1/Math.pow(a,2)+Math.pow(1/Math.tan(i),2)/Math.pow(n,2)))]}function pc(r,e){var t=0;return(e>r&&e-r>180||e<r&&r-e<180)&&(t=1),t}function dc(r){var e=r.extend,t=.146*e.w,n=.146*e.h;return{top:n,bottom:n,left:t,right:t,w:e.w-2*t,h:e.h-2*n}}function P1(r){var e=r.extend,t=r.offset,n=r.border,a=r.background,i=r.rotate,o=r.flipH,s=r.flipV,l=document.createElement("div"),u=t.x,c=t.y;l.className="shape-wrapper shape-".concat(r.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",c+"px");var h,v=document.createElementNS(SB,"svg");v.style.setProperty("position","absolute"),v.setAttribute("width","100%"),v.setAttribute("height","100%"),v.style.setProperty("left","0"),v.style.setProperty("top","0"),v.style.overflow="visible";var p={left:0,top:0,bottom:0,w:e.w,h:e.h},d=!0;switch(r.shape){case"customGeom":h=(function(y){var f=y.prstGeom,_=f===void 0?{}:f,S=y.extend,b=_.pathList,A=_.w,C=_.h,M=st("path"),L={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},D=S.w/A,P=S.h/C,E=b.map((function(O){var N=L[O.type],z=Array.isArray(O.points)?O.points.map((function(G){return"".concat(G[0]*D,",").concat(G[1]*P)})).join(" "):"";return z?"".concat(N," ").concat(z):"".concat(N)})).join(" ");return M.setAttribute("d",E),M.style.fillRule="evenodd",M})(r),vc(r,v,h);break;case"flowChartProcess":case"rect":h=kI(r);break;case"snip1Rect":h=(function(y){var f=y.extend,_=st("polygon"),S=at("adj",y,ni(y)),b=["0,0","".concat(f.w-S,",0"),"".concat(f.w,",").concat(S),"".concat(f.w,",").concat(f.h),"0,".concat(f.h)].join(" ");return _.setAttribute("points",b),_})(r);break;case"snip2SameRect":h=(function(y){var f=y.extend,_=st("polygon"),S=at("adj1",y,ni(y)),b=at("adj2",y,0),A=[[S,0],[f.w-S,0],[f.w,S],[f.w,f.h-b],[f.w-b,f.h],[b,f.h],[0,f.h-b],[0,S]].map((function(C){return"".concat(C[0],",").concat(C[1])})).join(" ");return _.setAttribute("points",A),_})(r);break;case"snip2DiagRect":h=(function(y){var f=y.extend,_=st("polygon"),S=at("adj1",y,0),b=at("adj2",y,ni(y)),A=[[S,0],[f.w-b,0],[f.w,b],[f.w,f.h-S],[f.w-S,f.h],[b,f.h],[0,f.h-b],[0,S]].map((function(C){return"".concat(C[0],",").concat(C[1])})).join(" ");return _.setAttribute("points",A),_})(r);break;case"snipRoundRect":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,ni(y)),b=at("adj2",y,ni(y)),A=["M ".concat(S,",0"),"L ".concat(f.w-b,",0"),"L ".concat(f.w,",").concat(b),"L ".concat(f.w,",").concat(f.h),"L 0,".concat(f.h),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return _.setAttribute("d",A),_})(r);break;case"roundRect":h=(function(y){var f=kI(y),_=at("adj",y,ni(y));return f.setAttribute("rx",_+"px"),f.setAttribute("ry",_+"px"),f})(r);break;case"round1Rect":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,ni(y)),b=["M 0,0","L ".concat(f.w-S,",0"),"Q ".concat(f.w,",0 ").concat(f.w,",").concat(S),"L ".concat(f.w,",").concat(f.h),"L 0,".concat(f.h),"Z"].join(" ");return _.setAttribute("d",b),_})(r);break;case"round2SameRect":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,ni(y)),b=at("adj2",y,0),A=["M ".concat(S,",0"),"L ".concat(f.w-S,",0"),"Q ".concat(f.w,",0 ").concat(f.w,",").concat(S),"L ".concat(f.w,",").concat(f.h-b),"Q ".concat(f.w,",").concat(f.h," ").concat(f.w-b,",").concat(f.h),"L ".concat(b,",").concat(f.h),"Q 0,".concat(f.h," 0,").concat(f.h-b),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return _.setAttribute("d",A),_})(r);break;case"round2DiagRect":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,ni(y)),b=at("adj2",y,0),A=["M ".concat(S,",0"),"L ".concat(f.w-b,",0"),"Q ".concat(f.w,",0 ").concat(f.w,",").concat(b),"L ".concat(f.w,",").concat(f.h-S),"Q ".concat(f.w,",").concat(f.h," ").concat(f.w-S,",").concat(f.h),"L ".concat(b,",").concat(f.h),"Q 0,".concat(f.h," 0,").concat(f.h-b),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return _.setAttribute("d",A),_})(r);break;case"triangle":h=(function(y){var f=y.extend,_=st("polygon"),S=["".concat(f.w/2,",0"),"0,".concat(f.h),"".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("points",S),_})(r);break;case"rtTriangle":h=(function(y){var f=y.extend,_=st("polygon"),S=["0,".concat(f.h),"0,0","".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("points",S),_})(r);break;case"ellipse":h=(function(y){var f=y.extend,_=st("ellipse"),S=f.w/2,b=f.h/2,A=S,C=b;return _.setAttribute("cx",S+"px"),_.setAttribute("cy",b+"px"),_.setAttribute("rx",A+"px"),_.setAttribute("ry",C+"px"),_})(r);break;case"line":h=(function(y){var f=y.extend,_=st("path"),S=["M 0,0","L ".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("d",S),_})(r),vc(r,v,h),d=!1;break;case"straightConnector1":h=(function(y){var f=y.extend,_=st("path"),S=["M 0,0","L ".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("d",S),_})(r),vc(r,v,h),d=!1;break;case"bentConnector3":h=(function(y){var f=y.extend,_=st("path"),S=LI("adj1",y,.5*Math.max(f.w,f.h)),b=["M 0,0","L ".concat(S,",0"),"L ".concat(S,",").concat(f.h),"L ".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("d",b),_})(r),vc(r,v,h),d=!1;break;case"curvedConnector3":h=(function(y){var f=y.extend,_=st("path"),S=LI("adj1",y,.5*Math.max(f.w,f.h)),b=["M0,0","Q".concat(S,",0 ").concat(S,",").concat(f.h/2),"T".concat(f.w,",").concat(f.h)].join(" ");return _.setAttribute("d",b),_})(r),vc(r,v,h),d=!1;break;case"parallelogram":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.5*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w,",0"),"L".concat(f.w-S,",").concat(f.h),"L0,".concat(f.h),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.5*Math.min(f.w,f.h)),S=.84*(f.w-_),b=.08*f.h+_/f.w*f.h*.42;return{top:b,bottom:b,left:(f.w-S)/2,right:(f.w-S)/2,w:S,h:f.h-2*b}})(r);break;case"trapezoid":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.25*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(f.h),"L0,".concat(f.h),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.5*Math.min(f.w,f.h)),S=_/f.w*.66*f.h,b=.66*_;return{top:S,bottom:0,left:b,right:b,w:f.w-2*b,h:f.h-S}})(r);break;case"diamond":h=(function(y){var f=y.extend,_=st("path"),S=["M".concat(f.w/2,",0"),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w/2,",").concat(f.h),"L0,".concat(f.h/2),"Z"].join(" ");return _.setAttribute("d",S),_})(r),p=(function(y){var f=y.extend,_=.25*f.h,S=.25*f.w;return{top:_,bottom:_,left:S,right:S,w:.5*f.w,h:.5*f.h}})(r);break;case"pentagon":h=(function(y){var f=y.extend,_=st("path"),S=["M".concat(f.w/2,",0"),"L".concat(f.w,",").concat(.3771*f.h),"L".concat(.808*f.w,",").concat(f.h),"L".concat(.192*f.w,",").concat(f.h),"L0,".concat(.3771*f.h),"Z"].join(" ");return _.setAttribute("d",S),_})(r),p=(function(y){var f=y.extend,_=.227*f.h,S=.192*f.w;return{top:_,bottom:0,left:S,right:S,w:.616*f.w,h:.773*f.h}})(r);break;case"hexagon":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.25*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-S,",").concat(f.h),"L".concat(S,",").concat(f.h),"L0,".concat(f.h/2),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h)),S=.098*f.h+_/f.w*.38*f.h,b=.088*f.w+.422*_;return{top:S,bottom:S,left:b,right:b,w:f.w-2*b,h:f.h-2*S}})(r);break;case"heptagon":h=(function(y){var f=y.extend,_=st("path"),S=["M".concat(f.w/2,",0"),"L".concat(.9*f.w,",").concat(.2*f.h),"L".concat(f.w,",").concat(.642*f.h),"L".concat(.722*f.w,",").concat(f.h),"L".concat(.278*f.w,",").concat(f.h),"L0,".concat(.642*f.h),"L".concat(.1*f.w,",").concat(.2*f.h),"Z"].join(" ");return _.setAttribute("d",S),_})(r),p=(function(y){var f=y.extend;return{top:.2*f.h,bottom:.2*f.h,left:.1*f.w,right:.1*f.w,w:.8*f.w,h:.6*f.h}})(r);break;case"octagon":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.29*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(S),"L".concat(f.w,",").concat(f.h-S),"L".concat(f.w-S,",").concat(f.h),"L".concat(S,",").concat(f.h),"L0,".concat(f.h-S),"L0,".concat(S),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.29*Math.min(f.w,f.h));return{top:.5*_,bottom:.5*_,left:.5*_,right:.5*_,w:f.w-_,h:f.h-_}})(r);break;case"decagon":h=(function(y){var f=y.extend,_=st("path"),S=.344,b=.117,A=.19,C=["M".concat(f.w*S,",0"),"L".concat(.656*f.w,",0"),"L".concat(.883*f.w,",").concat(f.h*A),"L".concat(f.w,",").concat(.5*f.h),"L".concat(.883*f.w,",").concat(.81*f.h),"L".concat(.656*f.w,",").concat(f.h),"L".concat(f.w*S,",").concat(f.h),"L".concat(f.w*b,",").concat(.81*f.h),"L0,".concat(.5*f.h),"L".concat(f.w*b,",").concat(f.h*A),"Z"].join(" ");return _.setAttribute("d",C),_})(r),p=(function(y){var f=y.extend,_=.117,S=.19;return{top:f.h*S,bottom:f.h*S,left:f.w*_,right:f.w*_,w:.766*f.w,h:.62*f.h}})(r);break;case"dodecagon":h=(function(y){var f=y.extend,_=st("path"),S=.364,b=.133,A=.135,C=["M".concat(f.w*S,",0"),"L".concat(.636*f.w,",0"),"L".concat(.867*f.w,",").concat(f.h*A),"L".concat(f.w,",").concat(f.h*S),"L".concat(f.w,",").concat(.636*f.h),"L".concat(.867*f.w,",").concat(.865*f.h),"L".concat(.636*f.w,",").concat(f.h),"L".concat(f.w*S,",").concat(f.h),"L".concat(f.w*b,",").concat(.865*f.h),"L0,".concat(.636*f.h),"L0,".concat(f.h*S),"L".concat(f.w*b,",").concat(f.h*A),"Z"].join(" ");return _.setAttribute("d",C),_})(r),p=(function(y){var f=y.extend,_=.133,S=.135;return{top:f.h*S,bottom:f.h*S,left:f.w*_,right:f.w*_,w:.734*f.w,h:.73*f.h}})(r);break;case"pie":h=(function(y){var f=y.extend,_=st("path"),S=kt("adj1",y,360),b=kt("adj2",y,270),A=f.w/2,C=f.h/2,M=f.w/2,L=f.h/2,D=Dr(S,M,L,A,C),P=D[0],E=D[1],O=Dr(b,M,L,A,C),N=O[0],z=O[1],G=pc(S,b),U="M".concat(M,",").concat(L,", L").concat(P," ").concat(E," A ").concat(A," ").concat(C," 0 ").concat(G," ").concat(1," ").concat(N," ").concat(z," Z");return _.setAttribute("d",U),_})(r),p=dc(r);break;case"arc":h=(function(y){var f=y.extend,_=st("path"),S=kt("adj1",y,270),b=kt("adj2",y,0),A=f.w/2,C=f.h/2,M=f.w/2,L=f.h/2,D=Dr(S,M,L,A,C),P=D[0],E=D[1],O=Dr(b,M,L,A,C),N=O[0],z=O[1],G=pc(S,b),U="M".concat(P,",").concat(E," A ").concat(A," ").concat(C," 0 ").concat(G," ").concat(1," ").concat(N," ").concat(z);return _.setAttribute("d",U),_})(r),d=!1;break;case"bracketPair":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.16667*Math.min(f.w,f.h)),b=["M".concat(S,",").concat(f.h),"Q".concat(0,",").concat(f.h," ").concat(0,",").concat(f.h-S),"L".concat(0,",").concat(S),"Q".concat(0,",").concat(0," ").concat(S,",").concat(0),"M".concat(f.w-S,",").concat(0),"Q".concat(f.w,",").concat(0," ").concat(f.w,",").concat(S),"L".concat(f.w,",").concat(f.h-S),"Q".concat(f.w,",").concat(f.h," ").concat(f.w-S,",").concat(f.h)].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=.285*at("adj",y,.16667*Math.min(f.w,f.h));return{top:_,bottom:_,left:_,right:_,w:f.w-2*_,h:f.h-2*_}})(r),d=!1;break;case"bracePair":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.083335*Math.min(f.w,f.h)),b=["M".concat(2*S,",").concat(f.h),"Q".concat(S,",").concat(f.h," ").concat(S,",").concat(f.h-S),"L".concat(S,",").concat(f.h/2+S),"Q".concat(S,",").concat(f.h/2," ").concat(0,",").concat(f.h/2),"Q".concat(S,",").concat(f.h/2," ").concat(S,",").concat(f.h/2-S),"L".concat(S,",").concat(S),"Q".concat(S,",").concat(0," ").concat(2*S,",").concat(0),"M".concat(f.w-2*S,",").concat(0),"Q".concat(f.w-S,",").concat(0," ").concat(f.w-S,",").concat(S),"L".concat(f.w-S,",").concat(f.h/2-S),"Q".concat(f.w-S,",").concat(f.h/2," ").concat(f.w,",").concat(f.h/2),"Q".concat(f.w-S,",").concat(f.h/2," ").concat(f.w-S,",").concat(f.h/2+S),"L".concat(f.w-S,",").concat(f.h-S),"Q".concat(f.w-S,",").concat(f.h," ").concat(f.w-2*S,",").concat(f.h)].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=.285*at("adj",y,.16667*Math.min(f.w,f.h));return{top:_,bottom:_,left:_,right:_,w:f.w-2*_,h:f.h-2*_}})(r),d=!1;break;case"chord":h=(function(y){var f=y.extend,_=st("path"),S=kt("adj1",y,45),b=kt("adj2",y,270),A=f.w/2,C=f.h/2,M=f.w/2,L=f.h/2,D=Dr(S,M,L,A,C),P=D[0],E=D[1],O=Dr(b,M,L,A,C),N=O[0],z=O[1],G=pc(S,b),U="M".concat(P," ").concat(E," A ").concat(A," ").concat(C," 0 ").concat(G," ").concat(1," ").concat(N," ").concat(z," Z");return _.setAttribute("d",U),_})(r),p=dc(r);break;case"teardrop":h=(function(y){var f=y.extend,_=st("path"),S=kt("adj",y,1),b=f.w/2,A=f.h/2,C=f.w/2,M=f.h/2,L=Dr(0,C,M,b,A),D=L[0],P=L[1],E=Dr(270,C,M,b,A),O=E[0],N=E[1],z=pc(0,270),G="M".concat(D," ").concat(P," A ").concat(b," ").concat(A," 0 ").concat(z," ").concat(1," ").concat(O," ").concat(N),U=b*S,W=C+U,Y=M-A*U/(f.w/2),q=(f.w/2+W)/2,Q=(f.h/2+Y)/2;return G+=" Q".concat(q,",0 ").concat(W,",").concat(Y),G+=" Q".concat(f.w,",").concat(Q," ").concat(C+b,",").concat(M),_.setAttribute("d",G),_})(r),p=dc(r);break;case"frame":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,.12*Math.min(f.w,f.h)),b=["M0,0","L".concat(f.w,",0"),"L".concat(f.w,",").concat(f.h),"L0,".concat(f.h),"Z","M".concat(S,",").concat(S),"L".concat(S,",").concat(f.h-S),"L".concat(f.w-S,",").concat(f.h-S),"L".concat(f.w-S,",").concat(S),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.12*Math.min(f.w,f.h));return{top:_,bottom:_,left:_,right:_,w:f.w-2*_,h:f.h-2*_}})(r);break;case"halfFrame":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,.333*Math.min(f.w,f.h)),b=Math.min(at("adj2",y,.333*Math.min(f.w,f.h)),f.w*(1-S/f.h)),A=["M0,0","L".concat(f.w,",0"),"L".concat(f.w*(1-S/f.h),",").concat(S),"L".concat(b,",").concat(S),"L".concat(b,",").concat(f.h*(1-b/f.w)),"L0,".concat(f.h),"Z"].join(" ");return _.setAttribute("d",A),_})(r);break;case"corner":h=(function(y){var f=y.extend,_=st("path"),S=at("adj1",y,.5*Math.min(f.w,f.h)),b=at("adj2",y,.5*Math.min(f.w,f.h)),A=["M0,0","L".concat(b,",0"),"L".concat(b,",").concat(f.h-S),"L".concat(f.w,",").concat(f.h-S),"L".concat(f.w,",").concat(f.h),"L0,".concat(f.h),"Z"].join(" ");return _.setAttribute("d",A),_})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h));return{top:f.h-_,bottom:0,left:0,right:0,w:f.w,h:_}})(r);break;case"diagStripe":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.5*Math.min(f.w,f.h)),b=f.w*S/f.h,A=["M".concat(b,",0"),"L".concat(f.w,",0"),"L0,".concat(f.h),"L0,".concat(S),"Z"].join(" ");return _.setAttribute("d",A),_})(r),p=(function(y){var f=y.extend,_=kt("adj",y,.5),S=.5*(1-_)*f.h,b=.5*(1-_)*f.w;return{top:0,bottom:S,left:0,right:b,w:f.w-b,h:f.h-S}})(r);break;case"plus":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.25*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w-S,",0"),"L".concat(f.w-S,",").concat(S),"L".concat(f.w,",").concat(S),"L".concat(f.w,",").concat(f.h-S),"L".concat(f.w-S,",").concat(f.h-S),"L".concat(f.w-S,",").concat(f.h),"L".concat(S,",").concat(f.h),"L".concat(S,",").concat(f.h-S),"L0,".concat(f.h-S),"L0,".concat(S),"L".concat(S,",").concat(S),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h));return{top:_,bottom:_,left:0,right:0,w:f.w,h:f.h-2*_}})(r);break;case"plaque":h=(function(y){var f=y.extend,_=st("path"),S=at("adj",y,.16667*Math.min(f.w,f.h)),b=["M".concat(S,",0"),"L".concat(f.w-S,",0"),"Q".concat(f.w-S,",").concat(S," ").concat(f.w,",").concat(S),"L".concat(f.w,",").concat(f.h-S),"Q".concat(f.w-S,",").concat(f.h-S," ").concat(f.w-S,",").concat(f.h),"L".concat(S,",").concat(f.h),"Q".concat(S,",").concat(f.h-S," 0,").concat(f.h-S),"L0,".concat(S),"Q".concat(S,",").concat(S," ").concat(S,",0"),"Z"].join(" ");return _.setAttribute("d",b),_})(r),p=(function(y){var f=y.extend,_=at("adj",y,.16667*Math.min(f.w,f.h));return{top:.72*_,bottom:.72*_,left:.72*_,right:.72*_,w:f.w-1.44*_,h:f.w-1.44*_}})(r);break;case"can":h=(function(y){var f=y.extend,_=y.background,S=st("g"),b=st("path"),A=at("adj",y,.25*Math.min(f.w,f.h)),C=["M0,".concat(A/2),"L0,".concat(f.h-A/2),"A".concat(f.w/2,",").concat(A/2," 0 0 0 ").concat(f.w,",").concat(f.h-A/2),"L".concat(f.w,",").concat(A/2),"A".concat(f.w/2,",").concat(A/2," 0 0 1 0,").concat(A/2),"Z"].join(" ");b.setAttribute("d",C);var M=st("ellipse"),L=f.w/2,D=A/2,P=f.w/2,E=A/2;return M.setAttribute("cx",L+"px"),M.setAttribute("cy",D+"px"),M.setAttribute("rx",P+"px"),M.setAttribute("ry",E+"px"),_?.type==="solidFill"&&M.setAttribute("fill",de(_,{light:.5})||"transparent"),S.appendChild(b),S.appendChild(M),S})(r),p=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h));return{top:_,bottom:0,left:0,right:0,w:f.w,h:f.h-_}})(r);break;case"cube":h=(function(y){var f=y.extend,_=y.background,S=at("adj",y,.25*Math.min(f.w,f.h)),b=st("g"),A=st("path"),C=["M0,".concat(S),"L".concat(f.w-S,",").concat(S),"L".concat(f.w-S,",").concat(f.h),"L0,".concat(f.h),"Z"].join(" ");A.setAttribute("d",C);var M=st("path"),L=["M0,".concat(S),"L".concat(S,",0"),"L".concat(f.w,",0"),"L".concat(f.w-S,",").concat(S),"Z"].join(" ");M.setAttribute("d",L),_?.type==="solidFill"&&M.setAttribute("fill",de(_,{light:.8})||"transparent");var D=st("path"),P=["M".concat(f.w,",0"),"L".concat(f.w-S,",").concat(S),"L".concat(f.w-S,",").concat(f.h),"L".concat(f.w,",").concat(f.h-S),"Z"].join(" ");return D.setAttribute("d",P),_?.type==="solidFill"&&D.setAttribute("fill",de(_,{dark:.6})||"transparent"),b.appendChild(A),b.appendChild(M),b.appendChild(D),b})(r),p=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h));return{top:_,bottom:0,left:0,right:_,w:f.w-_,h:f.h-_}})(r);break;case"bevel":h=(function(y){var f=y.extend,_=y.background,S=at("adj",y,.125*Math.min(f.w,f.h)),b=st("g"),A=st("path"),C=["M".concat(S,",").concat(S),"L".concat(f.w-S,",").concat(S),"L".concat(f.w-S,",").concat(f.h-S),"L".concat(S,",").concat(f.h-S),"Z"].join(" ");A.setAttribute("d",C);var M=st("path"),L=["M0,0","L".concat(S,",").concat(S),"L".concat(f.w-S,",").concat(S),"L".concat(f.w,",0"),"Z"].join(" ");M.setAttribute("d",L),_?.type==="solidFill"&&M.setAttribute("fill",de(_,{light:.8})||"transparent");var D=st("path"),P=["M".concat(f.w,",0"),"L".concat(f.w-S,",").concat(S),"L".concat(f.w-S,",").concat(f.h-S),"L".concat(f.w,",").concat(f.h),"Z"].join(" ");D.setAttribute("d",P),_?.type==="solidFill"&&D.setAttribute("fill",de(_,{dark:.6})||"transparent");var E=st("path"),O=["M".concat(f.w,",").concat(f.h),"L".concat(f.w-S,",").concat(f.h-S),"L".concat(S,",").concat(f.h-S),"L0,".concat(f.h),"Z"].join(" ");E.setAttribute("d",O),_?.type==="solidFill"&&E.setAttribute("fill",de(_,{dark:.625})||"transparent");var N=st("path"),z=["M0,".concat(f.h),"L".concat(S,",").concat(f.h-S),"L".concat(S,",").concat(S),"L0,0","Z"].join(" ");return N.setAttribute("d",z),_?.type==="solidFill"&&N.setAttribute("fill",de(_,{light:.6})||"transparent"),b.appendChild(A),b.appendChild(M),b.appendChild(D),b.appendChild(E),b.appendChild(N),b})(r),p=(function(y){var f=y.extend,_=at("adj",y,.125*Math.min(f.w,f.h));return{top:_,bottom:_,left:_,right:_,w:f.w-2*_,h:f.h-2*_}})(r);break;case"donut":h=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h)),S=st("path"),b=["M0,".concat(f.h/2),"A".concat(f.w/2,",").concat(f.h/2," 0 1,1 0,").concat(f.h/2+1),"Z","M".concat(f.w-_,",").concat(f.h/2),"A".concat(f.w/2-_,",").concat(f.h/2-_," 0 1,0 ").concat(f.w-_,",").concat(f.h/2+1),"Z"].join(" ");return S.setAttribute("d",b),S})(r),p=dc(r);break;case"noSmoking":h=(function(y){var f=y.extend,_=at("adj",y,.25*Math.min(f.w,f.h)),S=st("path"),b=Math.atan(f.h/f.w),A=_/2/Math.sin(b),C=f.w/2,M=f.h/2,L=-1*f.h/f.w,D=f.h*A/f.w,P=f.w/2-_,E=f.h/2-_,O=-2*P*P*L*D,N=Math.sqrt(Math.pow(2*P*P*L*D,2)-4*(E*E+P*P*L*L)*P*P*(D*D-E*E)),z=2*(E*E+P*P*L*L),G=(O-N)/z,U=L*G+D,W=(O+N)/z,Y=L*W+D,q=-f.h*A/f.w,Q=-2*P*P*L*q,rt=Math.sqrt(Math.pow(2*P*P*L*q,2)-4*(E*E+P*P*L*L)*P*P*(q*q-E*E)),ct=2*(E*E+P*P*L*L),vt=(Q-rt)/ct,_t=L*vt+q,Nt=(Q+rt)/ct,Jt=L*Nt+q,Mt=["M0,".concat(f.h/2),"A".concat(f.w/2,",").concat(f.h/2," 0 1,1 0,").concat(f.h/2+1),"Z","M".concat(C+W,",").concat(M-Y),"A".concat(P,",").concat(E," 0 0 0 ").concat(C+G,",").concat(M-U),"Z","M".concat(C+vt,",").concat(M-_t),"A".concat(P,",").concat(E," 0 0 0 ").concat(C+Nt,",").concat(M-Jt),"Z"].join(" ");return S.setAttribute("d",Mt),S})(r),p=dc(r);break;case"rightArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M0,".concat(f.h/2-_/2),"L".concat(f.w-S,",").concat(f.h/2-_/2),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-S,",").concat(f.h),"L".concat(f.w-S,",").concat(f.h/2+_/2),"L0,".concat(f.h/2+_/2),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.h;return{top:f.h/2-_/2,bottom:f.h/2-_/2,left:0,right:S,w:f.w-S,h:_}})(r);break;case"leftArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M0,".concat(f.h/2),"L".concat(S,",0"),"L".concat(S,",").concat(f.h/2-_/2),"L".concat(f.w,",").concat(f.h/2-_/2),"L".concat(f.w,",").concat(f.h/2+_/2),"L".concat(S,",").concat(f.h/2+_/2),"L".concat(S,",").concat(f.h),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.h;return{top:f.h/2-_/2,bottom:f.h/2-_/2,left:S,right:0,w:f.w-S,h:_}})(r);break;case"upArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M".concat(f.w/2,",0"),"L".concat(f.w,",").concat(S),"L".concat(f.w/2+_/2,",").concat(S),"L".concat(f.w/2+_/2,",").concat(f.h),"L".concat(f.w/2-_/2,",").concat(f.h),"L".concat(f.w/2-_/2,",").concat(S),"L0,".concat(S),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.w;return{top:S,bottom:0,left:f.w/2-_/2,right:f.w/2-_/2,w:_,h:f.h-S}})(r);break;case"downArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M".concat(f.w/2,",").concat(f.h),"L0,".concat(f.h-S),"L".concat(f.w/2-_/2,",").concat(f.h-S),"L".concat(f.w/2-_/2,",0"),"L".concat(f.w/2+_/2,",0"),"L".concat(f.w/2+_/2,",").concat(f.h-S),"L".concat(f.w,",").concat(f.h-S),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.w;return{top:0,bottom:S,left:f.w/2-_/2,right:f.w/2-_/2,w:_,h:f.h-S}})(r);break;case"leftRightArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M0,".concat(f.h/2),"L".concat(S,",0"),"L".concat(S,",").concat(f.h/2-_/2),"L".concat(f.w-S,",").concat(f.h/2-_/2),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-S,",").concat(f.h),"L".concat(f.w-S,",").concat(f.h/2+_/2),"L".concat(S,",").concat(f.h/2+_/2),"L".concat(S,",").concat(f.h),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.h;return{top:f.h/2-_/2,bottom:f.h/2-_/2,left:S,right:S,w:f.w-2*S,h:_}})(r);break;case"upDownArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=at("adj2",y,.5*Math.min(f.w,f.h)),b=st("path"),A=["M".concat(f.w/2,",").concat(f.h),"L0,".concat(f.h-S),"L".concat(f.w/2-_/2,",").concat(f.h-S),"L".concat(f.w/2-_/2,",").concat(S),"L0,".concat(S),"L".concat(f.w/2,",0"),"L".concat(f.w,",").concat(S),"L".concat(f.w/2+_/2,",").concat(S),"L".concat(f.w/2+_/2,",").concat(f.h-S),"L".concat(f.w,",").concat(f.h-S),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.5*Math.min(f.w,f.h)),S=_*at("adj2",y,.5*Math.min(f.w,f.h))/f.w;return{top:S,bottom:S,left:f.w/2-_/2,right:f.w/2-_/2,w:_,h:f.h-2*S}})(r);break;case"quadArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.225*Math.min(f.w,f.h)),S=at("adj2",y,.225*Math.min(f.w,f.h)),b=at("adj3",y,.225*Math.min(f.w,f.h)),A=st("path"),C=["M0,".concat(f.h/2),"L".concat(b,",").concat(f.h/2-S),"L".concat(b,",").concat(f.h/2-_/2),"L".concat(f.w/2-_/2,",").concat(f.h/2-_/2),"L".concat(f.w/2-_/2,",").concat(b),"L".concat(f.w/2-S,",").concat(b),"L".concat(f.w/2,",0"),"L".concat(f.w/2+S,",").concat(b),"L".concat(f.w/2+_/2,",").concat(b),"L".concat(f.w/2+_/2,",").concat(f.h/2-_/2),"L".concat(f.w-b,",").concat(f.h/2-_/2),"L".concat(f.w-b,",").concat(f.h/2-S),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-b,",").concat(f.h/2+S),"L".concat(f.w-b,",").concat(f.h/2+_/2),"L".concat(f.w/2+_/2,",").concat(f.h/2+_/2),"L".concat(f.w/2+_/2,",").concat(f.h-b),"L".concat(f.w/2+S,",").concat(f.h-b),"L".concat(f.w/2,",").concat(f.h),"L".concat(f.w/2-S,",").concat(f.h-b),"L".concat(f.w/2-_/2,",").concat(f.h-b),"L".concat(f.w/2-_/2,",").concat(f.h/2+_/2),"L".concat(b,",").concat(f.h/2+_/2),"L".concat(b,",").concat(f.h/2+S),"Z"].join(" ");return A.setAttribute("d",C),A})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.225*Math.min(f.w,f.h)),S=at("adj2",y,.225*Math.min(f.w,f.h)),b=at("adj3",y,.225*Math.min(f.w,f.h)),A=S===0?0:_*b/S/2;return{top:f.h/2-_/2,bottom:f.h/2-_/2,left:A,right:A,w:f.w-2*A,h:_}})(r);break;case"leftRightUpArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.225*Math.min(f.w,f.h)),S=at("adj2",y,.225*Math.min(f.w,f.h)),b=at("adj3",y,.225*Math.min(f.w,f.h)),A=st("path");_>2*S&&(_=2*S);var C=["M0,".concat(f.h-S),"L".concat(b,",").concat(f.h-2*S),"L".concat(b,",").concat(f.h-S-_/2),"L".concat(f.w/2-_/2,",").concat(f.h-S-_/2),"L".concat(f.w/2-_/2,",").concat(b),"L".concat(f.w/2-S,",").concat(b),"L".concat(f.w/2,",0"),"L".concat(f.w/2+S,",").concat(b),"L".concat(f.w/2+_/2,",").concat(b),"L".concat(f.w/2+_/2,",").concat(f.h-S-_/2),"L".concat(f.w-b,",").concat(f.h-S-_/2),"L".concat(f.w-b,",").concat(f.h-2*S),"L".concat(f.w,",").concat(f.h-S),"L".concat(f.w-b,",").concat(f.h),"L".concat(f.w-b,",").concat(f.h-S+_/2),"L".concat(b,",").concat(f.h-S+_/2),"L".concat(b,",").concat(f.h),"Z"].join(" ");return A.setAttribute("d",C),A})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.225*Math.min(f.w,f.h)),S=at("adj2",y,.225*Math.min(f.w,f.h)),b=at("adj3",y,.225*Math.min(f.w,f.h)),A=S===0?0:_*b/S/2;return{top:f.h-S-_/2,bottom:S-_/2,left:A,right:A,w:f.w-2*A,h:_}})(r);break;case"bentArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h)),S=at("adj2",y,.25*Math.min(f.w,f.h)),b=at("adj3",y,.25*Math.min(f.w,f.h)),A=at("adj4",y,.4375*Math.min(f.w,f.h)),C=st("path");_>2*S&&(_=2*S);var M=A-_;M<0&&(M=0);var L=["M0,".concat(f.h),"L0,".concat(S-_/2+A),"A".concat(A," ").concat(A," 0 0 1 ").concat(A," ").concat(S-_/2),"L".concat(f.w-b,",").concat(S-_/2),"L".concat(f.w-b,",0"),"L".concat(f.w,",").concat(S),"L".concat(f.w-b,",").concat(2*S),"L".concat(f.w-b,",").concat(S+_/2),"L".concat(_+M,",").concat(S+_/2),"A".concat(M," ").concat(M," 0 0 0 ").concat(_," ").concat(S+_/2+M),"L".concat(_,",").concat(f.h),"Z"].join(" ");return C.setAttribute("d",L),C})(r);break;case"uturnArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h)),S=at("adj2",y,.25*Math.min(f.w,f.h)),b=at("adj3",y,.25*Math.min(f.w,f.h)),A=at("adj4",y,.4375*Math.min(f.w,f.h)),C=at("adj5",y,.75*Math.min(f.w,f.h)),M=st("path");_>2*S&&(_=2*S),C<b&&(C=b+_),A>C-b&&(A=C-b);var L=A-_;L>C-b-_&&(L=C-b-_),L<0&&(L=0);var D=S-_/2,P=["M0,".concat(f.h),"L0,".concat(A),"A".concat(A," ").concat(A," 0 0 1 ").concat(A," 0"),"L".concat(f.w-A-D,",0"),"A".concat(A," ").concat(A," 0 0 1 ").concat(f.w-D," ").concat(A),"L".concat(f.w-D,",").concat(C-b),"L".concat(f.w,",").concat(C-b),"L".concat(f.w-S,",").concat(C),"L".concat(f.w-2*S,",").concat(C-b),"L".concat(f.w-S-_/2,",").concat(C-b),"L".concat(f.w-S-_/2,",").concat(_+L),"A".concat(L," ").concat(L," 0 0 0 ").concat(f.w-L-S-_/2," ").concat(_),"L".concat(_+L,",").concat(_),"A".concat(L," ").concat(L," 0 0 0 ").concat(_," ").concat(_+L),"L".concat(_,",").concat(f.h),"Z"].join(" ");return M.setAttribute("d",P),M})(r);break;case"leftUpArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h)),S=at("adj2",y,.25*Math.min(f.w,f.h)),b=at("adj3",y,.25*Math.min(f.w,f.h));_>2*S&&(_=2*S);var A=Math.min(f.w,f.h)-2*S;b>A&&(b=A),b<0&&(b=0);var C=S-_/2,M=st("path"),L=["M0,".concat(f.h-S),"L".concat(b,",").concat(f.h-2*S),"L".concat(b,",").concat(f.h-S-_/2),"L".concat(f.w-S-_/2,",").concat(f.h-S-_/2),"L".concat(f.w-S-_/2,",").concat(b),"L".concat(f.w-2*S,",").concat(b),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(b),"L".concat(f.w-C,",").concat(b),"L".concat(f.w-C,",").concat(f.h-C),"L".concat(b,",").concat(f.h-C),"L".concat(b,",").concat(f.h),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h)),S=at("adj2",y,.25*Math.min(f.w,f.h)),b=at("adj3",y,.25*Math.min(f.w,f.h));_>2*S&&(_=2*S);var A=Math.min(f.w,f.h)-2*S;b>A&&(b=A),b<0&&(b=0);var C=S===0?0:_*b/S/2;return{top:f.h-S-_/2,bottom:S-_/2,left:C,right:S,w:f.w-C-S,h:_}})(r);break;case"bentUpArrow":h=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h)),S=at("adj2",y,.25*Math.min(f.w,f.h)),b=at("adj3",y,.25*Math.min(f.w,f.h));_>2*S&&(_=2*S);var A=Math.min(f.w,f.h)-2*S;b>A&&(b=A),b<0&&(b=0);var C=S-_/2,M=st("path"),L=["M0,".concat(f.h),"L0,".concat(f.h-_),"L".concat(f.w-S-_/2,",").concat(f.h-_),"L".concat(f.w-S-_/2,",").concat(b),"L".concat(f.w-2*S,",").concat(b),"L".concat(f.w-S,",0"),"L".concat(f.w,",").concat(b),"L".concat(f.w-C,",").concat(b),"L".concat(f.w-C,",").concat(f.h),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=at("adj1",y,.25*Math.min(f.w,f.h));return{top:f.h-_,bottom:0,left:0,right:0,w:f.w,h:_}})(r);break;case"curvedRightArrow":h=(function(y){var f=y.extend,_=y.background,S=at("adj1",y,.25*Math.min(f.w,f.h)),b=at("adj2",y,.5*Math.min(f.w,f.h)),A=at("adj3",y,.25*Math.min(f.w,f.h));S>b&&(S=b);var C=b/2-S/2,M=(f.h-b/2-S/2)/2,L=(f.h-C-S)/2,D=st("g"),P=st("path"),E=["M".concat(f.w,",0"),"A ".concat(f.w," ").concat(M," 0 0 0 ").concat(0," ").concat(M),"L0,".concat(L+S),"A ".concat(f.w," ").concat(L," 0 0 1 ").concat(f.w," ").concat(S),"Z"].join(" ");P.setAttribute("d",E),_?.type==="solidFill"&&P.setAttribute("fill",de(_,{dark:.6})||"transparent");var O=st("path"),N=["M0,".concat(M),"A ".concat(f.w," ").concat(M," 0 0 0 ").concat(f.w-A," ").concat(f.h-b/2-S/2),"L".concat(f.w-A,",").concat(f.h-b),"L".concat(f.w,",").concat(f.h-b/2),"L".concat(f.w-A,",").concat(f.h),"L".concat(f.w-A,",").concat(f.h-C),"A ".concat(f.w," ").concat(L," 0 0 1 0 ").concat(S+L),"Z"].join(" ");return O.setAttribute("d",N),D.appendChild(P),D.appendChild(O),D})(r);break;case"curvedLeftArrow":h=(function(y){var f=y.extend,_=y.background,S=at("adj1",y,.25*Math.min(f.w,f.h)),b=at("adj2",y,.5*Math.min(f.w,f.h)),A=at("adj3",y,.25*Math.min(f.w,f.h));S>b&&(S=b);var C=b/2-S/2,M=(f.h-b/2-S/2)/2,L=(f.h-C-S)/2,D=st("g"),P=st("path"),E=["M0,".concat(f.h-b/2),"L".concat(A,",").concat(f.h-b),"L".concat(A,",").concat(f.h-b/2-S/2),"A".concat(f.w," ").concat(M," 0 0 0 ").concat(f.w," ").concat(M),"L".concat(f.w,",").concat(L+S),"A ".concat(f.w," ").concat(L," 0 0 1 ").concat(A," ").concat(f.h-C),"L".concat(A,",").concat(f.h),"Z"].join(" ");P.setAttribute("d",E);var O=st("path"),N=["M0,0","A ".concat(f.w," ").concat(M," 0 0 1 ").concat(f.w," ").concat(M),"L".concat(f.w,",").concat(L+S),"A ".concat(f.w," ").concat(L," 0 0 0 ").concat(0," ").concat(S),"Z"].join(" ");return O.setAttribute("d",N),_?.type==="solidFill"&&O.setAttribute("fill",de(_,{dark:.6})||"transparent"),D.appendChild(P),D.appendChild(O),D})(r);break;case"curvedUpArrow":h=(function(y){var f=y.extend,_=y.background,S=at("adj1",y,.25*Math.min(f.w,f.h)),b=at("adj2",y,.5*Math.min(f.w,f.h)),A=at("adj3",y,.25*Math.min(f.w,f.h));S>b&&(S=b);var C=b/2-S/2,M=(f.w-b/2-S/2)/2,L=(f.w-C-S)/2,D=st("g"),P=st("path"),E=["M".concat(f.w-b/2,",").concat(0),"L".concat(f.w-b,",").concat(A),"L".concat(f.w-b/2-S/2,",").concat(A),"A".concat(M," ").concat(f.h," 0 0 1 ").concat(M," ").concat(f.h),"L".concat(M+S,",").concat(f.h),"A".concat(L," ").concat(f.h," 0 0 0 ").concat(f.w-C," ").concat(A),"L".concat(f.w,",").concat(A),"Z"].join(" ");P.setAttribute("d",E);var O=st("path"),N=["M".concat(S,",0"),"L".concat(0,",").concat(0),"A ".concat(M," ").concat(f.h," 0 0 0 ").concat(M," ").concat(f.h),"L".concat(M+S,",").concat(f.h),"A ".concat(L," ").concat(f.h," 0 0 1 ").concat(S," ").concat(0),"Z"].join(" ");return O.setAttribute("d",N),_?.type==="solidFill"&&O.setAttribute("fill",de(_,{dark:.6})||"transparent"),D.appendChild(P),D.appendChild(O),D})(r);break;case"curvedDownArrow":h=(function(y){var f=y.extend,_=y.background,S=at("adj1",y,.25*Math.min(f.w,f.h)),b=at("adj2",y,.5*Math.min(f.w,f.h)),A=at("adj3",y,.25*Math.min(f.w,f.h));S>b&&(S=b);var C=b/2-S/2,M=(f.w-b/2-S/2)/2,L=(f.w-C-S)/2,D=st("g"),P=st("path"),E=["M".concat(0,",").concat(f.h),"L".concat(S,",").concat(f.h),"A".concat(L," ").concat(f.h," 0 0 1 ").concat(L+S," ").concat(0),"L".concat(M,",").concat(0),"A".concat(M," ").concat(f.h," 0 0 0 ").concat(0," ").concat(f.h),"Z"].join(" ");P.setAttribute("d",E),_?.type==="solidFill"&&P.setAttribute("fill",de(_,{dark:.6})||"transparent");var O=st("path"),N=["M".concat(f.w-b/2,",").concat(f.h),"L".concat(f.w-b,",").concat(f.h-A),"L".concat(f.w-b/2-S/2,",").concat(f.h-A),"A ".concat(M," ").concat(f.h," 0 0 0 ").concat(M," ").concat(0),"L".concat(M+S,",").concat(0),"A ".concat(L," ").concat(f.h," 0 0 1 ").concat(f.w-C," ").concat(f.h-A),"L".concat(f.w,",").concat(f.h-A),"Z"].join(" ");return O.setAttribute("d",N),D.appendChild(P),D.appendChild(O),D})(r);break;case"stripedRightArrow":h=(function(y){var f=y.extend,_=st("g"),S=Math.min(f.w,f.h),b=kt("adj1",y,.5)*f.h,A=kt("adj2",y,.5)*S,C=S/8,M=S/16,L=S/32,D=5*S/32,P=f.h/2-b/2,E=f.h/2+b/2,O=st("path");O.setAttribute("d",["M".concat(0,",").concat(P),"L".concat(L,",").concat(P),"L".concat(L,",").concat(E),"L".concat(0,",").concat(E),"Z"].join(" "));var N=st("path");N.setAttribute("d",["M".concat(M,",").concat(P),"L".concat(C,",").concat(P),"L".concat(C,",").concat(E),"L".concat(M,",").concat(E),"Z"].join(" "));var z=st("path"),G=["M".concat(D,",").concat(P),"L".concat(f.w-A,",").concat(P),"L".concat(f.w-A,",").concat(0),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-A,",").concat(f.h),"L".concat(f.w-A,",").concat(E),"L".concat(D,",").concat(E),"Z"].join(" ");return z.setAttribute("d",G),_.appendChild(z),_.appendChild(O),_.appendChild(N),_})(r),p=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.5)*f.h,b=S*(kt("adj2",y,.5)*_)/f.h;return{top:f.h/2-S/2,bottom:f.h/2-S/2,left:0,right:b,w:f.w-b,h:S}})(r);break;case"notchedRightArrow":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.5)*f.h,b=kt("adj2",y,.5)*_,A=S*b/f.h,C=f.h/2-S/2,M=f.h/2+S/2,L=st("path"),D=["M".concat(0,",").concat(C),"L".concat(f.w-b,",").concat(C),"L".concat(f.w-b,",").concat(0),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-b,",").concat(f.h),"L".concat(f.w-b,",").concat(M),"L".concat(0,",").concat(M),"L".concat(A,",").concat(f.h/2),"Z"].join(" ");return L.setAttribute("d",D),L})(r),p=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.5)*f.h,b=kt("adj2",y,.5)*_,A=S*b/f.h,C=S*b/f.h;return{top:f.h/2-S/2,bottom:f.h/2-S/2,left:A,right:C,w:f.w-A-C,h:S}})(r);break;case"homePlate":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj",y,.5)*_,b=st("path"),A=["M".concat(0,",").concat(0),"L".concat(f.w-S,",").concat(0),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-S,",").concat(f.h),"L".concat(0,",").concat(f.h),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj",y,.5)*_;return{top:0,bottom:0,left:0,right:S/2,w:f.w-S/2,h:f.h}})(r);break;case"chevron":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj",y,.5)*_,b=st("path"),A=["M".concat(0,",").concat(0),"L".concat(f.w-S,",").concat(0),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-S,",").concat(f.h),"L".concat(0,",").concat(f.h),"L".concat(S,",").concat(f.h/2),"Z"].join(" ");return b.setAttribute("d",A),b})(r),p=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj",y,.5)*_;return{top:0,bottom:0,left:S,right:S,w:f.w-2*S,h:f.h}})(r);break;case"blockArc":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=st("path"),b=kt("adj1",y,180),A=kt("adj2",y,0),C=at("adj3",y,.25*_),M=f.w/2,L=f.h/2,D=f.w/2,P=f.h/2,E=f.w/2-C,O=f.h/2-C,N=Dr(b,M,L,D,P),z=N[0],G=N[1],U=Dr(A,M,L,D,P),W=U[0],Y=U[1],q=Dr(b,M,L,E,O),Q=q[0],rt=q[1],ct=Dr(A,M,L,E,O),vt=ct[0],_t=ct[1],Nt=pc(b,A),Jt=["M".concat(z,",").concat(G),"A".concat(D," ").concat(P," 0 ").concat(Nt," 1 ").concat(W," ").concat(Y),"L".concat(vt,",").concat(_t),"A".concat(E," ").concat(O," 0 ").concat(Nt," 0 ").concat(Q," ").concat(rt),"Z"].join(" ");return S.setAttribute("d",Jt),S})(r),p=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,180),b=kt("adj2",y,0),A=at("adj3",y,.25*_),C=f.w/2,M=f.h/2,L=f.w/2,D=f.h/2,P=f.w/2-A,E=f.h/2-A,O=Dr(S,C,M,L,D),N=O[0],z=O[1],G=Dr(b,C,M,L,D),U=G[0],W=G[1],Y=Dr(S,C,M,P,E),q=Y[0],Q=Y[1],rt=Dr(b,C,M,P,E),ct=[[N,z],[U,W],[q,Q],[rt[0],rt[1]]];ct.push(),S>b&&ct.push([f.w,f.h/2]),(b>180&&b<=360&&S<180||S>b&&b>=0&&b<180&&S<180)&&ct.push([0,f.h/2]),(S<b&&S<90&&b>90||S>b&&b>90||S>b&&S<90)&&ct.push([f.w/2,f.h]),(S<b&&S<270&&b>270||S>b&&b>270||S>b&&S<270)&&ct.push([f.w/2,0]);var vt=1/0,_t=1/0,Nt=-1/0,Jt=-1/0;return ct.forEach((function(Mt){vt=Math.min(Mt[0],vt),_t=Math.min(Mt[1],_t),Nt=Math.max(Mt[0],Nt),Jt=Math.max(Mt[1],Jt)})),{top:_t,bottom:f.h-Jt,left:vt,right:f.w-Nt,w:Nt-vt,h:Jt-_t}})(r);break;case"foldedCorner":h=(function(y){var f=y.extend,_=y.background,S=st("g"),b=st("path"),A=at("adj",y,.16667*Math.min(f.w,f.h)),C=["M0,0","L".concat(f.w,",0"),"L".concat(f.w,",").concat(f.h-A),"L".concat(f.w-A,",").concat(f.h),"L".concat(0,",").concat(f.h),"Z"].join(" ");b.setAttribute("d",C);var M=A*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),L=st("path"),D=["M".concat(f.w-A+M,", ").concat(f.h-A+M),"L".concat(f.w,",").concat(f.h-A),"L".concat(f.w-A,",").concat(f.h),"Z"].join(" ");return L.setAttribute("d",D),_?.type==="solidFill"&&L.setAttribute("fill",de(_,{dark:.6})||"transparent"),S.appendChild(b),S.appendChild(L),S})(r),p=(function(y){var f=y.extend,_=at("adj",y,.16667*Math.min(f.w,f.h));return{top:0,bottom:_,left:0,right:0,w:f.w,h:f.h-_}})(r);break;case"rightArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.25)*_,b=kt("adj2",y,.25)*_,A=kt("adj3",y,.25)*_,C=kt("adj4",y,.64977)*f.w,M=st("path"),L=["M".concat(0,",").concat(0),"L".concat(C,",").concat(0),"L".concat(C,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-b),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-A,",").concat(f.h/2+b),"L".concat(f.w-A,",").concat(f.h/2+S/2),"L".concat(C,",").concat(f.h/2+S/2),"L".concat(C,",").concat(f.h),"L".concat(0,",").concat(f.h),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.64977)*f.w;return{top:0,bottom:0,left:0,right:f.w-_,w:_,h:f.h}})(r);break;case"leftArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.25)*_,b=kt("adj2",y,.25)*_,A=kt("adj3",y,.25)*_,C=kt("adj4",y,.64977)*f.w,M=st("path"),L=["M".concat(0,",").concat(f.h/2),"L".concat(A,",").concat(f.h/2-b),"L".concat(A,",").concat(f.h/2-S/2),"L".concat(f.w-C,",").concat(f.h/2-S/2),"L".concat(f.w-C,",").concat(0),"L".concat(f.w,",").concat(0),"L".concat(f.w,",").concat(f.h),"L".concat(f.w-C,",").concat(f.h),"L".concat(f.w-C,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+b),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.64977)*f.w;return{top:0,bottom:0,left:f.w-_,right:0,w:_,h:f.h}})(r);break;case"upArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.25)*_,b=kt("adj2",y,.25)*_,A=kt("adj3",y,.25)*_,C=kt("adj4",y,.64977)*f.h,M=st("path"),L=["M".concat(0,",").concat(f.h-C),"L".concat(f.w/2-S/2,",").concat(f.h-C),"L".concat(f.w/2-S/2,",").concat(A),"L".concat(f.w/2-b,",").concat(A),"L".concat(f.w/2,",").concat(0),"L".concat(f.w/2+b,",").concat(A),"L".concat(f.w/2+S/2,",").concat(A),"L".concat(f.w/2+S/2,",").concat(f.h-C),"L".concat(f.w,",").concat(f.h-C),"L".concat(f.w,",").concat(f.h),"L".concat(0,",").concat(f.h),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.64977)*f.h;return{top:f.h-_,bottom:0,left:0,right:0,w:f.w,h:_}})(r);break;case"downArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.25)*_,b=kt("adj2",y,.25)*_,A=kt("adj3",y,.25)*_,C=kt("adj4",y,.64977)*f.h,M=st("path"),L=["M".concat(0,",").concat(0),"L".concat(f.w,",").concat(0),"L".concat(f.w,",").concat(C),"L".concat(f.w/2+S/2,",").concat(C),"L".concat(f.w/2+S/2,",").concat(f.h-A),"L".concat(f.w/2+b,",").concat(f.h-A),"L".concat(f.w/2,",").concat(f.h),"L".concat(f.w/2-b,",").concat(f.h-A),"L".concat(f.w/2-S/2,",").concat(f.h-A),"L".concat(f.w/2-S/2,",").concat(C),"L".concat(0,",").concat(C),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.64977)*f.h;return{top:0,bottom:f.h-_,left:0,right:0,w:f.w,h:_}})(r);break;case"leftRightArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.25)*_,b=kt("adj2",y,.25)*_,A=kt("adj3",y,.25)*_,C=kt("adj4",y,.48123)*f.w,M=st("path"),L=["M".concat(0,",").concat(f.h/2),"L".concat(A,",").concat(f.h/2-b),"L".concat(A,",").concat(f.h/2-S/2),"L".concat(f.w/2-C/2,",").concat(f.h/2-S/2),"L".concat(f.w/2-C/2,",").concat(0),"L".concat(f.w/2+C/2,",").concat(0),"L".concat(f.w/2+C/2,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-b),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-A,",").concat(f.h/2+b),"L".concat(f.w-A,",").concat(f.h/2+S/2),"L".concat(f.w/2+C/2,",").concat(f.h/2+S/2),"L".concat(f.w/2+C/2,",").concat(f.h),"L".concat(f.w/2-C/2,",").concat(f.h),"L".concat(f.w/2-C/2,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+b),"Z"].join(" ");return M.setAttribute("d",L),M})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.48123)*f.w;return{top:0,bottom:0,left:f.w/2-_/2,right:f.w/2-_/2,w:_,h:f.h}})(r);break;case"quadArrowCallout":h=(function(y){var f=y.extend,_=Math.min(f.w,f.h),S=kt("adj1",y,.18515)*_,b=kt("adj2",y,.18515)*_,A=kt("adj3",y,.18515)*_,C=kt("adj4",y,.48123)*f.w,M=kt("adj4",y,.48123)*f.h,L=st("path"),D=["M".concat(0,",").concat(f.h/2),"L".concat(A,",").concat(f.h/2-b),"L".concat(A,",").concat(f.h/2-S/2),"L".concat(f.w/2-C/2,",").concat(f.h/2-S/2),"L".concat(f.w/2-C/2,",").concat(f.h/2-M/2),"L".concat(f.w/2-S/2,",").concat(f.h/2-M/2),"L".concat(f.w/2-S/2,",").concat(A),"L".concat(f.w/2-b,",").concat(A),"L".concat(f.w/2,",").concat(0),"L".concat(f.w/2+b,",").concat(A),"L".concat(f.w/2+S/2,",").concat(A),"L".concat(f.w/2+S/2,",").concat(f.h/2-M/2),"L".concat(f.w/2+C/2,",").concat(f.h/2-M/2),"L".concat(f.w/2+C/2,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-S/2),"L".concat(f.w-A,",").concat(f.h/2-b),"L".concat(f.w,",").concat(f.h/2),"L".concat(f.w-A,",").concat(f.h/2+b),"L".concat(f.w-A,",").concat(f.h/2+S/2),"L".concat(f.w/2+C/2,",").concat(f.h/2+S/2),"L".concat(f.w/2+C/2,",").concat(f.h/2+M/2),"L".concat(f.w/2+S/2,",").concat(f.h/2+M/2),"L".concat(f.w/2+S/2,",").concat(f.h-A),"L".concat(f.w/2+b,",").concat(f.h-A),"L".concat(f.w/2,",").concat(f.h),"L".concat(f.w/2-b,",").concat(f.h-A),"L".concat(f.w/2-S/2,",").concat(f.h-A),"L".concat(f.w/2-S/2,",").concat(f.h/2+M/2),"L".concat(f.w/2-C/2,",").concat(f.h/2+M/2),"L".concat(f.w/2-C/2,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+S/2),"L".concat(A,",").concat(f.h/2+b),"Z"].join(" ");return L.setAttribute("d",D),L})(r),p=(function(y){var f=y.extend,_=kt("adj4",y,.48123)*f.w,S=kt("adj4",y,.48123)*f.h;return{top:f.h/2-S/2,bottom:f.h/2-S/2,left:f.w/2-_/2,right:f.w/2-_/2,w:_,h:S}})(r)}h&&(d?a?.type==="blipFill"?(function(y,f,_){var S=y.background,b=S===void 0?{}:S,A=y.extend,C=b.base64,M=b.alpha,L=b.fillRect,D=L===void 0?{}:L,P=D.b,E=P===void 0?0:P,O=D.t,N=O===void 0?0:O,z=D.l,G=z===void 0?0:z,U=D.r,W=U===void 0?0:U,Y=st("defs"),q=st("pattern");q.setAttribute("id","background_"+y.uuid),q.setAttribute("patternUnits","userSpaceOnUse"),q.setAttribute("width",A.w+""),q.setAttribute("height",A.h+"");var Q=st("image");Q.setAttribute("href",C),Q.setAttribute("preserveAspectRatio","none");var rt=A.w*G,ct=A.h*N,vt=A.w*(1-G-W),_t=A.h*(1-N-E);Q.setAttribute("width",vt+""),Q.setAttribute("height",_t+""),Q.setAttribute("x",rt+""),Q.setAttribute("y",ct+""),typeof M=="number"&&Q.setAttribute("opacity",M+""),q.appendChild(Q),Y.appendChild(q),f.appendChild(Y),_.setAttribute("fill","url(#background_".concat(y.uuid,")"))})(r,v,h):a?.type==="gradFill"?(function(y,f,_){var S=y.background,b=S===void 0?{}:S;y.extend;var A=b.gsList,C=b.lin,M=b.path,L=b.tileRect,D=L===void 0?{}:L,P=st("defs"),E=st(M==="circle"?"radialGradient":"linearGradient");E.setAttribute("id","background_grad_fill_"+y.uuid);var O=A||[];if(O.sort((function(W,Y){return W.pos-Y.pos})),O.forEach((function(W){var Y=st("stop");Y.setAttribute("offset","".concat(100*W.pos,"%")),Y.setAttribute("stop-color",de(W.color)),E.appendChild(Y)})),M==="circle"){var N=D.r,z=D.l,G=D.t,U=D.b;N===-1?E.setAttribute("cx","100%"):z===-1&&E.setAttribute("cx","0%"),G===-1?E.setAttribute("cy","0%"):U===-1&&E.setAttribute("cy","100%")}else C?.ang&&E.setAttribute("gradientTransform","rotate(".concat(C.ang,")"));P.appendChild(E),f.appendChild(P),_.setAttribute("fill","url(#background_grad_fill_".concat(y.uuid,")"))})(r,v,h):h.setAttribute("fill",de(a)||"transparent"):h.setAttribute("fill","transparent"),n.width?(h.setAttribute("stroke-width",n.width+"px"),h.setAttribute("stroke",de(n.color)||"transparent")):h.setAttribute("stroke-width","0"),h.setAttribute("stroke-dasharray",(function(y){return y&&y.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[y.type]||[]).map((function(f){return f*y.width})).join(","):""})(n)),h.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),h.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&h.setAttribute("stroke-miterlimit",n.miterLim+""),v.appendChild(h));var m=[];o&&m.push("scaleX(-1)"),s&&m.push("scaleY(-1)"),v.style.setProperty("transform",m.join(" ")),l.appendChild(v);var x=(function(y,f,_){var S;_===void 0&&(_=!1);var b=y.inheritProps,A=y.props,C=y.paragraphs;if(!C||C.length===0)return null;var M=pt(pt({},b),A),L=document.createElement("div");switch(L.className="text-wrapper",L.style.boxSizing="border-box",L.style.position="absolute",L.style.left=f.left+"px",M.vert==="eaVert"?(L.style.writingMode="vertical-rl",L.style.height=f.h+"px"):L.style.width=f.w+"px",M.anchor){case"b":L.style.bottom=f.bottom+"px";break;case"t":L.style.top=f.top+"px";break;case"ctr":L.style.top=f.top+f.h/2+"px",L.style.transform="translateY(-50%)";break;default:_?L.style.top=f.top+"px":(L.style.top=f.top+f.h/2+"px",L.style.transform="translateY(-50%)")}var D=[M.hasOwnProperty("tIns")?Math.floor(M.tIns)+"px":"3px",M.hasOwnProperty("rIns")?Math.floor(M.rIns)+"px":"5px",M.hasOwnProperty("bIns")?Math.floor(M.bIns)+"px":"3px",M.hasOwnProperty("lIns")?Math.floor(M.lIns)+"px":"5px"];L.style.padding=D.join(" ");for(var P={},E=0,O=function(G){var U=pt(pt({},G.inheritProps),G.props),W=void 0;if(U.buAutoNum){var Y=U.level?+U.level:0;P[Y]||(P[Y]=0),!((S=G.rows)===null||S===void 0)&&S.length&&P[Y]++,Object.keys(P).forEach((function(q){+q>Y&&(P[q]=0)})),W=od(G,P[Y],{isFirst:E===0,isLast:C.length-1===E,bodyProps:M})}else W=od(G,0,{isFirst:E===0,isLast:C.length-1===E,bodyProps:M});L.appendChild(W),E++},N=0,z=C;N<z.length;N++)O(z[N]);return L})(r.textBody,p,r.isTextBox);return x&&l.appendChild(x),i&&l.style.setProperty("transform","rotate(".concat(i,"deg)")),l}function bB(r){var e=document.createElement("div"),t=r.extend;r.chExtend;var n=r.offset;r.chOffset;var a=r.flipV,i=r.flipH,o=r.rotate,s=n.x,l=n.y,u=t.w,c=t.h;e.className="group",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var h=[];i&&h.push("scaleX(-1)"),a&&h.push("scaleY(-1)"),o&&h.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=h.join(" ");for(var v=0;v<r.nodes.length;v++){var p=r.nodes[v],d=void 0;p instanceof id?d=I1(p):p instanceof wh?d=P1(p):p instanceof Gw&&(d=bB(p)),d&&e.appendChild(d)}return e}var ia={};function OI(r,e){ia[r]||(ia[r]=[]),ia[r].push(e)}function Gv(r,e){if(ia[r])for(var t=0;t<ia[r].length;t++)ia[r][t](e)}function B0(r,e){ia?ia[r]&&(ia[r]=ia[r].filter((function(t){return t!==e}))):ia[r]=[]}var NI=(function(){function r(e,t,n){this.scale=1,this.wrapper=e,this.pptx=t,this.options=n,this._calcScaleAndRenderPort()}return r.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var t=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:t,height:n,left:0,top:0}},r.prototype.renderSlide=function(e){var t=this.pptx.slides[e],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.classList.add("pptx-preview-slide-wrapper-".concat(e)),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position",this.options.mode==="slide"?"absolute":"relative"),this.options.mode==="slide"&&n.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(t,n),this._renderSlideMaster(t.slideMaster,n),this._renderSlideLayout(t.slideLayout,n),this._renderSlide(t,n),this.wrapper.append(n)},r.prototype._renderSlideMaster=function(e,t){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Dc([],e.nodes,!0).filter((function(s){return s.userDrawn}));a.sort((function(s,l){return s.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderSlideLayout=function(e,t){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Dc([],e.nodes,!0).filter((function(s){return s.userDrawn}));a.sort((function(s,l){return s.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderSlide=function(e,t){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var a=Dc([],e.nodes,!0);a.sort((function(s,l){return s.order>l.order?1:-1}));for(var i=0;i<a.length;i++){var o=this._renderNode(a[i]);o&&n.append(o)}t.append(n)},r.prototype._renderNode=function(e){return e instanceof id?I1(e):e instanceof wh?P1(e):e instanceof Gw?bB(e):e instanceof xB?(function(t){var n=document.createElement("div"),a=t.extend,i=t.offset,o=t.flipV,s=t.flipH,l=t.rotate,u=i.x,c=i.y,h=a.w,v=a.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=u+"px",n.style.top=c+"px",n.style.width=h+"px",n.style.height=v+"px";var p=[];s&&p.push("scaleX(-1)"),o&&p.push("scaleY(-1)"),l&&p.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=p.join(" ");for(var d=0;d<t.nodes.length;d++){var m=t.nodes[d],x=void 0;m instanceof id?x=I1(m):m instanceof wh&&(x=P1(m)),x&&n.appendChild(x)}return n})(e):e instanceof _B?(function(t){var n=t.extend,a=t.offset,i=t.tr,o=t.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=a.x+"px",s.style.top=a.y+"px",s.style.width=n.w+"px",s.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",i.forEach((function(u){var c=u.props,h=u.td,v=c.height,p=document.createElement("tr");p.style.height=v+"px",h.forEach((function(d,m){var x,y,f=d.props,_=d.inheritTcStyle,S=d.inheritTcTxStyle,b=d.paragraphs;if(!f.vMerge&&!f.hMerge){var A=document.createElement("td");A.style.width=(((x=o[m])===null||x===void 0?void 0:x.width)||30)+"px",f.rowSpan&&A.setAttribute("rowspan",f.rowSpan+""),f.gridSpan&&A.setAttribute("colspan",f.gridSpan+"");var C=f.background||_.background;C&&(A.style.background=de(C));var M=pt(pt({},_.border),f.border),L=function(Y){return Y?Y.toLowerCase().includes("dash")?"dashed":Y.toLowerCase().includes("dot")?"dotted":"solid":"solid"};M.bottom&&(A.style.borderBottom="".concat(M.bottom.width,"px ").concat(L(M.bottom.type)," ").concat(de(M.bottom.color))),M.top&&(A.style.borderTop="".concat(M.top.width,"px ").concat(L(M.top.type)," ").concat(de(M.top.color))),M.left&&(A.style.borderLeft="".concat(M.left.width,"px ").concat(L(M.left.type)," ").concat(de(M.left.color))),M.right&&(A.style.borderRight="".concat(M.right.width,"px ").concat(L(M.right.type)," ").concat(de(M.right.color)));var D=document.createElement("div");switch(D.className="text-wrapper",D.style.boxSizing="border-box",D.style.width="100%",D.style.height="100%",D.style.overflow="hidden",D.style.display="flex",D.style.flexDirection="column",f.anchor){case"b":D.style.justifyContent="flex-end";break;case"t":D.style.justifyContent="flex-start";break;case"ctr":D.style.justifyContent="center"}var P=[f.hasOwnProperty("marT")?Math.floor(f.marT)+"px":"3px",f.hasOwnProperty("marR")?Math.floor(f.marR-1)+"px":"5px",f.hasOwnProperty("marB")?Math.floor(f.marB)+"px":"3px",f.hasOwnProperty("marL")?Math.floor(f.marL-1)+"px":"5px"];D.style.padding=P.join(" ");for(var E=pt({},f),O={},N=b.map((function(Y){return pt(pt({},Y),{props:pt({align:"l"},Y.props),inheritRProps:pt(pt({},Y.inheritRProps),S)})})),z=0,G=function(Y){var q=pt(pt({},Y.inheritProps),Y.props),Q=void 0;if(q.buAutoNum){var rt=q.level?+q.level:0;O[rt]||(O[rt]=0),!((y=Y.rows)===null||y===void 0)&&y.length&&O[rt]++,Object.keys(O).forEach((function(ct){+ct>rt&&(O[ct]=0)})),Q=od(Y,O[rt],{isFirst:z===0,isLast:b.length-1===z,bodyProps:E})}else Q=od(Y,0,{isFirst:z===0,isLast:b.length-1===z,bodyProps:E});D.appendChild(Q),z++},U=0,W=N;U<W.length;U++)G(W[U]);A.append(D),p.append(A)}})),l.append(p)})),s.append(l),s})(e):e instanceof wB?(function(t){var n=document.createElement("div"),a=t.extend,i=t.offset,o=t.flipV,s=t.flipH,l=t.rotate,u=t.options,c=i.x,h=i.y,v=a.w,p=a.h;n.className="chart-node",n.style.position="absolute",n.style.left=c+"px",n.style.top=h+"px",n.style.width=v+"px",n.style.height=p+"px";var d=[];return s&&d.push("scaleX(-1)"),o&&d.push("scaleY(-1)"),l&&d.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=d.join(" "),setTimeout((function(){var m=K9(n,null,{renderer:"svg"});m.setOption(u),OI("destroy",(function(){m&&m.dispose(),m&&(m=null)})),OI("removeSlide",(function(){m&&m.dispose(),m&&(m=null)}))}),0),n})(e):void 0},r.prototype._renderBackground=function(e,t){var n,a=document.createElement("div");a.classList.add("slide-background"),a.style.setProperty("position","absolute"),a.style.setProperty("left","0"),a.style.setProperty("top","0"),a.style.setProperty("width","100%"),a.style.setProperty("height","100%");var i=e.background;if(i.type==="none"&&(i=e.slideLayout.background),i.type==="none"&&(i=e.slideMaster.background),i.type==="blipFill"){var o=i,s=o.base64,l=o.alpha,u=o.fillRect,c=u===void 0?{}:u,h=c.b,v=h===void 0?0:h,p=c.t,d=p===void 0?0:p,m=c.l,x=m===void 0?0:m,y=c.r,f=y===void 0?0:y,_=this.renderPort.width*x,S=this.renderPort.height*d,b=this.renderPort.width*(1-x-f),A=this.renderPort.height*(1-d-v);a.style.backgroundImage="url(".concat(s,")"),a.style.backgroundSize="".concat(b," ").concat(A),a.style.backgroundPosition="".concat(_,"px ").concat(S,"px"),l&&(a.style.opacity=l+""),a.style.backgroundRepeat="no-repeat"}else if(i.type==="solidFill"){var C=de(e.background)||de(e.slideLayout.background)||de(e.slideMaster.background);C?a.style.setProperty("background",C):a.style.setProperty("background","#fff")}else if(i.type==="gradFill")if(i.path==="circle"){var M=i.tileRect||{},L=(v=M.b,d=M.t,x=M.l,"radial-gradient(circle at ");(f=M.r)===-1?L+=" right":x===-1&&(L+=" left"),d===-1?L+=" top":v===-1&&(L+=" bottom"),v||d||x||f||(L+=" center"),L+=",",L+=i.gsList.map((function(P){return"".concat(de(P.color)," ").concat(100*P.pos+"%")})).join(","),a.style.setProperty("background",L)}else{var D=((n=i?.lin)===null||n===void 0?void 0:n.ang)||0;L="linear-gradient(".concat(D+90,"deg,"),L+=i.gsList.map((function(P){return"".concat(de(P.color)," ").concat(100*P.pos+"%")})).join(","),a.style.setProperty("background",L)}t.append(a)},r})(),fot=(function(){function r(e,t){this.currentIndex=-1,this.dom=e,this.options=t,this._renderWrapper()}return Object.defineProperty(r.prototype,"slideCount",{get:function(){var e,t;return(t=(e=this.pptx)===null||e===void 0?void 0:e.slides)===null||t===void 0?void 0:t.length},enumerable:!1,configurable:!0}),r.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.setAttribute("position","relative"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},r.prototype.renderNextButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","80px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var t=document.createElement("div");return t.style.setProperty("width","10px"),t.style.setProperty("height","10px"),t.style.setProperty("border-left","2px solid #fff"),t.style.setProperty("border-bottom","2px solid #fff"),t.style.setProperty("transform","rotate(225deg)"),t.style.setProperty("position","absolute"),t.style.setProperty("top","15px"),t.style.setProperty("left","15px"),e.append(t),e},r.prototype.renderPreButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","140px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var t=document.createElement("div");return t.style.setProperty("width","10px"),t.style.setProperty("height","10px"),t.style.setProperty("border-left","2px solid #fff"),t.style.setProperty("border-bottom","2px solid #fff"),t.style.setProperty("transform","rotate(45deg)"),t.style.setProperty("position","absolute"),t.style.setProperty("top","15px"),t.style.setProperty("left","15px"),e.append(t),e},r.prototype.updatePagination=function(){var e=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");e&&(e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},r.prototype.renderPagination=function(e){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-pagination"),t.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","33px"),t.style.setProperty("right","20px"),t.style.setProperty("color","#666666"),t.style.setProperty("font-size","14px"),t.style.setProperty("z-index","100"),e.append(t)},r.prototype.removeCurrentSlide=function(){var e=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));e&&this.wrapper.removeChild(e),Gv("removeSlide")},r.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},r.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},r.prototype._addPre=function(e){},r.prototype.preview=function(e){var t=this;return Gv("destroy"),B0("destroy"),new Promise((function(n,a){t.wrapper.innerHTML="";var i=t.pptx=new MI;i.load(e).then((function(){try{var o=t.htmlRender=new NI(t.wrapper,i,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode});if(t.options.mode==="slide"){var s=t.renderNextButton();s.onclick=function(){t.renderNextSlide()},t.wrapper.append(s);var l=t.renderPreButton();l.onclick=function(){t.renderPreSlide()},t.wrapper.append(l),t.renderPagination(t.wrapper),t._addPre(t.wrapper),t.currentIndex=0,o.renderSlide(0)}else for(var u=0;u<i.slides.length;u++)o.renderSlide(u);n(i)}catch(c){a(c)}})).catch((function(o){a(o)}))}))},r.prototype.load=function(e){var t=this;return Gv("destroy"),B0("destroy"),new Promise((function(n,a){t.wrapper.innerHTML="";var i=t.pptx=new MI;i.load(e).then((function(){try{t.htmlRender=new NI(t.wrapper,i,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode}),n(i)}catch(o){a(o)}})).catch((function(o){a(o)}))}))},r.prototype.renderSingleSlide=function(e){this.removeCurrentSlide(),this.currentIndex=e,this.htmlRender.renderSlide(this.currentIndex)},r.prototype.destroy=function(){Gv("destroy"),B0("destroy")},r})();function vot(r,e){return new fot(r,e)}function pot(r){r.querySelectorAll("img").forEach(e=>{const t=e.getAttribute("width"),n=e.getAttribute("height");t&&!e.style.width&&e.style.setProperty("width",`${t}px`),n&&!e.style.height&&e.style.setProperty("height",`${n}px`)})}function dot(r){r.querySelectorAll(".text-wrapper span").forEach(e=>{!e.style.fontFamily&&parseFloat(e.style.letterSpacing)<0&&(e.style.letterSpacing="")}),r.querySelectorAll(".text-wrapper p").forEach(e=>{e.style.lineHeight==="1"&&(e.style.lineHeight="1.15")})}function z0(r,e,t){r.forEach((n,a)=>{e==="navigation"?(n.style.display=a===t?"":"none",n.style.marginBottom="0",n.style.marginTop="0"):(n.style.display="",n.style.marginBottom="",n.style.marginTop="")})}function xot({data:r,mode:e="scroll",className:t,onError:n}){const a=mr.useRef(null),i=mr.useRef(null),o=mr.useRef(null),s=mr.useRef([]),l=mr.useRef(0),u=mr.useRef(e),[c,h]=mr.useState(!1),[v,p]=mr.useState(null),[d,m]=mr.useState(0),[x,y]=mr.useState(0);mr.useEffect(()=>{u.current=e},[e]);const f=e==="navigation",_=d>0,S=d<x-1,b=mr.useCallback(M=>{const L=s.current;!L.length||M<0||M>=L.length||(z0(L,"navigation",M),l.current=M,m(M))},[]),A=mr.useCallback(M=>{const L=s.current;if(!L.length)return;const D=Math.min(l.current,L.length-1);z0(L,M,D),M==="navigation"&&(l.current=D,m(D))},[]);mr.useEffect(()=>{A(e)},[e,A]),mr.useEffect(()=>{if(e!=="navigation")return;const M=L=>{L.target instanceof HTMLSelectElement||(L.key==="ArrowRight"||L.key==="ArrowDown"?(L.preventDefault(),b(l.current+1)):(L.key==="ArrowLeft"||L.key==="ArrowUp")&&(L.preventDefault(),b(l.current-1)))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[e,b]);const C=mr.useCallback(async M=>{const L=o.current;if(!(!L||M===0)){h(!0),p(null),L.innerHTML="",s.current=[];try{await vot(L,{width:M,mode:"list"}).preview(r.slice(0)),pot(L),dot(L);const P=Array.from(L.querySelectorAll(".pptx-preview-slide-wrapper"));s.current=P,y(P.length);const E=u.current,O=Math.min(l.current,P.length-1);z0(P,E,O),E==="navigation"&&(l.current=O,m(O))}catch(D){const P=D instanceof Error?D:new Error("Failed to render presentation");p(P.message),n?.(P)}finally{h(!1)}}},[r,n]);return mr.useEffect(()=>{let M=!1,L=0,D=null,P;function E(){if(M||!o.current)return;const N=Math.floor(o.current.getBoundingClientRect().width);N===0||N===L||(L=N,C(N))}const O=requestAnimationFrame(()=>{M||(E(),i.current&&(D=new ResizeObserver(()=>{clearTimeout(P),P=setTimeout(E,250)}),D.observe(i.current)))});return()=>{M=!0,cancelAnimationFrame(O),clearTimeout(P),D?.disconnect()}},[r,C]),Cr.jsxs("div",{ref:a,className:`ov-pptx${f?" ov-pptx--nav":""}${t?` ${t}`:""}`,children:[c&&Cr.jsxs("div",{className:`ov-pptx__loading${f?" ov-pptx__loading--nav":""}`,children:[Cr.jsx(tH,{className:"ov-pptx__loading-icon"}),Cr.jsx("span",{className:"ov-pptx__loading-text",children:"Rendering slides…"})]}),v&&Cr.jsx("div",{className:"ov-pptx__error",children:v}),Cr.jsx("div",{ref:i,className:"ov-pptx__slide-area",style:{visibility:c?"hidden":"visible"},children:Cr.jsx("div",{ref:o,className:"pptx-host ov-pptx__host"})}),f&&!c&&x>0&&Cr.jsxs(Cr.Fragment,{children:[Cr.jsx("button",{onClick:()=>b(l.current-1),disabled:!_,"aria-label":"Previous slide",className:"ov-pptx__nav-btn ov-pptx__nav-btn--prev",children:Cr.jsx(eH,{className:"ov-pptx__nav-btn-icon",strokeWidth:2})}),Cr.jsx("button",{onClick:()=>b(l.current+1),disabled:!S,"aria-label":"Next slide",className:"ov-pptx__nav-btn ov-pptx__nav-btn--next",children:Cr.jsx(rH,{className:"ov-pptx__nav-btn-icon",strokeWidth:2})}),Cr.jsxs("div",{className:"ov-pptx__nav-counter",children:[Cr.jsx("span",{className:"ov-pptx__nav-current",children:d+1}),Cr.jsxs("span",{className:"ov-pptx__nav-total",children:[" of ",x]})]})]})]})}export{xot as PptxViewer};
|