@virtualansoftware/vs-office-viewer 1.0.1 → 1.0.2

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.
Files changed (33) hide show
  1. package/dist/client/assets/DocxViewer-BcXhLJfm.css +1 -0
  2. package/dist/client/assets/DocxViewer-CPMpeQTq.js +58 -0
  3. package/dist/client/assets/LogoIcon-CTf12WP0.js +1 -0
  4. package/dist/client/assets/PptxViewer-Bvr-20MJ.js +59 -0
  5. package/dist/client/assets/PptxViewer-Cn8CqLfg.css +1 -0
  6. package/dist/client/assets/XlsxViewer-CGc0vtBk.js +63 -0
  7. package/dist/client/assets/XlsxViewer-DTxE-neD.css +1 -0
  8. package/dist/client/assets/chevron-right-D0jHq8Hg.js +1 -0
  9. package/dist/client/assets/form-KvBV47dq.js +1 -0
  10. package/dist/client/assets/index-DATp3RB-.js +12 -0
  11. package/dist/client/assets/jszip.min-DhiFe-R7.js +2 -0
  12. package/dist/client/assets/login-aBY8Ktaw.js +1 -0
  13. package/dist/client/assets/register-BB43pNvY.js +1 -0
  14. package/dist/client/assets/rolldown-runtime-aKtaBQYM.js +1 -0
  15. package/dist/client/assets/routes-1JmKig5J.js +2 -0
  16. package/dist/client/assets/styles-F8oSmVJa.css +2 -0
  17. package/dist/client/robots.txt +2 -0
  18. package/dist/server/assets/DocxViewer-Bvu47Jxr.js +544 -0
  19. package/dist/server/assets/LogoIcon-D2qIWtkU.js +93 -0
  20. package/dist/server/assets/PptxViewer-CjRu82CL.js +209 -0
  21. package/dist/server/assets/XlsxViewer-CtBSfYb7.js +870 -0
  22. package/dist/server/assets/_tanstack-start-manifest_v-CQ5gmg8o.js +43 -0
  23. package/dist/server/assets/createMiddleware-BnSPczhK.js +24 -0
  24. package/dist/server/assets/empty-plugin-adapters-D9UWiqvJ.js +5 -0
  25. package/dist/server/assets/form-DY0gQsTv.js +249 -0
  26. package/dist/server/assets/login-hnUq0LLL.js +122 -0
  27. package/dist/server/assets/register-DIFjHkZS.js +164 -0
  28. package/dist/server/assets/router-CJA4LnAB.js +281 -0
  29. package/dist/server/assets/routes-DT9ZAw-E.js +481 -0
  30. package/dist/server/assets/server-vIOK9n3w.js +1595 -0
  31. package/dist/server/assets/start-RYa-0bjt.js +43 -0
  32. package/dist/server/server.js +86 -0
  33. package/package.json +7 -6
@@ -0,0 +1,59 @@
1
+ import{i as e,n as t,t as n}from"./rolldown-runtime-aKtaBQYM.js";import{a as r,s as i}from"./index-DATp3RB-.js";import{n as a}from"./LogoIcon-CTf12WP0.js";import{n as o,t as s}from"./chevron-right-D0jHq8Hg.js";import{t as c}from"./jszip.min-DhiFe-R7.js";var l=e(i(),1),u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},u(e,t)};function d(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);u(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)};function p(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function m(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,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(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function h(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}for(var g=n(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=NaN,v=4294967295,y=v-1,b=v>>>1,x=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],S=`[object Arguments]`,C=`[object Array]`,w=`[object AsyncFunction]`,T=`[object Boolean]`,E=`[object Date]`,D=`[object DOMException]`,O=`[object Error]`,k=`[object Function]`,A=`[object GeneratorFunction]`,j=`[object Map]`,ee=`[object Number]`,te=`[object Null]`,ne=`[object Object]`,re=`[object Promise]`,ie=`[object Proxy]`,ae=`[object RegExp]`,oe=`[object Set]`,se=`[object String]`,ce=`[object Symbol]`,le=`[object Undefined]`,ue=`[object WeakMap]`,de=`[object WeakSet]`,fe=`[object ArrayBuffer]`,pe=`[object DataView]`,me=`[object Float32Array]`,he=`[object Float64Array]`,ge=`[object Int8Array]`,_e=`[object Int16Array]`,ve=`[object Int32Array]`,ye=`[object Uint8Array]`,be=`[object Uint8ClampedArray]`,M=`[object Uint16Array]`,N=`[object Uint32Array]`,xe=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,we=RegExp(Se.source),Te=RegExp(Ce.source),I=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,De=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,R=RegExp(Ae.source),z=/^\s+/,B=/\s/,V=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,H=/\{\n\/\* \[wrapped with (.+)\] \*/,je=/,? & /,Me=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U=/[()=,{}\[\]\/\s]/,Ne=/\\(\\)?/g,Pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,Ie=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Re=/^\[object .+?Constructor\]$/,ze=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,W=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ve=/($^)/,He=/['\n\r\u2028\u2029\\]/g,Ue=`\\ud800-\\udfff`,We=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Ge=`\\u2700-\\u27bf`,Ke=`a-z\\xdf-\\xf6\\xf8-\\xff`,qe=`\\xac\\xb1\\xd7\\xf7`,Je=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ye=`\\u2000-\\u206f`,Xe=` \\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`,Ze=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Qe=`\\ufe0e\\ufe0f`,G=qe+Je+Ye+Xe,$e=`['’]`,et=`[`+Ue+`]`,tt=`[`+G+`]`,K=`[`+We+`]`,nt=`\\d+`,rt=`[`+Ge+`]`,it=`[`+Ke+`]`,at=`[^`+Ue+G+nt+Ge+Ke+Ze+`]`,ot=`\\ud83c[\\udffb-\\udfff]`,st=`(?:`+K+`|`+ot+`)`,ct=`[^`+Ue+`]`,lt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,ut=`[\\ud800-\\udbff][\\udc00-\\udfff]`,dt=`[`+Ze+`]`,ft=`\\u200d`,pt=`(?:`+it+`|`+at+`)`,mt=`(?:`+dt+`|`+at+`)`,ht=`(?:`+$e+`(?:d|ll|m|re|s|t|ve))?`,gt=`(?:`+$e+`(?:D|LL|M|RE|S|T|VE))?`,_t=st+`?`,vt=`[`+Qe+`]?`,yt=`(?:`+ft+`(?:`+[ct,lt,ut].join(`|`)+`)`+vt+_t+`)*`,bt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,xt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,St=vt+_t+yt,Ct=`(?:`+[rt,lt,ut].join(`|`)+`)`+St,wt=`(?:`+[ct+K+`?`,K,lt,ut,et].join(`|`)+`)`,Tt=RegExp($e,`g`),Et=RegExp(K,`g`),Dt=RegExp(ot+`(?=`+ot+`)|`+wt+St,`g`),Ot=RegExp([dt+`?`+it+`+`+ht+`(?=`+[tt,dt,`$`].join(`|`)+`)`,mt+`+`+gt+`(?=`+[tt,dt+pt,`$`].join(`|`)+`)`,dt+`?`+pt+`+`+ht,dt+`+`+gt,xt,bt,nt,Ct].join(`|`),`g`),kt=RegExp(`[`+ft+Ue+We+Qe+`]`),At=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=`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`.split(`.`),Mt=-1,Nt={};Nt[me]=Nt[he]=Nt[ge]=Nt[_e]=Nt[ve]=Nt[ye]=Nt[be]=Nt[M]=Nt[N]=!0,Nt[S]=Nt[C]=Nt[fe]=Nt[T]=Nt[pe]=Nt[E]=Nt[O]=Nt[k]=Nt[j]=Nt[ee]=Nt[ne]=Nt[ae]=Nt[oe]=Nt[se]=Nt[ue]=!1;var Pt={};Pt[S]=Pt[C]=Pt[fe]=Pt[pe]=Pt[T]=Pt[E]=Pt[me]=Pt[he]=Pt[ge]=Pt[_e]=Pt[ve]=Pt[j]=Pt[ee]=Pt[ne]=Pt[ae]=Pt[oe]=Pt[se]=Pt[ce]=Pt[ye]=Pt[be]=Pt[M]=Pt[N]=!0,Pt[O]=Pt[k]=Pt[ue]=!1;var Ft={À:`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`},It={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Lt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Rt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},zt=parseFloat,Bt=parseInt,Vt=typeof global==`object`&&global&&global.Object===Object&&global,Ht=typeof self==`object`&&self&&self.Object===Object&&self,Ut=Vt||Ht||Function(`return this`)(),Wt=typeof e==`object`&&e&&!e.nodeType&&e,Gt=Wt&&typeof t==`object`&&t&&!t.nodeType&&t,Kt=Gt&&Gt.exports===Wt,qt=Kt&&Vt.process,Jt=function(){try{return Gt&&Gt.require&&Gt.require(`util`).types||qt&&qt.binding&&qt.binding(`util`)}catch{}}(),Yt=Jt&&Jt.isArrayBuffer,Xt=Jt&&Jt.isDate,Zt=Jt&&Jt.isMap,Qt=Jt&&Jt.isRegExp,$t=Jt&&Jt.isSet,en=Jt&&Jt.isTypedArray;function tn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function nn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function rn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function an(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function on(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function sn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function cn(e,t){return!!(e!=null&&e.length)&&bn(e,t,0)>-1}function ln(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function un(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function dn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function fn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function pn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function mn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var hn=wn(`length`);function gn(e){return e.split(``)}function _n(e){return e.match(Me)||[]}function vn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function yn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function bn(e,t,n){return t===t?Xn(e,t,n):yn(e,Sn,n)}function xn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Sn(e){return e!==e}function Cn(e,t){var n=e==null?0:e.length;return n?On(e,t)/n:_}function wn(e){return function(t){return t==null?n:t[e]}}function Tn(e){return function(t){return e==null?n:e[t]}}function En(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Dn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function On(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function kn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function An(e,t){return un(t,function(t){return[t,e[t]]})}function jn(e){return e&&e.slice(0,er(e)+1).replace(z,``)}function Mn(e){return function(t){return e(t)}}function Nn(e,t){return un(t,function(t){return e[t]})}function Pn(e,t){return e.has(t)}function Fn(e,t){for(var n=-1,r=e.length;++n<r&&bn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length;n--&&bn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rn=Tn(Ft),zn=Tn(It);function Bn(e){return`\\`+Rt[e]}function Vn(e,t){return e==null?n:e[t]}function Hn(e){return kt.test(e)}function Un(e){return At.test(e)}function Wn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Kn(e,t){return function(n){return e(t(n))}}function qn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Jn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Xn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Zn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function Qn(e){return Hn(e)?nr(e):hn(e)}function $n(e){return Hn(e)?rr(e):gn(e)}function er(e){for(var t=e.length;t--&&B.test(e.charAt(t)););return t}var tr=Tn(Lt);function nr(e){for(var t=Dt.lastIndex=0;Dt.test(e);)++t;return t}function rr(e){return e.match(Dt)||[]}function ir(e){return e.match(Ot)||[]}var ar=(function e(t){t=t==null?Ut:ar.defaults(Ut.Object(),t,ar.pick(Ut,jt));var B=t.Array,Me=t.Date,Ue=t.Error,We=t.Function,Ge=t.Math,Ke=t.Object,qe=t.RegExp,Je=t.String,Ye=t.TypeError,Xe=B.prototype,Ze=We.prototype,Qe=Ke.prototype,G=t[`__core-js_shared__`],$e=Ze.toString,et=Qe.hasOwnProperty,tt=0,K=function(){var e=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),nt=Qe.toString,rt=$e.call(Ke),it=Ut._,at=qe(`^`+$e.call(et).replace(Ae,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ot=Kt?t.Buffer:n,st=t.Symbol,ct=t.Uint8Array,lt=ot?ot.allocUnsafe:n,ut=Kn(Ke.getPrototypeOf,Ke),dt=Ke.create,ft=Qe.propertyIsEnumerable,pt=Xe.splice,mt=st?st.isConcatSpreadable:n,ht=st?st.iterator:n,gt=st?st.toStringTag:n,_t=function(){try{var e=Mo(Ke,`defineProperty`);return e({},``,{}),e}catch{}}(),vt=t.clearTimeout!==Ut.clearTimeout&&t.clearTimeout,yt=Me&&Me.now!==Ut.Date.now&&Me.now,bt=t.setTimeout!==Ut.setTimeout&&t.setTimeout,xt=Ge.ceil,St=Ge.floor,Ct=Ke.getOwnPropertySymbols,wt=ot?ot.isBuffer:n,Dt=t.isFinite,Ot=Xe.join,kt=Kn(Ke.keys,Ke),At=Ge.max,Ft=Ge.min,It=Me.now,Lt=t.parseInt,Rt=Ge.random,Vt=Xe.reverse,Ht=Mo(t,`DataView`),Wt=Mo(t,`Map`),Gt=Mo(t,`Promise`),qt=Mo(t,`Set`),Jt=Mo(t,`WeakMap`),hn=Mo(Ke,`create`),gn=Jt&&new Jt,Tn={},Xn=_s(Ht),nr=_s(Wt),rr=_s(Gt),or=_s(qt),sr=_s(Jt),cr=st?st.prototype:n,lr=cr?cr.valueOf:n,ur=cr?cr.toString:n;function q(e){if(lu(e)&&!Kl(e)&&!(e instanceof mr)){if(e instanceof pr)return e;if(et.call(e,`__wrapped__`))return ys(e)}return new pr(e)}var dr=function(){function e(){}return function(t){if(!cu(t))return{};if(dt)return dt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function fr(){}function pr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}q.templateSettings={escape:I,evaluate:L,interpolate:Ee,variable:``,imports:{_:q}},q.prototype=fr.prototype,q.prototype.constructor=q,pr.prototype=dr(fr.prototype),pr.prototype.constructor=pr;function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function hr(){var e=new mr(this.__wrapped__);return e.__actions__=Wa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Wa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Wa(this.__views__),e}function gr(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function _r(){var e=this.__wrapped__.value(),t=this.__dir__,n=Kl(e),r=t<0,i=n?e.length:0,a=Lo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Ft(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Ta(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}mr.prototype=dr(fr.prototype),mr.prototype.constructor=mr;function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yr(){this.__data__=hn?hn(null):{},this.size=0}function br(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function xr(e){var t=this.__data__;if(hn){var r=t[e];return r===i?n:r}return et.call(t,e)?t[e]:n}function Sr(e){var t=this.__data__;return hn?t[e]!==n:et.call(t,e)}function Cr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=hn&&t===n?i:t,this}vr.prototype.clear=yr,vr.prototype.delete=br,vr.prototype.get=xr,vr.prototype.has=Sr,vr.prototype.set=Cr;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Er(e){var t=this.__data__,n=Zr(t,e);return n<0?!1:(n==t.length-1?t.pop():pt.call(t,n,1),--this.size,!0)}function Dr(e){var t=this.__data__,r=Zr(t,e);return r<0?n:t[r][1]}function Or(e){return Zr(this.__data__,e)>-1}function kr(e,t){var n=this.__data__,r=Zr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.size=0,this.__data__={hash:new vr,map:new(Wt||wr),string:new vr}}function Mr(e){var t=Ao(this,e).delete(e);return this.size-=+!!t,t}function Nr(e){return Ao(this,e).get(e)}function Pr(e){return Ao(this,e).has(e)}function Fr(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ar;++t<n;)this.add(e[t])}function Lr(e){return this.__data__.set(e,i),this}function Rr(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=Lr,Ir.prototype.has=Rr;function zr(e){var t=this.__data__=new wr(e);this.size=t.size}function Br(){this.__data__=new wr,this.size=0}function Vr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hr(e){return this.__data__.get(e)}function Ur(e){return this.__data__.has(e)}function Wr(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Wt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ar(r)}return n.set(e,t),this.size=n.size,this}zr.prototype.clear=Br,zr.prototype.delete=Vr,zr.prototype.get=Hr,zr.prototype.has=Ur,zr.prototype.set=Wr;function Gr(e,t){var n=Kl(e),r=!n&&Gl(e),i=!n&&!r&&Zl(e),a=!n&&!r&&!i&&wu(e),o=n||r||i||a,s=o?kn(e.length,Je):[],c=s.length;for(var l in e)(t||et.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Go(l,c)))&&s.push(l);return s}function Kr(e){var t=e.length;return t?e[ia(0,t-1)]:n}function qr(e,t){return ms(Wa(e),ri(t,0,e.length))}function Jr(e){return ms(Wa(e))}function Yr(e,t,r){(r!==n&&!Hl(e[t],r)||r===n&&!(t in e))&&ti(e,t,r)}function Xr(e,t,r){var i=e[t];(!(et.call(e,t)&&Hl(i,r))||r===n&&!(t in e))&&ti(e,t,r)}function Zr(e,t){for(var n=e.length;n--;)if(Hl(e[n][0],t))return n;return-1}function Qr(e,t,n,r){return li(e,function(e,i,a){t(r,e,n(e),a)}),r}function $r(e,t){return e&&Ga(t,od(t),e)}function ei(e,t){return e&&Ga(t,sd(t),e)}function ti(e,t,n){t==`__proto__`&&_t?_t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ni(e,t){for(var r=-1,i=t.length,a=B(i),o=e==null;++r<i;)a[r]=o?n:ed(e,t[r]);return a}function ri(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ii(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!cu(e))return e;var d=Kl(e);if(d){if(s=Bo(e),!c)return Wa(e,s)}else{var f=Io(e),p=f==k||f==A;if(Zl(e))return Pa(e,c);if(f==ne||f==S||p&&!a){if(s=l||p?{}:Vo(e),!c)return l?Ka(e,ei(s,e)):J(e,$r(s,e))}else{if(!Pt[f])return a?e:{};s=Ho(e,f,c)}}o||=new zr;var m=o.get(e);if(m)return m;o.set(e,s),xu(e)?e.forEach(function(n){s.add(ii(n,t,r,n,e,o))}):uu(e)&&e.forEach(function(n,i){s.set(i,ii(n,t,r,i,e,o))});var h=d?n:(u?l?To:wo:l?sd:od)(e);return rn(h||e,function(n,i){h&&(i=n,n=e[i]),Xr(s,i,ii(n,t,r,i,e,o))}),s}function ai(e){var t=od(e);return function(n){return oi(n,e,t)}}function oi(e,t,r){var i=r.length;if(e==null)return!i;for(e=Ke(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function si(e,t,i){if(typeof e!=`function`)throw new Ye(r);return us(function(){e.apply(n,i)},t)}function ci(e,t,n,r){var i=-1,a=cn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=un(t,Mn(n))),r?(a=ln,o=!1):t.length>=200&&(a=Pn,o=!1,t=new Ir(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var li=Ya(vi),ui=Ya(yi,!0);function di(e,t){var n=!0;return li(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function fi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Cu(s):r(s,c)))var c=s,l=o}return l}function pi(e,t,r,i){var a=e.length;for(r=Mu(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Mu(i),i<0&&(i+=a),i=r>i?0:Nu(i);r<i;)e[r++]=t;return e}function mi(e,t){var n=[];return li(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function hi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Wo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?hi(s,t-1,n,r,i):dn(i,s):r||(i[i.length]=s)}return i}var gi=Xa(),_i=Xa(!0);function vi(e,t){return e&&gi(e,t,od)}function yi(e,t){return e&&_i(e,t,od)}function bi(e,t){return sn(t,function(t){return au(e[t])})}function xi(e,t){t=Aa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gs(t[r++])];return r&&r==i?e:n}function Si(e,t,n){var r=t(e);return Kl(e)?r:dn(r,n(e))}function Ci(e){return e==null?e===n?le:te:gt&&gt in Ke(e)?No(e):is(e)}function wi(e,t){return e>t}function Ti(e,t){return e!=null&&et.call(e,t)}function Ei(e,t){return e!=null&&t in Ke(e)}function Di(e,t,n){return e>=Ft(t,n)&&e<At(t,n)}function Oi(e,t,r){for(var i=r?ln:cn,a=e[0].length,o=e.length,s=o,c=B(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=un(d,Mn(t))),l=Ft(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Ir(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Pn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Pn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function ki(e,t,n,r){return vi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Ai(e,t,r){t=Aa(t,e),e=os(e,t);var i=e==null?e:e[gs(Ws(t))];return i==null?n:tn(i,e,r)}function ji(e){return lu(e)&&Ci(e)==S}function Mi(e){return lu(e)&&Ci(e)==fe}function Ni(e){return lu(e)&&Ci(e)==E}function Pi(e,t,n,r,i){return e===t?!0:e==null||t==null||!lu(e)&&!lu(t)?e!==e&&t!==t:Fi(e,t,n,r,Pi,i)}function Fi(e,t,n,r,i,a){var o=Kl(e),s=Kl(t),c=o?C:Io(e),l=s?C:Io(t);c=c==S?ne:c,l=l==S?ne:l;var u=c==ne,d=l==ne,f=c==l;if(f&&Zl(e)){if(!Zl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new zr,o||wu(e)?bo(e,t,n,r,i,a):xo(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&et.call(e,`__wrapped__`),m=d&&et.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new zr,i(h,g,n,r,a)}}return f?(a||=new zr,So(e,t,n,r,i,a)):!1}function Ii(e){return lu(e)&&Io(e)==j}function Li(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=Ke(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new zr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Pi(d,u,3,i,f):p))return!1}}return!0}function Ri(e){return!cu(e)||Xo(e)?!1:(au(e)?at:Re).test(_s(e))}function zi(e){return lu(e)&&Ci(e)==ae}function Bi(e){return lu(e)&&Io(e)==oe}function Vi(e){return lu(e)&&su(e.length)&&!!Nt[Ci(e)]}function Hi(e){return typeof e==`function`?e:e==null?hf:typeof e==`object`?Kl(e)?Ji(e[0],e[1]):qi(e):Of(e)}function Ui(e){if(!Qo(e))return kt(e);var t=[];for(var n in Ke(e))et.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Wi(e){if(!cu(e))return rs(e);var t=Qo(e),n=[];for(var r in e)r==`constructor`&&(t||!et.call(e,r))||n.push(r);return n}function Gi(e,t){return e<t}function Ki(e,t){var n=-1,r=Jl(e)?B(e.length):[];return li(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function qi(e){var t=jo(e);return t.length==1&&t[0][2]?es(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}}function Ji(e,t){return qo(e)&&$o(t)?es(gs(e),t):function(r){var i=ed(r,e);return i===n&&i===t?nd(r,e):Pi(t,i,3)}}function Yi(e,t,r,i,a){e!==t&&gi(t,function(o,s){if(a||=new zr,cu(o))Xi(e,t,s,r,Yi,i,a);else{var c=i?i(cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Yr(e,s,c)}},sd)}function Xi(e,t,r,i,a,o,s){var c=cs(e,r),l=cs(t,r),u=s.get(l);if(u){Yr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Kl(l),m=!p&&Zl(l),h=!p&&!m&&wu(l);d=l,p||m||h?Kl(c)?d=c:Yl(c)?d=Wa(c):m?(f=!1,d=Pa(l,!0)):h?(f=!1,d=za(l,!0)):d=[]:vu(l)||Gl(l)?(d=c,Gl(c)?d=Fu(c):(!cu(c)||au(c))&&(d=Vo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Yr(e,r,d)}function Zi(e,t){var r=e.length;if(r)return t+=t<0?r:0,Go(t,r)?e[t]:n}function Qi(e,t,n){t=t.length?un(t,function(e){return Kl(e)?function(t){return xi(t,e.length===1?e[0]:e)}:e}):[hf];var r=-1;return t=un(t,Mn(ko())),Dn(Ki(e,function(e,n,i){return{criteria:un(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Va(e,t,n)})}function $i(e,t){return ea(e,t,function(t,n){return nd(e,n)})}function ea(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=xi(e,o);n(s,o)&&ua(a,Aa(o,e),s)}return a}function ta(e){return function(t){return xi(t,e)}}function na(e,t,n,r){var i=r?xn:bn,a=-1,o=t.length,s=e;for(e===t&&(t=Wa(t)),n&&(s=un(e,Mn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&pt.call(s,c,1),pt.call(e,c,1);return e}function ra(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Go(i)?pt.call(e,i,1):Sa(e,i)}}return e}function ia(e,t){return e+St(Rt()*(t-e+1))}function aa(e,t,n,r){for(var i=-1,a=At(xt((t-e)/(n||1)),0),o=B(a);a--;)o[r?a:++i]=e,e+=n;return o}function oa(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=St(t/2),t&&(e+=e);while(t);return n}function sa(e,t){return ds(as(e,t,hf),e+``)}function ca(e){return Kr(Td(e))}function la(e,t){var n=Td(e);return ms(n,ri(t,0,n.length))}function ua(e,t,r,i){if(!cu(e))return e;t=Aa(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=gs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=cu(d)?d:Go(t[a+1])?[]:{})}Xr(c,l,u),c=c[l]}return e}var da=gn?function(e,t){return gn.set(e,t),e}:hf,fa=_t?function(e,t){return _t(e,`toString`,{configurable:!0,enumerable:!1,value:df(t),writable:!0})}:hf;function pa(e){return ms(Td(e))}function ma(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=B(i);++r<i;)a[r]=e[r+t];return a}function ha(e,t){var n;return li(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ga(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=b){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Cu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return _a(e,t,hf,n)}function _a(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Cu(t),u=t===n;a<o;){var d=St((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Cu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Ft(o,y)}function va(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Hl(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function ya(e){return typeof e==`number`?e:Cu(e)?_:+e}function ba(e){if(typeof e==`string`)return e;if(Kl(e))return un(e,ba)+``;if(Cu(e))return ur?ur.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xa(e,t,n){var r=-1,i=cn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=ln;else if(a>=200){var l=t?null:mo(e);if(l)return Jn(l);o=!1,i=Pn,c=new Ir}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Sa(e,t){t=Aa(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=gs(t[n]);if(i===`__proto__`&&!et.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=os(e,t);return a==null||delete a[gs(Ws(t))]}function Ca(e,t,n,r){return ua(e,t,n(xi(e,t)),r)}function wa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ma(e,r?0:a,r?a+1:i):ma(e,r?a+1:0,r?i:a)}function Ta(e,t){var n=e;return n instanceof mr&&(n=n.value()),fn(t,function(e,t){return t.func.apply(t.thisArg,dn([e],t.args))},n)}function Ea(e,t,n){var r=e.length;if(r<2)return r?xa(e[0]):[];for(var i=-1,a=B(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=ci(a[i]||o,e[s],t,n));return xa(hi(a,1),t,n)}function Da(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Oa(e){return Yl(e)?e:[]}function ka(e){return typeof e==`function`?e:hf}function Aa(e,t){return Kl(e)?e:qo(e,t)?[e]:hs(Lu(e))}var ja=sa;function Ma(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:ma(e,t,r)}var Na=vt||function(e){return Ut.clearTimeout(e)};function Pa(e,t){if(t)return e.slice();var n=e.length,r=lt?lt(n):new e.constructor(n);return e.copy(r),r}function Fa(e){var t=new e.constructor(e.byteLength);return new ct(t).set(new ct(e)),t}function Ia(e,t){var n=t?Fa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function La(e){var t=new e.constructor(e.source,Fe.exec(e));return t.lastIndex=e.lastIndex,t}function Ra(e){return lr?Ke(lr.call(e)):{}}function za(e,t){var n=t?Fa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ba(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Cu(e),s=t!==n,c=t===null,l=t===t,u=Cu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Va(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Ba(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Ha(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=At(a-o,0),u=B(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ua(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=At(a-s,0),d=B(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Wa(e,t){var n=-1,r=e.length;for(t||=B(r);++n<r;)t[n]=e[n];return t}function Ga(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ti(r,c,l):Xr(r,c,l)}return r}function J(e,t){return Ga(e,Po(e),t)}function Ka(e,t){return Ga(e,Fo(e),t)}function qa(e,t){return function(n,r){var i=Kl(n)?nn:Qr,a=t?t():{};return i(n,e,ko(r,2),a)}}function Ja(e){return sa(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Ko(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Ke(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ya(e,t){return function(n,r){if(n==null)return n;if(!Jl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ke(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Xa(e){return function(t,n,r){for(var i=-1,a=Ke(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Za(e,t,n){var r=t&o,i=eo(e);function a(){return(this&&this!==Ut&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Qa(e){return function(t){t=Lu(t);var r=Hn(t)?$n(t):n,i=r?r[0]:t.charAt(0),a=r?Ma(r,1).join(``):t.slice(1);return i[e]()+a}}function $a(e){return function(t){return fn(of(Md(t).replace(Tt,``)),e,``)}}function eo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=dr(e.prototype),r=e.apply(n,t);return cu(r)?r:n}}function to(e,t,r){var i=eo(e);function a(){for(var o=arguments.length,s=B(o),c=o,l=Oo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:qn(s,l);return o-=u.length,o<r?fo(e,t,io,a.placeholder,n,s,u,n,n,r-o):tn(this&&this!==Ut&&this instanceof a?i:e,this,s)}return a}function no(e){return function(t,r,i){var a=Ke(t);if(!Jl(t)){var o=ko(r,3);t=od(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function ro(e){return Co(function(t){var i=t.length,a=i,o=pr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new Ye(r);if(o&&!l&&Do(s)==`wrapper`)var l=new pr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Do(s),m=d==`wrapper`?Eo(s):n;l=m&&Yo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Do(m[0])].apply(l,m[3]):s.length==1&&Yo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Kl(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function io(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:eo(e);function C(){for(var n=arguments.length,o=B(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Oo(C),l=Ln(o,c);if(i&&(o=Ha(o,i,a,b)),u&&(o=Ua(o,u,d,b)),n-=l,b&&n<g){var f=qn(o,c);return fo(e,t,io,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=ss(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Ut&&this instanceof C&&(w=S||eo(w)),w.apply(m,o)}return C}function ao(e,t){return function(n,r){return ki(n,e,t(r),{})}}function Y(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=ba(r),i=ba(i)):(r=ya(r),i=ya(i)),a=e(r,i)}return a}}function oo(e){return Co(function(t){return t=un(t,Mn(ko())),sa(function(n){var r=this;return e(t,function(e){return tn(e,r,n)})})})}function so(e,t){t=t===n?` `:ba(t);var r=t.length;if(r<2)return r?oa(t,e):t;var i=oa(t,xt(e/Qn(t)));return Hn(t)?Ma($n(i),0,e).join(``):i.slice(0,e)}function co(e,t,n,r){var i=t&o,a=eo(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=B(l+o),d=this&&this!==Ut&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return tn(d,i?n:this,u)}return s}function lo(e){return function(t,r,i){return i&&typeof i!=`number`&&Ko(t,r,i)&&(r=i=n),t=ju(t),r===n?(r=t,t=0):r=ju(r),i=i===n?t<r?1:-1:ju(i),aa(t,r,i,e)}}function uo(e){return function(t,n){return typeof t==`string`&&typeof n==`string`||(t=Pu(t),n=Pu(n)),e(t,n)}}function fo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Yo(e)&&ls(S,x),S.placeholder=i,fs(S,e,t)}function po(e){var t=Ge[e];return function(e,n){if(e=Pu(e),n=n==null?0:Ft(Mu(n),292),n&&Dt(e)){var r=(Lu(e)+`e`).split(`e`);return r=(Lu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var mo=qt&&1/Jn(new qt([,-0]))[1]==h?function(e){return new qt(e)}:Cf;function ho(e){return function(t){var n=Io(t);return n==j?Gn(t):n==oe?Yn(t):An(t,e(t))}}function go(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new Ye(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:At(Mu(m),0),h=h===n?h:Mu(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Eo(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ns(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:At(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Za(e,t,i);else S=t==c||t==l?to(e,t,h):(t==u||t==(o|u))&&!f.length?co(e,t,i,a):io.apply(n,x);return fs((b?da:ls)(S,x),e,t)}function _o(e,t,r,i){return e===n||Hl(e,Qe[r])&&!et.call(i,r)?t:e}function vo(e,t,r,i,a,o){return cu(e)&&cu(t)&&(o.set(t,e),Yi(e,t,n,vo,o),o.delete(t)),e}function yo(e){return vu(e)?n:e}function bo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Ir:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!mn(t,function(e,t){if(!Pn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function xo(e,t,n,r,i,a,o){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!a(new ct(e),new ct(t)));case T:case E:case ee:return Hl(+e,+t);case O:return e.name==t.name&&e.message==t.message;case ae:case se:return e==t+``;case j:var s=Gn;case oe:var c=r&1;if(s||=Jn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=bo(s(e),s(t),r,i,a,o);return o.delete(e),u;case ce:if(lr)return lr.call(e)==lr.call(t)}return!1}function So(e,t,r,i,a,o){var s=r&1,c=wo(e),l=c.length;if(l!=wo(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:et.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Co(e){return ds(as(e,n,Ns),e+``)}function wo(e){return Si(e,od,Po)}function To(e){return Si(e,sd,Fo)}var Eo=gn?function(e){return gn.get(e)}:Cf;function Do(e){for(var t=e.name+``,n=Tn[t],r=et.call(Tn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Oo(e){return(et.call(q,`placeholder`)?q:e).placeholder}function ko(){var e=q.iteratee||gf;return e=e===gf?Hi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n=e.__data__;return Jo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function jo(e){for(var t=od(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,$o(i)]}return t}function Mo(e,t){var r=Vn(e,t);return Ri(r)?r:n}function No(e){var t=et.call(e,gt),r=e[gt];try{e[gt]=n;var i=!0}catch{}var a=nt.call(e);return i&&(t?e[gt]=r:delete e[gt]),a}var Po=Ct?function(e){return e==null?[]:(e=Ke(e),sn(Ct(e),function(t){return ft.call(e,t)}))}:Mf,Fo=Ct?function(e){for(var t=[];e;)dn(t,Po(e)),e=ut(e);return t}:Mf,Io=Ci;(Ht&&Io(new Ht(new ArrayBuffer(1)))!=pe||Wt&&Io(new Wt)!=j||Gt&&Io(Gt.resolve())!=re||qt&&Io(new qt)!=oe||Jt&&Io(new Jt)!=ue)&&(Io=function(e){var t=Ci(e),r=t==ne?e.constructor:n,i=r?_s(r):``;if(i)switch(i){case Xn:return pe;case nr:return j;case rr:return re;case or:return oe;case sr:return ue}return t});function Lo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Ft(t,e+o);break;case`takeRight`:e=At(e,t-o);break}}return{start:e,end:t}}function Ro(e){var t=e.match(H);return t?t[1].split(je):[]}function zo(e,t,n){t=Aa(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&su(i)&&Go(o,i)&&(Kl(e)||Gl(e)))}function Bo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&et.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Vo(e){return typeof e.constructor==`function`&&!Qo(e)?dr(ut(e)):{}}function Ho(e,t,n){var r=e.constructor;switch(t){case fe:return Fa(e);case T:case E:return new r(+e);case pe:return Ia(e,n);case me:case he:case ge:case _e:case ve:case ye:case be:case M:case N:return za(e,n);case j:return new r;case ee:case se:return new r(e);case ae:return La(e);case oe:return new r;case ce:return Ra(e)}}function Uo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(V,`{
2
+ /* [wrapped with `+t+`] */
3
+ `)}function Wo(e){return Kl(e)||Gl(e)||!!(mt&&e&&e[mt])}function Go(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Be.test(e))&&e>-1&&e%1==0&&e<t}function Ko(e,t,n){if(!cu(n))return!1;var r=typeof t;return(r==`number`?Jl(n)&&Go(t,n.length):r==`string`&&t in n)?Hl(n[t],e):!1}function qo(e,t){if(Kl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Cu(e)?!0:Oe.test(e)||!De.test(e)||t!=null&&e in Ke(t)}function Jo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Yo(e){var t=Do(e),n=q[t];if(typeof n!=`function`||!(t in mr.prototype))return!1;if(e===n)return!0;var r=Eo(n);return!!r&&e===r[0]}function Xo(e){return!!K&&K in e}var Zo=G?au:Nf;function Qo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Qe)}function $o(e){return e===e&&!cu(e)}function es(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in Ke(r))}}function ts(e){var t=Tl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ns(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Ha(m,d,t[4]):d,e[4]=m?qn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ua(m,d,t[6]):d,e[6]=m?qn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Ft(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function rs(e){var t=[];if(e!=null)for(var n in Ke(e))t.push(n);return t}function is(e){return nt.call(e)}function as(e,t,r){return t=At(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=At(n.length-t,0),o=B(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=B(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),tn(e,this,s)}}function os(e,t){return t.length<2?e:xi(e,ma(t,0,-1))}function ss(e,t){for(var r=e.length,i=Ft(t.length,r),a=Wa(e);i--;){var o=t[i];e[i]=Go(o,r)?a[o]:n}return e}function cs(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var ls=ps(da),us=bt||function(e,t){return Ut.setTimeout(e,t)},ds=ps(fa);function fs(e,t,n){var r=t+``;return ds(e,Uo(r,vs(Ro(r),n)))}function ps(e){var t=0,r=0;return function(){var i=It(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ia(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var hs=ts(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(ke,function(e,n,r,i){t.push(r?i.replace(Ne,`$1`):n||e)}),t});function gs(e){if(typeof e==`string`||Cu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function _s(e){if(e!=null){try{return $e.call(e)}catch{}try{return e+``}catch{}}return``}function vs(e,t){return rn(x,function(n){var r=`_.`+n[0];t&n[1]&&!cn(e,r)&&e.push(r)}),e.sort()}function ys(e){if(e instanceof mr)return e.clone();var t=new pr(e.__wrapped__,e.__chain__);return t.__actions__=Wa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function bs(e,t,r){t=(r?Ko(e,t,r):t===n)?1:At(Mu(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=B(xt(i/t));a<i;)s[o++]=ma(e,a,a+=t);return s}function xs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ss(){var e=arguments.length;if(!e)return[];for(var t=B(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return dn(Kl(n)?Wa(n):[n],hi(t,1))}var Cs=sa(function(e,t){return Yl(e)?ci(e,hi(t,1,Yl,!0)):[]}),ws=sa(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?ci(e,hi(t,1,Yl,!0),ko(r,2)):[]}),Ts=sa(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?ci(e,hi(t,1,Yl,!0),n,r):[]});function Es(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),ma(e,t<0?0:t,i)):[]}function Ds(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),t=i-t,ma(e,0,t<0?0:t)):[]}function Os(e,t){return e&&e.length?wa(e,ko(t,3),!0,!0):[]}function ks(e,t){return e&&e.length?wa(e,ko(t,3),!0):[]}function As(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Ko(e,t,n)&&(n=0,r=i),pi(e,t,n,r)):[]}function js(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Mu(n);return i<0&&(i=At(r+i,0)),yn(e,ko(t,3),i)}function Ms(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Mu(r),a=r<0?At(i+a,0):Ft(a,i-1)),yn(e,ko(t,3),a,!0)}function Ns(e){return e!=null&&e.length?hi(e,1):[]}function Ps(e){return e!=null&&e.length?hi(e,h):[]}function Fs(e,t){return e!=null&&e.length?(t=t===n?1:Mu(t),hi(e,t)):[]}function Is(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ti(r,i[0],i[1])}return r}function Ls(e){return e&&e.length?e[0]:n}function Rs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Mu(n);return i<0&&(i=At(r+i,0)),bn(e,t,i)}function zs(e){return e!=null&&e.length?ma(e,0,-1):[]}var Bs=sa(function(e){var t=un(e,Oa);return t.length&&t[0]===e[0]?Oi(t):[]}),Vs=sa(function(e){var t=Ws(e),r=un(e,Oa);return t===Ws(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Oi(r,ko(t,2)):[]}),Hs=sa(function(e){var t=Ws(e),r=un(e,Oa);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Oi(r,n,t):[]});function Us(e,t){return e==null?``:Ot.call(e,t)}function Ws(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Gs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Mu(r),a=a<0?At(i+a,0):Ft(a,i-1)),t===t?Zn(e,t,a):yn(e,Sn,a,!0)}function Ks(e,t){return e&&e.length?Zi(e,Mu(t)):n}var qs=sa(Js);function Js(e,t){return e&&e.length&&t&&t.length?na(e,t):e}function Ys(e,t,n){return e&&e.length&&t&&t.length?na(e,t,ko(n,2)):e}function Xs(e,t,r){return e&&e.length&&t&&t.length?na(e,t,n,r):e}var Zs=Co(function(e,t){var n=e==null?0:e.length,r=ni(e,t);return ra(e,un(t,function(e){return Go(e,n)?+e:e}).sort(Ba)),r});function Qs(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=ko(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ra(e,i),n}function $s(e){return e==null?e:Vt.call(e)}function ec(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Ko(e,t,r)?(t=0,r=i):(t=t==null?0:Mu(t),r=r===n?i:Mu(r)),ma(e,t,r)):[]}function tc(e,t){return ga(e,t)}function nc(e,t,n){return _a(e,t,ko(n,2))}function rc(e,t){var n=e==null?0:e.length;if(n){var r=ga(e,t);if(r<n&&Hl(e[r],t))return r}return-1}function ic(e,t){return ga(e,t,!0)}function ac(e,t,n){return _a(e,t,ko(n,2),!0)}function oc(e,t){if(e!=null&&e.length){var n=ga(e,t,!0)-1;if(Hl(e[n],t))return n}return-1}function sc(e){return e&&e.length?va(e):[]}function cc(e,t){return e&&e.length?va(e,ko(t,2)):[]}function lc(e){var t=e==null?0:e.length;return t?ma(e,1,t):[]}function uc(e,t,r){return e&&e.length?(t=r||t===n?1:Mu(t),ma(e,0,t<0?0:t)):[]}function dc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Mu(t),t=i-t,ma(e,t<0?0:t,i)):[]}function fc(e,t){return e&&e.length?wa(e,ko(t,3),!1,!0):[]}function pc(e,t){return e&&e.length?wa(e,ko(t,3)):[]}var mc=sa(function(e){return xa(hi(e,1,Yl,!0))}),hc=sa(function(e){var t=Ws(e);return Yl(t)&&(t=n),xa(hi(e,1,Yl,!0),ko(t,2))}),gc=sa(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,xa(hi(e,1,Yl,!0),n,t)});function _c(e){return e&&e.length?xa(e):[]}function vc(e,t){return e&&e.length?xa(e,ko(t,2)):[]}function yc(e,t){return t=typeof t==`function`?t:n,e&&e.length?xa(e,n,t):[]}function bc(e){if(!(e&&e.length))return[];var t=0;return e=sn(e,function(e){if(Yl(e))return t=At(e.length,t),!0}),kn(t,function(t){return un(e,wn(t))})}function xc(e,t){if(!(e&&e.length))return[];var r=bc(e);return t==null?r:un(r,function(e){return tn(t,n,e)})}var Sc=sa(function(e,t){return Yl(e)?ci(e,t):[]}),Cc=sa(function(e){return Ea(sn(e,Yl))}),wc=sa(function(e){var t=Ws(e);return Yl(t)&&(t=n),Ea(sn(e,Yl),ko(t,2))}),Tc=sa(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,Ea(sn(e,Yl),n,t)}),Ec=sa(bc);function Dc(e,t){return Da(e||[],t||[],Xr)}function Oc(e,t){return Da(e||[],t||[],ua)}var kc=sa(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,xc(e,r)});function Ac(e){var t=q(e);return t.__chain__=!0,t}function jc(e,t){return t(e),e}function Mc(e,t){return t(e)}var Nc=Co(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ni(t,e)};return t>1||this.__actions__.length||!(i instanceof mr)||!Go(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Mc,args:[a],thisArg:n}),new pr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Pc(){return Ac(this)}function Fc(){return new pr(this.value(),this.__chain__)}function Ic(){this.__values__===n&&(this.__values__=Au(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Lc(){return this}function Rc(e){for(var t,r=this;r instanceof fr;){var i=ys(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function zc(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),t=t.reverse(),t.__actions__.push({func:Mc,args:[$s],thisArg:n}),new pr(t,this.__chain__)}return this.thru($s)}function Bc(){return Ta(this.__wrapped__,this.__actions__)}var Vc=qa(function(e,t,n){et.call(e,n)?++e[n]:ti(e,n,1)});function Hc(e,t,r){var i=Kl(e)?on:di;return r&&Ko(e,t,r)&&(t=n),i(e,ko(t,3))}function Uc(e,t){return(Kl(e)?sn:mi)(e,ko(t,3))}var Wc=no(js),Gc=no(Ms);function Kc(e,t){return hi(tl(e,t),1)}function qc(e,t){return hi(tl(e,t),h)}function Jc(e,t,r){return r=r===n?1:Mu(r),hi(tl(e,t),r)}function Yc(e,t){return(Kl(e)?rn:li)(e,ko(t,3))}function Xc(e,t){return(Kl(e)?an:ui)(e,ko(t,3))}var Zc=qa(function(e,t,n){et.call(e,n)?e[n].push(t):ti(e,n,[t])});function Qc(e,t,n,r){e=Jl(e)?e:Td(e),n=n&&!r?Mu(n):0;var i=e.length;return n<0&&(n=At(i+n,0)),Su(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&bn(e,t,n)>-1}var $c=sa(function(e,t,n){var r=-1,i=typeof t==`function`,a=Jl(e)?B(e.length):[];return li(e,function(e){a[++r]=i?tn(t,e,n):Ai(e,t,n)}),a}),el=qa(function(e,t,n){ti(e,n,t)});function tl(e,t){return(Kl(e)?un:Ki)(e,ko(t,3))}function nl(e,t,r,i){return e==null?[]:(Kl(t)||(t=t==null?[]:[t]),r=i?n:r,Kl(r)||(r=r==null?[]:[r]),Qi(e,t,r))}var rl=qa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function il(e,t,n){var r=Kl(e)?fn:En,i=arguments.length<3;return r(e,ko(t,4),n,i,li)}function al(e,t,n){var r=Kl(e)?pn:En,i=arguments.length<3;return r(e,ko(t,4),n,i,ui)}function ol(e,t){return(Kl(e)?sn:mi)(e,El(ko(t,3)))}function sl(e){return(Kl(e)?Kr:ca)(e)}function cl(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Mu(t),(Kl(e)?qr:la)(e,t)}function ll(e){return(Kl(e)?Jr:pa)(e)}function ul(e){if(e==null)return 0;if(Jl(e))return Su(e)?Qn(e):e.length;var t=Io(e);return t==j||t==oe?e.size:Ui(e).length}function dl(e,t,r){var i=Kl(e)?mn:ha;return r&&Ko(e,t,r)&&(t=n),i(e,ko(t,3))}var fl=sa(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),Qi(e,hi(t,1),[])}),pl=yt||function(){return Ut.Date.now()};function ml(e,t){if(typeof t!=`function`)throw new Ye(r);return e=Mu(e),function(){if(--e<1)return t.apply(this,arguments)}}function hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,go(e,f,n,n,n,n,t)}function gl(e,t){var i;if(typeof t!=`function`)throw new Ye(r);return e=Mu(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var _l=sa(function(e,t,n){var r=o;if(n.length){var i=qn(n,Oo(_l));r|=u}return go(e,r,t,n,i)}),vl=sa(function(e,t,n){var r=o|s;if(n.length){var i=qn(n,Oo(vl));r|=u}return go(t,r,e,n,i)});function yl(e,t,r){t=r?n:t;var i=go(e,c,n,n,n,n,n,t);return i.placeholder=yl.placeholder,i}function bl(e,t,r){t=r?n:t;var i=go(e,l,n,n,n,n,n,t);return i.placeholder=bl.placeholder,i}function xl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Ye(r);t=Pu(t)||0,cu(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?At(Pu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=us(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Ft(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=pl();if(v(e))return b(e);l=us(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Na(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(pl())}function C(){var e=pl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Na(l),l=us(y,t),h(u)}return l===n&&(l=us(y,t)),c}return C.cancel=x,C.flush=S,C}var Sl=sa(function(e,t){return si(e,1,t)}),Cl=sa(function(e,t,n){return si(e,Pu(t)||0,n)});function wl(e){return go(e,m)}function Tl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Ye(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Tl.Cache||Ar),n}Tl.Cache=Ar;function El(e){if(typeof e!=`function`)throw new Ye(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Dl(e){return gl(2,e)}var Ol=ja(function(e,t){t=t.length==1&&Kl(t[0])?un(t[0],Mn(ko())):un(hi(t,1),Mn(ko()));var n=t.length;return sa(function(r){for(var i=-1,a=Ft(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return tn(e,this,r)})}),kl=sa(function(e,t){return go(e,u,n,t,qn(t,Oo(kl)))}),Al=sa(function(e,t){return go(e,d,n,t,qn(t,Oo(Al)))}),jl=Co(function(e,t){return go(e,p,n,n,n,t)});function Ml(e,t){if(typeof e!=`function`)throw new Ye(r);return t=t===n?t:Mu(t),sa(e,t)}function Nl(e,t){if(typeof e!=`function`)throw new Ye(r);return t=t==null?0:At(Mu(t),0),sa(function(n){var r=n[t],i=Ma(n,0,t);return r&&dn(i,r),tn(e,this,i)})}function Pl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new Ye(r);return cu(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),xl(e,t,{leading:i,maxWait:t,trailing:a})}function Fl(e){return hl(e,1)}function Il(e,t){return kl(ka(t),e)}function Ll(){if(!arguments.length)return[];var e=arguments[0];return Kl(e)?e:[e]}function Rl(e){return ii(e,4)}function zl(e,t){return t=typeof t==`function`?t:n,ii(e,4,t)}function X(e){return ii(e,5)}function Bl(e,t){return t=typeof t==`function`?t:n,ii(e,5,t)}function Vl(e,t){return t==null||oi(e,t,od(t))}function Hl(e,t){return e===t||e!==e&&t!==t}var Ul=uo(wi),Wl=uo(function(e,t){return e>=t}),Gl=ji(function(){return arguments}())?ji:function(e){return lu(e)&&et.call(e,`callee`)&&!ft.call(e,`callee`)},Kl=B.isArray,ql=Yt?Mn(Yt):Mi;function Jl(e){return e!=null&&su(e.length)&&!au(e)}function Yl(e){return lu(e)&&Jl(e)}function Xl(e){return e===!0||e===!1||lu(e)&&Ci(e)==T}var Zl=wt||Nf,Ql=Xt?Mn(Xt):Ni;function $l(e){return lu(e)&&e.nodeType===1&&!vu(e)}function eu(e){if(e==null)return!0;if(Jl(e)&&(Kl(e)||typeof e==`string`||typeof e.splice==`function`||Zl(e)||wu(e)||Gl(e)))return!e.length;var t=Io(e);if(t==j||t==oe)return!e.size;if(Qo(e))return!Ui(e).length;for(var n in e)if(et.call(e,n))return!1;return!0}function tu(e,t){return Pi(e,t)}function nu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Pi(e,t,n,r):!!i}function ru(e){if(!lu(e))return!1;var t=Ci(e);return t==O||t==D||typeof e.message==`string`&&typeof e.name==`string`&&!vu(e)}function iu(e){return typeof e==`number`&&Dt(e)}function au(e){if(!cu(e))return!1;var t=Ci(e);return t==k||t==A||t==w||t==ie}function ou(e){return typeof e==`number`&&e==Mu(e)}function su(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function cu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function lu(e){return typeof e==`object`&&!!e}var uu=Zt?Mn(Zt):Ii;function du(e,t){return e===t||Li(e,t,jo(t))}function fu(e,t,r){return r=typeof r==`function`?r:n,Li(e,t,jo(t),r)}function pu(e){return _u(e)&&e!=+e}function mu(e){if(Zo(e))throw new Ue(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ri(e)}function hu(e){return e===null}function gu(e){return e==null}function _u(e){return typeof e==`number`||lu(e)&&Ci(e)==ee}function vu(e){if(!lu(e)||Ci(e)!=ne)return!1;var t=ut(e);if(t===null)return!0;var n=et.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&$e.call(n)==rt}var yu=Qt?Mn(Qt):zi;function bu(e){return ou(e)&&e>=-9007199254740991&&e<=g}var xu=$t?Mn($t):Bi;function Su(e){return typeof e==`string`||!Kl(e)&&lu(e)&&Ci(e)==se}function Cu(e){return typeof e==`symbol`||lu(e)&&Ci(e)==ce}var wu=en?Mn(en):Vi;function Tu(e){return e===n}function Eu(e){return lu(e)&&Io(e)==ue}function Du(e){return lu(e)&&Ci(e)==de}var Ou=uo(Gi),ku=uo(function(e,t){return e<=t});function Au(e){if(!e)return[];if(Jl(e))return Su(e)?$n(e):Wa(e);if(ht&&e[ht])return Wn(e[ht]());var t=Io(e);return(t==j?Gn:t==oe?Jn:Td)(e)}function ju(e){return e?(e=Pu(e),e===h||e===-1/0?(e<0?-1:1)*17976931348623157e292:e===e?e:0):e===0?e:0}function Mu(e){var t=ju(e),n=t%1;return t===t?n?t-n:t:0}function Nu(e){return e?ri(Mu(e),0,v):0}function Pu(e){if(typeof e==`number`)return e;if(Cu(e))return _;if(cu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=cu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=jn(e);var n=Le.test(e);return n||ze.test(e)?Bt(e.slice(2),n?2:8):Ie.test(e)?_:+e}function Fu(e){return Ga(e,sd(e))}function Iu(e){return e?ri(Mu(e),-9007199254740991,g):e===0?e:0}function Lu(e){return e==null?``:ba(e)}var Ru=Ja(function(e,t){if(Qo(t)||Jl(t)){Ga(t,od(t),e);return}for(var n in t)et.call(t,n)&&Xr(e,n,t[n])}),zu=Ja(function(e,t){Ga(t,sd(t),e)}),Bu=Ja(function(e,t,n,r){Ga(t,sd(t),e,r)}),Vu=Ja(function(e,t,n,r){Ga(t,od(t),e,r)}),Hu=Co(ni);function Uu(e,t){var n=dr(e);return t==null?n:$r(n,t)}var Wu=sa(function(e,t){e=Ke(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Ko(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=sd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Hl(d,Qe[u])&&!et.call(e,u))&&(e[u]=o[u])}return e}),Gu=sa(function(e){return e.push(n,vo),tn(dd,n,e)});function Ku(e,t){return vn(e,ko(t,3),vi)}function qu(e,t){return vn(e,ko(t,3),yi)}function Ju(e,t){return e==null?e:gi(e,ko(t,3),sd)}function Yu(e,t){return e==null?e:_i(e,ko(t,3),sd)}function Xu(e,t){return e&&vi(e,ko(t,3))}function Zu(e,t){return e&&yi(e,ko(t,3))}function Qu(e){return e==null?[]:bi(e,od(e))}function $u(e){return e==null?[]:bi(e,sd(e))}function ed(e,t,r){var i=e==null?n:xi(e,t);return i===n?r:i}function td(e,t){return e!=null&&zo(e,t,Ti)}function nd(e,t){return e!=null&&zo(e,t,Ei)}var rd=ao(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=nt.call(t)),e[t]=n},df(hf)),id=ao(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=nt.call(t)),et.call(e,t)?e[t].push(n):e[t]=[n]},ko),ad=sa(Ai);function od(e){return Jl(e)?Gr(e):Ui(e)}function sd(e){return Jl(e)?Gr(e,!0):Wi(e)}function cd(e,t){var n={};return t=ko(t,3),vi(e,function(e,r,i){ti(n,t(e,r,i),e)}),n}function ld(e,t){var n={};return t=ko(t,3),vi(e,function(e,r,i){ti(n,r,t(e,r,i))}),n}var ud=Ja(function(e,t,n){Yi(e,t,n)}),dd=Ja(function(e,t,n,r){Yi(e,t,n,r)}),fd=Co(function(e,t){var n={};if(e==null)return n;var r=!1;t=un(t,function(t){return t=Aa(t,e),r||=t.length>1,t}),Ga(e,To(e),n),r&&(n=ii(n,7,yo));for(var i=t.length;i--;)Sa(n,t[i]);return n});function pd(e,t){return hd(e,El(ko(t)))}var md=Co(function(e,t){return e==null?{}:$i(e,t)});function hd(e,t){if(e==null)return{};var n=un(To(e),function(e){return[e]});return t=ko(t),ea(e,n,function(e,n){return t(e,n[0])})}function gd(e,t,r){t=Aa(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[gs(t[i])];o===n&&(i=a,o=r),e=au(o)?o.call(e):o}return e}function _d(e,t,n){return e==null?e:ua(e,t,n)}function vd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ua(e,t,r,i)}var yd=ho(od),bd=ho(sd);function xd(e,t,n){var r=Kl(e),i=r||Zl(e)||wu(e);if(t=ko(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:cu(e)&&au(a)?dr(ut(e)):{}}return(i?rn:vi)(e,function(e,r,i){return t(n,e,r,i)}),n}function Sd(e,t){return e==null||Sa(e,t)}function Cd(e,t,n){return e==null?e:Ca(e,t,ka(n))}function wd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Ca(e,t,ka(r),i)}function Td(e){return e==null?[]:Nn(e,od(e))}function Ed(e){return e==null?[]:Nn(e,sd(e))}function Dd(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Pu(r),r=r===r?r:0),t!==n&&(t=Pu(t),t=t===t?t:0),ri(Pu(e),t,r)}function Od(e,t,r){return t=ju(t),r===n?(r=t,t=0):r=ju(r),e=Pu(e),Di(e,t,r)}function kd(e,t,r){if(r&&typeof r!=`boolean`&&Ko(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ju(e),t===n?(t=e,e=0):t=ju(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Rt();return Ft(e+a*(t-e+zt(`1e-`+((a+``).length-1))),t)}return ia(e,t)}var Ad=$a(function(e,t,n){return t=t.toLowerCase(),e+(n?jd(t):t)});function jd(e){return af(Lu(e).toLowerCase())}function Md(e){return e=Lu(e),e&&e.replace(W,Rn).replace(Et,``)}function Nd(e,t,r){e=Lu(e),t=ba(t);var i=e.length;r=r===n?i:ri(Mu(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Pd(e){return e=Lu(e),e&&Te.test(e)?e.replace(Ce,zn):e}function Fd(e){return e=Lu(e),e&&R.test(e)?e.replace(Ae,`\\$&`):e}var Id=$a(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Ld=$a(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Rd=Qa(`toLowerCase`);function zd(e,t,n){e=Lu(e),t=Mu(t);var r=t?Qn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return so(St(i),n)+e+so(xt(i),n)}function Bd(e,t,n){e=Lu(e),t=Mu(t);var r=t?Qn(e):0;return t&&r<t?e+so(t-r,n):e}function Vd(e,t,n){e=Lu(e),t=Mu(t);var r=t?Qn(e):0;return t&&r<t?so(t-r,n)+e:e}function Hd(e,t,n){return n||t==null?t=0:t&&=+t,Lt(Lu(e).replace(z,``),t||0)}function Ud(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Mu(t),oa(Lu(e),t)}function Wd(){var e=arguments,t=Lu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Gd=$a(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Kd(e,t,r){return r&&typeof r!=`number`&&Ko(e,t,r)&&(t=r=n),r=r===n?v:r>>>0,r?(e=Lu(e),e&&(typeof t==`string`||t!=null&&!yu(t))&&(t=ba(t),!t&&Hn(e))?Ma($n(e),0,r):e.split(t,r)):[]}var qd=$a(function(e,t,n){return e+(n?` `:``)+af(t)});function Jd(e,t,n){return e=Lu(e),n=n==null?0:ri(Mu(n),0,e.length),t=ba(t),e.slice(n,n+t.length)==t}function Yd(e,t,r){var i=q.templateSettings;r&&Ko(e,t,r)&&(t=n),e=Lu(e),t=Vu({},t,i,_o);var a=Vu({},t.imports,i.imports,_o),o=od(a),s=Nn(a,o);rn(o,function(e){if(U.test(e))throw new Ue("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||Ve,f=`__p += '`,p=qe((t.escape||Ve).source+`|`+d.source+`|`+(d===Ee?Pe:Ve).source+`|`+(t.evaluate||Ve).source+`|$`,`g`),m=`//# sourceURL=`+(et.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Mt+`]`)+`
4
+ `;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(He,Bn),n&&(c=!0,f+=`' +
5
+ __e(`+n+`) +
6
+ '`),a&&(l=!0,f+=`';
7
+ `+a+`;
8
+ __p += '`),r&&(f+=`' +
9
+ ((__t = (`+r+`)) == null ? '' : __t) +
10
+ '`),u=o+t.length,t}),f+=`';
11
+ `;var h=et.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
12
+ `+f+`
13
+ }
14
+ `;else if(U.test(h))throw new Ue("Invalid `variable` option passed into `_.template`");f=(l?f.replace(xe,``):f).replace(P,`$1`).replace(F,`$1;`),f=`function(`+(h||`obj`)+`) {
15
+ `+(h?``:`obj || (obj = {});
16
+ `)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
17
+ function print() { __p += __j.call(arguments, '') }
18
+ `:`;
19
+ `)+f+`return __p
20
+ }`;var g=sf(function(){return We(o,m+`return `+f).apply(n,s)});if(g.source=f,ru(g))throw g;return g}function Xd(e){return Lu(e).toLowerCase()}function Zd(e){return Lu(e).toUpperCase()}function Qd(e,t,r){if(e=Lu(e),e&&(r||t===n))return jn(e);if(!e||!(t=ba(t)))return e;var i=$n(e),a=$n(t);return Ma(i,Fn(i,a),In(i,a)+1).join(``)}function $d(e,t,r){if(e=Lu(e),e&&(r||t===n))return e.slice(0,er(e)+1);if(!e||!(t=ba(t)))return e;var i=$n(e);return Ma(i,0,In(i,$n(t))+1).join(``)}function ef(e,t,r){if(e=Lu(e),e&&(r||t===n))return e.replace(z,``);if(!e||!(t=ba(t)))return e;var i=$n(e);return Ma(i,Fn(i,$n(t))).join(``)}function tf(e,t){var r=30,i=`...`;if(cu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Mu(t.length):r,i=`omission`in t?ba(t.omission):i}e=Lu(e);var o=e.length;if(Hn(e)){var s=$n(e);o=s.length}if(r>=o)return e;var c=r-Qn(i);if(c<1)return i;var l=s?Ma(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),yu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=qe(a.source,Lu(Fe.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ba(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function nf(e){return e=Lu(e),e&&we.test(e)?e.replace(Se,tr):e}var rf=$a(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),af=Qa(`toUpperCase`);function of(e,t,r){return e=Lu(e),t=r?n:t,t===n?Un(e)?ir(e):_n(e):e.match(t)||[]}var sf=sa(function(e,t){try{return tn(e,n,t)}catch(e){return ru(e)?e:new Ue(e)}}),cf=Co(function(e,t){return rn(t,function(t){t=gs(t),ti(e,t,_l(e[t],e))}),e});function lf(e){var t=e==null?0:e.length,n=ko();return e=t?un(e,function(e){if(typeof e[1]!=`function`)throw new Ye(r);return[n(e[0]),e[1]]}):[],sa(function(n){for(var r=-1;++r<t;){var i=e[r];if(tn(i[0],this,n))return tn(i[1],this,n)}})}function uf(e){return ai(ii(e,1))}function df(e){return function(){return e}}function ff(e,t){return e==null||e!==e?t:e}var pf=ro(),mf=ro(!0);function hf(e){return e}function gf(e){return Hi(typeof e==`function`?e:ii(e,1))}function _f(e){return qi(ii(e,1))}function vf(e,t){return Ji(e,ii(t,1))}var yf=sa(function(e,t){return function(n){return Ai(n,e,t)}}),bf=sa(function(e,t){return function(n){return Ai(e,n,t)}});function xf(e,t,n){var r=od(t),i=bi(t,r);n==null&&!(cu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=bi(t,od(t)));var a=!(cu(n)&&`chain`in n)||!!n.chain,o=au(e);return rn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Wa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,dn([this.value()],arguments))})}),e}function Sf(){return Ut._===this&&(Ut._=it),this}function Cf(){}function wf(e){return e=Mu(e),sa(function(t){return Zi(t,e)})}var Tf=oo(un),Ef=oo(on),Df=oo(mn);function Of(e){return qo(e)?wn(gs(e)):ta(e)}function kf(e){return function(t){return e==null?n:xi(e,t)}}var Af=lo(),jf=lo(!0);function Mf(){return[]}function Nf(){return!1}function Pf(){return{}}function Ff(){return``}function If(){return!0}function Lf(e,t){if(e=Mu(e),e<1||e>g)return[];var n=v,r=Ft(e,v);t=ko(t),e-=v;for(var i=kn(r,t);++n<e;)t(n);return i}function Rf(e){return Kl(e)?un(e,gs):Cu(e)?[e]:Wa(hs(Lu(e)))}function zf(e){var t=++tt;return Lu(e)+t}var Bf=Y(function(e,t){return e+t},0),Vf=po(`ceil`),Hf=Y(function(e,t){return e/t},1),Uf=po(`floor`);function Wf(e){return e&&e.length?fi(e,hf,wi):n}function Gf(e,t){return e&&e.length?fi(e,ko(t,2),wi):n}function Kf(e){return Cn(e,hf)}function qf(e,t){return Cn(e,ko(t,2))}function Jf(e){return e&&e.length?fi(e,hf,Gi):n}function Yf(e,t){return e&&e.length?fi(e,ko(t,2),Gi):n}var Xf=Y(function(e,t){return e*t},1),Zf=po(`round`),Qf=Y(function(e,t){return e-t},0);function $f(e){return e&&e.length?On(e,hf):0}function ep(e,t){return e&&e.length?On(e,ko(t,2)):0}return q.after=ml,q.ary=hl,q.assign=Ru,q.assignIn=zu,q.assignInWith=Bu,q.assignWith=Vu,q.at=Hu,q.before=gl,q.bind=_l,q.bindAll=cf,q.bindKey=vl,q.castArray=Ll,q.chain=Ac,q.chunk=bs,q.compact=xs,q.concat=Ss,q.cond=lf,q.conforms=uf,q.constant=df,q.countBy=Vc,q.create=Uu,q.curry=yl,q.curryRight=bl,q.debounce=xl,q.defaults=Wu,q.defaultsDeep=Gu,q.defer=Sl,q.delay=Cl,q.difference=Cs,q.differenceBy=ws,q.differenceWith=Ts,q.drop=Es,q.dropRight=Ds,q.dropRightWhile=Os,q.dropWhile=ks,q.fill=As,q.filter=Uc,q.flatMap=Kc,q.flatMapDeep=qc,q.flatMapDepth=Jc,q.flatten=Ns,q.flattenDeep=Ps,q.flattenDepth=Fs,q.flip=wl,q.flow=pf,q.flowRight=mf,q.fromPairs=Is,q.functions=Qu,q.functionsIn=$u,q.groupBy=Zc,q.initial=zs,q.intersection=Bs,q.intersectionBy=Vs,q.intersectionWith=Hs,q.invert=rd,q.invertBy=id,q.invokeMap=$c,q.iteratee=gf,q.keyBy=el,q.keys=od,q.keysIn=sd,q.map=tl,q.mapKeys=cd,q.mapValues=ld,q.matches=_f,q.matchesProperty=vf,q.memoize=Tl,q.merge=ud,q.mergeWith=dd,q.method=yf,q.methodOf=bf,q.mixin=xf,q.negate=El,q.nthArg=wf,q.omit=fd,q.omitBy=pd,q.once=Dl,q.orderBy=nl,q.over=Tf,q.overArgs=Ol,q.overEvery=Ef,q.overSome=Df,q.partial=kl,q.partialRight=Al,q.partition=rl,q.pick=md,q.pickBy=hd,q.property=Of,q.propertyOf=kf,q.pull=qs,q.pullAll=Js,q.pullAllBy=Ys,q.pullAllWith=Xs,q.pullAt=Zs,q.range=Af,q.rangeRight=jf,q.rearg=jl,q.reject=ol,q.remove=Qs,q.rest=Ml,q.reverse=$s,q.sampleSize=cl,q.set=_d,q.setWith=vd,q.shuffle=ll,q.slice=ec,q.sortBy=fl,q.sortedUniq=sc,q.sortedUniqBy=cc,q.split=Kd,q.spread=Nl,q.tail=lc,q.take=uc,q.takeRight=dc,q.takeRightWhile=fc,q.takeWhile=pc,q.tap=jc,q.throttle=Pl,q.thru=Mc,q.toArray=Au,q.toPairs=yd,q.toPairsIn=bd,q.toPath=Rf,q.toPlainObject=Fu,q.transform=xd,q.unary=Fl,q.union=mc,q.unionBy=hc,q.unionWith=gc,q.uniq=_c,q.uniqBy=vc,q.uniqWith=yc,q.unset=Sd,q.unzip=bc,q.unzipWith=xc,q.update=Cd,q.updateWith=wd,q.values=Td,q.valuesIn=Ed,q.without=Sc,q.words=of,q.wrap=Il,q.xor=Cc,q.xorBy=wc,q.xorWith=Tc,q.zip=Ec,q.zipObject=Dc,q.zipObjectDeep=Oc,q.zipWith=kc,q.entries=yd,q.entriesIn=bd,q.extend=zu,q.extendWith=Bu,xf(q,q),q.add=Bf,q.attempt=sf,q.camelCase=Ad,q.capitalize=jd,q.ceil=Vf,q.clamp=Dd,q.clone=Rl,q.cloneDeep=X,q.cloneDeepWith=Bl,q.cloneWith=zl,q.conformsTo=Vl,q.deburr=Md,q.defaultTo=ff,q.divide=Hf,q.endsWith=Nd,q.eq=Hl,q.escape=Pd,q.escapeRegExp=Fd,q.every=Hc,q.find=Wc,q.findIndex=js,q.findKey=Ku,q.findLast=Gc,q.findLastIndex=Ms,q.findLastKey=qu,q.floor=Uf,q.forEach=Yc,q.forEachRight=Xc,q.forIn=Ju,q.forInRight=Yu,q.forOwn=Xu,q.forOwnRight=Zu,q.get=ed,q.gt=Ul,q.gte=Wl,q.has=td,q.hasIn=nd,q.head=Ls,q.identity=hf,q.includes=Qc,q.indexOf=Rs,q.inRange=Od,q.invoke=ad,q.isArguments=Gl,q.isArray=Kl,q.isArrayBuffer=ql,q.isArrayLike=Jl,q.isArrayLikeObject=Yl,q.isBoolean=Xl,q.isBuffer=Zl,q.isDate=Ql,q.isElement=$l,q.isEmpty=eu,q.isEqual=tu,q.isEqualWith=nu,q.isError=ru,q.isFinite=iu,q.isFunction=au,q.isInteger=ou,q.isLength=su,q.isMap=uu,q.isMatch=du,q.isMatchWith=fu,q.isNaN=pu,q.isNative=mu,q.isNil=gu,q.isNull=hu,q.isNumber=_u,q.isObject=cu,q.isObjectLike=lu,q.isPlainObject=vu,q.isRegExp=yu,q.isSafeInteger=bu,q.isSet=xu,q.isString=Su,q.isSymbol=Cu,q.isTypedArray=wu,q.isUndefined=Tu,q.isWeakMap=Eu,q.isWeakSet=Du,q.join=Us,q.kebabCase=Id,q.last=Ws,q.lastIndexOf=Gs,q.lowerCase=Ld,q.lowerFirst=Rd,q.lt=Ou,q.lte=ku,q.max=Wf,q.maxBy=Gf,q.mean=Kf,q.meanBy=qf,q.min=Jf,q.minBy=Yf,q.stubArray=Mf,q.stubFalse=Nf,q.stubObject=Pf,q.stubString=Ff,q.stubTrue=If,q.multiply=Xf,q.nth=Ks,q.noConflict=Sf,q.noop=Cf,q.now=pl,q.pad=zd,q.padEnd=Bd,q.padStart=Vd,q.parseInt=Hd,q.random=kd,q.reduce=il,q.reduceRight=al,q.repeat=Ud,q.replace=Wd,q.result=gd,q.round=Zf,q.runInContext=e,q.sample=sl,q.size=ul,q.snakeCase=Gd,q.some=dl,q.sortedIndex=tc,q.sortedIndexBy=nc,q.sortedIndexOf=rc,q.sortedLastIndex=ic,q.sortedLastIndexBy=ac,q.sortedLastIndexOf=oc,q.startCase=qd,q.startsWith=Jd,q.subtract=Qf,q.sum=$f,q.sumBy=ep,q.template=Yd,q.times=Lf,q.toFinite=ju,q.toInteger=Mu,q.toLength=Nu,q.toLower=Xd,q.toNumber=Pu,q.toSafeInteger=Iu,q.toString=Lu,q.toUpper=Zd,q.trim=Qd,q.trimEnd=$d,q.trimStart=ef,q.truncate=tf,q.unescape=nf,q.uniqueId=zf,q.upperCase=rf,q.upperFirst=af,q.each=Yc,q.eachRight=Xc,q.first=Ls,xf(q,function(){var e={};return vi(q,function(t,n){et.call(q.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),q.VERSION=`4.18.1`,rn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){q[e].placeholder=q}),rn([`drop`,`take`],function(e,t){mr.prototype[e]=function(r){r=r===n?1:At(Mu(r),0);var i=this.__filtered__&&!t?new mr(this):this.clone();return i.__filtered__?i.__takeCount__=Ft(r,i.__takeCount__):i.__views__.push({size:Ft(r,v),type:e+(i.__dir__<0?`Right`:``)}),i},mr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),rn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),rn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);mr.prototype[e]=function(){return this[n](1).value()[0]}}),rn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(hf)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=sa(function(e,t){return typeof e==`function`?new mr(this):this.map(function(n){return Ai(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(El(ko(e)))},mr.prototype.slice=function(e,t){e=Mu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new mr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Mu(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(v)},vi(mr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=q[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(q.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof mr,l=s[0],u=c||Kl(t),d=function(e){var t=a.apply(q,dn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new mr(this);var g=e.apply(t,s);return g.__actions__.push({func:Mc,args:[d],thisArg:n}),new pr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),rn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Xe[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Kl(i)?i:[],e)}return this[n](function(n){return t.apply(Kl(n)?n:[],e)})}}),vi(mr.prototype,function(e,t){var n=q[t];if(n){var r=n.name+``;et.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}}),Tn[io(n,s).name]=[{name:`wrapper`,func:n}],mr.prototype.clone=hr,mr.prototype.reverse=gr,mr.prototype.value=_r,q.prototype.at=Nc,q.prototype.chain=Pc,q.prototype.commit=Fc,q.prototype.next=Ic,q.prototype.plant=Rc,q.prototype.reverse=zc,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=Bc,q.prototype.first=q.prototype.head,ht&&(q.prototype[ht]=Lc),q})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Ut._=ar,define(function(){return ar})):Gt?((Gt.exports=ar)._=ar,Wt._=ar):Ut._=ar}).call(e)})),_=[],v=0;v<256;++v)_.push((v+256).toString(16).slice(1));function y(e,t=0){return(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+`-`+_[e[t+4]]+_[e[t+5]]+`-`+_[e[t+6]]+_[e[t+7]]+`-`+_[e[t+8]]+_[e[t+9]]+`-`+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase()}var b,x=new Uint8Array(16);function S(){if(!b&&(b=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!b))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return b(x)}var C={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function w(e,t,n){if(C.randomUUID&&!t&&!e)return C.randomUUID();e||={};var r=e.random||(e.rng||S)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return y(r)}var T=e(c()),E=g(),D=function(e,t){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},D(e,t)};function O(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);D(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var k=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),A=new(function(){function e(){this.browser=new k,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 e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(A.wxa=!0,A.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?A.worker=!0:!A.hasGlobalWindow||`Deno`in window?(A.node=!0,A.svgSupported=!0):j(navigator.userAgent,A);function j(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var ee=`12px sans-serif`,te=20,ne=100,re=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ie(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-te)/ne}return t}var ae=ie(re),oe={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=oe.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=ae[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},se=Ee([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ce=Ee([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),le=Object.prototype.toString,ue=Array.prototype,de=ue.forEach,fe=ue.filter,pe=ue.slice,me=ue.map,he=function(){}.constructor,ge=he?he.prototype:null,_e=`__proto__`,ve=2311;function ye(){return ve++}function be(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function M(e){if(typeof e!=`object`||!e)return e;var t=e,n=le.call(e);if(n===`[object Array]`){if(!Je(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(ce[n]){if(!Je(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!se[n]&&!Je(e)&&!Fe(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==_e&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!U(t)||!U(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==_e){var i=e[r],a=t[r];U(a)&&U(i)&&!B(a)&&!B(i)&&!Fe(a)&&!Fe(i)&&!Ne(a)&&!Ne(i)&&!Je(a)&&!Je(i)?N(i,a,n):(n||!(r in e))&&(e[r]=M(t[r]))}return e}function xe(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=N(n,e[r],t);return n}function P(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==_e&&(e[n]=t[n]);return e}function F(e,t,n){for(var r=ke(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}oe.createCanvas;function Se(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Ce(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function we(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else F(e,t,n)}function Te(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function I(e,t,n){if(e&&t)if(e.forEach&&e.forEach===de)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function L(e,t,n){if(!e)return[];if(!t)return He(e);if(e.map&&e.map===me)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Ee(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function De(e,t,n){if(!e)return[];if(!t)return He(e);if(e.filter&&e.filter===fe)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Oe(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function ke(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Ae(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(pe.call(arguments)))}}var R=ge&&V(ge.bind)?ge.call.bind(ge.bind):Ae;function z(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(pe.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):le.call(e)===`[object Array]`}function V(e){return typeof e==`function`}function H(e){return typeof e==`string`}function je(e){return le.call(e)===`[object String]`}function Me(e){return typeof e==`number`}function U(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function Ne(e){return!!se[le.call(e)]}function Pe(e){return!!ce[le.call(e)]}function Fe(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Ie(e){return e.colorStops!=null}function Le(e){return e.image!=null}function Re(e){return le.call(e)===`[object RegExp]`}function ze(e){return e!==e}function Be(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function W(e,t){return e??t}function Ve(e,t,n){return e??t??n}function He(e){var t=[...arguments].slice(1);return pe.apply(e,t)}function Ue(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function We(e,t){if(!e)throw Error(t)}function Ge(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Ke=`__ec_primitive__`;function qe(e){e[Ke]=!0}function Je(e){return e[Ke]}var Ye=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return ke(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Xe=typeof Map==`function`;function Ze(){return Xe?new Map:new Ye}var Qe=function(){function e(t){var n=B(t);this.data=Ze();var r=this;t instanceof e?t.each(i):t&&I(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Xe?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function G(e){return new Qe(e)}function $e(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function et(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&P(n,t),n}function tt(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function K(e,t){return e.hasOwnProperty(t)}function nt(){}var rt=180/Math.PI,it=function(e,t){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},it(e,t)};function at(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);it(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ot(e,t){return e??=0,t??=0,[e,t]}function st(e,t){return e[0]=t[0],e[1]=t[1],e}function ct(e){return[e[0],e[1]]}function lt(e,t,n){return e[0]=t,e[1]=n,e}function ut(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function dt(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function ft(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function pt(e){return Math.sqrt(mt(e))}function mt(e){return e[0]*e[0]+e[1]*e[1]}function ht(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function gt(e,t){var n=pt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function _t(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var vt=_t;function yt(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var bt=yt;function xt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function St(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ct(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function wt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Tt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Et=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Tt(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Tt(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Tt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Tt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Tt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Tt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Dt=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Ot=Math.log(2);function kt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Ot);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*kt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function At(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=kt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*kt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var jt=`___zrEVENTSAVED`,Mt=[];function Nt(e,t,n,r,i){return Pt(Mt,t,r,i,!0)&&Pt(e,n,Mt[0],Mt[1])}function Pt(e,t,n,r,i){if(t.getBoundingClientRect&&A.domSupported&&!Lt(t)){var a=t[jt]||(t[jt]={}),o=It(Ft(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Ft(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function It(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?At(s,o):At(o,s))}function Lt(e){return e.nodeName.toUpperCase()===`CANVAS`}var Rt=/([&<>"'])/g,zt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function Bt(e){return e==null?``:(e+``).replace(Rt,function(e,t){return zt[t]})}var Vt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ht=[],Ut=A.browser.firefox&&+A.browser.version.split(`.`)[0]<39;function Wt(e,t,n,r){return n||={},r?Gt(e,t,n):Ut&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Gt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Gt(e,t,n){if(A.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Lt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(Pt(Ht,e,r,i)){n.zrX=Ht[0],n.zrY=Ht[1];return}}n.zrX=n.zrY=0}function Kt(e){return e||window.event}function qt(e,t,n){if(t=Kt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Wt(e,i,t,n)}else{Wt(e,t,t,n);var a=Jt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Vt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Jt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Yt(e,t,n,r){e.addEventListener(t,n,r)}function Xt(e,t,n,r){e.removeEventListener(t,n,r)}var Zt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Qt(e){return e.which===2||e.which===3}var $t=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Wt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in nn)if(nn.hasOwnProperty(t)){var n=nn[t](this._track,e);if(n)return n}},e}();function en(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function tn(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var nn={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=en(r)/en(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=tn(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function rn(){return[1,0,0,1,0,0]}function an(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function on(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function sn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function cn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function ln(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function un(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function dn(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function fn(e){var t=rn();return on(t,e),t}var pn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),mn=Math.min,hn=Math.max,gn=new pn,_n=new pn,vn=new pn,yn=new pn,bn=new pn,xn=new pn,Sn=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=mn(e.x,this.x),n=mn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hn(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=hn(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=rn();return cn(i,i,[-t.x,-t.y]),un(i,i,[n,r]),cn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?pn.set(xn,-h,0):pn.set(xn,g,0)):y<p&&(p=y,h<g?pn.set(bn,h,0):pn.set(bn,-g,0)),s<u||d<o?b>m&&(m=b,_<v?pn.set(xn,0,-_):pn.set(xn,0,v)):y<p&&(p=y,_<v?pn.set(bn,0,_):pn.set(bn,0,-v))}return n&&pn.copy(n,f?bn:xn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}gn.x=vn.x=n.x,gn.y=yn.y=n.y,_n.x=yn.x=n.x+n.width,_n.y=vn.y=n.y+n.height,gn.transform(r),yn.transform(r),_n.transform(r),vn.transform(r),t.x=mn(gn.x,_n.x,vn.x,yn.x),t.y=mn(gn.y,_n.y,vn.y,yn.y);var c=hn(gn.x,_n.x,vn.x,yn.x),l=hn(gn.y,_n.y,vn.y,yn.y);t.width=c-t.x,t.height=l-t.y},e}(),Cn=`silent`;function wn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Tn}}function Tn(){Zt(this.event)}var En=function(e){at(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Dt),Dn=function(){function e(e,t){this.x=e,this.y=t}return e}(),On=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],kn=new Sn(0,0,0,0),An=function(e){at(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Dn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new En,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Et(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(On,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Nn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Dn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Dn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=wn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Dn(e,t);if(Mn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Sn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(kn.copy(u.getBoundingRect()),u.transform&&kn.applyTransform(u.transform),kn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Mn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new $t;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Dn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Dt);I([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){An.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Nn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||vt(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function jn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0),r=r.__hostTarget||r.parent}return!i||Cn}return!1}function Mn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=jn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Cn)){t.target=o;break}}}function Nn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Pn=32,Fn=7;function In(e){for(var t=0;e>=Pn;)t|=e&1,e>>=1;return e+t}function Ln(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Rn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Rn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function zn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Bn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Vn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Hn(e,t){var n=Fn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Vn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Bn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Vn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Bn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Fn||m>=Fn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Vn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Bn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Fn||g>=Fn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Un(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Pn){a=Ln(e,n,r,t),zn(e,n,r,n+a,t);return}var o=Hn(e,t),s=In(i);do{if(a=Ln(e,n,r,t),a<s){var c=i;c>s&&(c=s),zn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Wn=!1;function Gn(){Wn||(Wn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Kn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Kn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Un(n,Kn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(Gn(),l.z=0),isNaN(l.z2)&&(Gn(),l.z2=0),isNaN(l.zlevel)&&(Gn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=Se(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Jn=A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Yn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Yn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Yn.bounceIn(e*2)*.5:Yn.bounceOut(e*2-1)*.5+.5}},Xn=Math.pow,Zn=Math.sqrt,Qn=1e-8,$n=1e-4,er=Zn(3),tr=1/3,nr=ot(),rr=ot(),ir=ot();function ar(e){return e>-Qn&&e<Qn}function or(e){return e>Qn||e<-Qn}function sr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function cr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function lr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(ar(u)&&ar(d))if(ar(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(ar(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Xn(-y,tr):Xn(y,tr),b=b<0?-Xn(-b,tr):Xn(b,tr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Zn(u*u*u)),S=Math.acos(x)/3,C=Zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+er*Math.sin(S)))/(3*o),T=(-s+C*(w-er*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function ur(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(ar(o)){if(or(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ar(u))i[0]=-a/(2*o);else if(u>0){var d=Zn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function q(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function dr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;nr[0]=c,nr[1]=l;for(var v=0;v<1;v+=.05)rr[0]=sr(e,n,i,o,v),rr[1]=sr(t,r,a,s,v),g=bt(nr,rr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<$n);y++)m=d-f,h=d+f,rr[0]=sr(e,n,i,o,m),rr[1]=sr(t,r,a,s,m),g=bt(rr,nr),m>=0&&g<p?(d=m,p=g):(ir[0]=sr(e,n,i,o,h),ir[1]=sr(t,r,a,s,h),_=bt(ir,nr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=sr(e,n,i,o,d),u[1]=sr(t,r,a,s,d)),Zn(p)}function fr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=sr(e,n,i,o,m),g=sr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function pr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function mr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function hr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ar(a)){if(or(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ar(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Zn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function gr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function _r(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function vr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;nr[0]=o,nr[1]=s;for(var f=0;f<1;f+=.05){rr[0]=pr(e,n,i,f),rr[1]=pr(t,r,a,f);var p=bt(nr,rr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<$n);m++){var h=l-u,g=l+u;rr[0]=pr(e,n,i,h),rr[1]=pr(t,r,a,h);var p=bt(rr,nr);if(h>=0&&p<d)l=h,d=p;else{ir[0]=pr(e,n,i,g),ir[1]=pr(t,r,a,g);var _=bt(ir,nr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=pr(e,n,i,l),c[1]=pr(t,r,a,l)),Zn(d)}function yr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=pr(e,n,i,f),m=pr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var br=/cubic-bezier\(([0-9,\.e ]+)\)/;function xr(e){var t=e&&br.exec(e);if(t){var n=t[1].split(`,`),r=+Ge(n[0]),i=+Ge(n[1]),a=+Ge(n[2]),o=+Ge(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:lr(0,r,a,1,e,s)&&sr(0,i,o,1,s[0])}}}var Sr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nt,this.ondestroy=e.ondestroy||nt,this.onrestart=e.onrestart||nt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:Yn[e]||xr(e)},e}(),Cr=function(){function e(e){this.value=e}return e}(),wr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Cr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Tr=function(){function e(e){this._list=new wr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Cr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.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},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Er={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 Dr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Or(e){return e=Math.round(e),e<0?0:e>360?360:e}function kr(e){return e<0?0:e>1?1:e}function Ar(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Dr(parseFloat(t)/100*255):Dr(parseInt(t,10))}function jr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?kr(parseFloat(t)/100):kr(parseFloat(t))}function Mr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Nr(e,t,n){return e+(t-e)*n}function Pr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Fr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ir=new Tr(20),Lr=null;function Rr(e,t){Lr&&Fr(Lr,t),Lr=Ir.put(e,Lr||t.slice())}function zr(e,t){if(e){t||=[];var n=Ir.get(e);if(n)return Fr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Er)return Fr(t,Er[r]),Rr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Pr(t,0,0,0,1);return}return Pr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Rr(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pr(t,0,0,0,1);return}return Pr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Rr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Pr(t,+l[0],+l[1],+l[2],1):Pr(t,0,0,0,1);u=jr(l.pop());case`rgb`:if(l.length>=3)return Pr(t,Ar(l[0]),Ar(l[1]),Ar(l[2]),l.length===3?u:jr(l[3])),Rr(e,t),t;Pr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Pr(t,0,0,0,1);return}return l[3]=jr(l[3]),Br(l,t),Rr(e,t),t;case`hsl`:if(l.length!==3){Pr(t,0,0,0,1);return}return Br(l,t),Rr(e,t),t;default:return}}Pr(t,0,0,0,1)}}function Br(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jr(e[1]),i=jr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Pr(t,Dr(Mr(o,a,n+1/3)*255),Dr(Mr(o,a,n)*255),Dr(Mr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Hr(e,t){var n=zr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return qr(n,n.length===4?`rgba`:`rgb`)}}function Ur(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Dr(Nr(o[0],s[0],c)),n[1]=Dr(Nr(o[1],s[1],c)),n[2]=Dr(Nr(o[2],s[2],c)),n[3]=kr(Nr(o[3],s[3],c)),n}}function Wr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=zr(t[i]),s=zr(t[a]),c=r-i,l=qr([Dr(Nr(o[0],s[0],c)),Dr(Nr(o[1],s[1],c)),Dr(Nr(o[2],s[2],c)),kr(Nr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Gr(e,t,n,r){var i=zr(e);if(e)return i=Vr(i),t!=null&&(i[0]=Or(t)),n!=null&&(i[1]=jr(n)),r!=null&&(i[2]=jr(r)),qr(Br(i),`rgba`)}function Kr(e,t){var n=zr(e);if(n&&t!=null)return n[3]=kr(t),qr(n,`rgba`)}function qr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Jr(e,t){var n=zr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Yr=new Tr(100);function Xr(e){if(H(e)){var t=Yr.get(e);return t||(t=Hr(e,-.1),Yr.put(e,t)),t}else if(Ie(e)){var n=P({},e);return n.colorStops=L(e.colorStops,function(e){return{offset:e.offset,color:Hr(e.color,-.1)}}),n}return e}var Zr=Math.round;function Qr(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=zr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var $r=1e-4;function ei(e){return e<$r&&e>-$r}function ti(e){return Zr(e*1e3)/1e3}function ni(e){return Zr(e*1e4)/1e4}function ri(e){return`matrix(`+ti(e[0])+`,`+ti(e[1])+`,`+ti(e[2])+`,`+ti(e[3])+`,`+ni(e[4])+`,`+ni(e[5])+`)`}var ii={left:`start`,right:`end`,center:`middle`,middle:`middle`};function ai(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function oi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function si(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function ci(e){return e&&!!e.image}function li(e){return e&&!!e.svgElement}function ui(e){return ci(e)||li(e)}function di(e){return e.type===`linear`}function fi(e){return e.type===`radial`}function pi(e){return e&&(e.type===`linear`||e.type===`radial`)}function mi(e){return`url(#`+e+`)`}function hi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function gi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*rt,i=W(e.scaleX,1),a=W(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Zr(o*rt)+`deg, `+Zr(s*rt)+`deg)`),c.join(` `)}var _i=(function(){return A.hasGlobalWindow&&V(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})(),vi=Array.prototype.slice;function yi(e,t,n){return(t-e)*n+e}function bi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=yi(t[a],n[a],r);return e}function xi(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=yi(t[o][s],n[o][s],r)}return e}function Si(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Ci(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function wi(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Ti(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:vi.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Ei(e){if(Te(e)){var t=e.length;if(Te(e[0])){for(var n=[],r=0;r<t;r++)n.push(vi.call(e[r]));return n}return vi.call(e)}return e}function Di(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Oi(e){return Te(e&&e[0])?2:1}var ki=0,Ai=1,ji=2,Mi=3,Ni=4,Pi=5,Fi=6;function Ii(e){return e===Ni||e===Pi}function Li(e){return e===Ai||e===ji}var Ri=[0,0,0,0],zi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Fi,s=t;if(Te(t)){var c=Oi(t);o=c,(c===1&&!Me(t[0])||c===2&&!Me(t[0][0]))&&(a=!0)}else if(Me(t)&&!ze(t))o=ki;else if(H(t))if(!isNaN(+t))o=ki;else{var l=zr(t);l&&(s=l,o=Mi)}else if(Ie(t)){var u=P({},s);u.colorStops=L(t.colorStops,function(e){return{offset:e.offset,color:zr(e.color)}}),di(t)?o=Ni:fi(t)&&(o=Pi),s=u}i===0?this.valType=o:(o!==this.valType||o===Fi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:Yn[n]||xr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Li(r),c=Ii(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Ti(d,f,r):c&&wi(d.colorStops,f.colorStops))}if(!o&&r!==Pi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ki?n[l].additiveValue=n[l].value-p:r===Mi?n[l].additiveValue=Si([],n[l].value,p,-1):Li(r)&&(n[l].additiveValue=r===Ai?Si([],n[l].value,p,-1):Ci([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Mi,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ri:e[s];if((Li(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Li(i))i===Ai?bi(g,f[r],p[r],h):xi(g,f[r],p[r],h);else if(Ii(i)){var _=f[r],v=p[r],y=i===Ni;e[s]={type:y?`linear`:`radial`,x:yi(_.x,v.x,h),y:yi(_.y,v.y,h),colorStops:L(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:yi(e.offset,n.offset,h),color:Di(bi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=yi(_.x2,v.x2,h),e[s].y2=yi(_.y2,v.y2,h)):e[s].r=yi(_.r,v.r,h)}else if(c)bi(g,f[r],p[r],h),n||(e[s]=Di(g));else{var b=yi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ki?e[n]=e[n]+r:t===Mi?(zr(e[n],Ri),Si(Ri,Ri,r,1),e[n]=Di(Ri)):t===Ai?Si(e[n],e[n],r,1):t===ji&&Ci(e[n],e[n],r,1)},e}(),Bi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){be(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ke(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new zi(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Mi&&c&&(c=Di(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Ei(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ei(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new Sr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return L(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Ei(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=ke(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Vi(){return new Date().getTime()}var Hi=function(e){at(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Vi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Jn(t),!e._paused&&e.update())}Jn(t)},t.prototype.start=function(){this._running||(this._time=Vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Vi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Vi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Bi(e,t.loop);return this.addAnimator(n),n},t}(Dt),Ui=300,Wi=A.domSupported,Gi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:L(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ki={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},qi=!1;function Ji(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Yi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Xi(e){e&&(e.zrByTouch=!0)}function Zi(e,t){return qt(e.dom,new $i(e,t),!0)}function Qi(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var $i=function(){function e(e,t){this.stopPropagation=nt,this.stopImmediatePropagation=nt,this.preventDefault=nt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),ea={mousedown:function(e){e=qt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=qt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=qt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=qt(this.dom,e);var t=e.toElement||e.relatedTarget;Qi(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){qi=!0,e=qt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){qi||(e=qt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=qt(this.dom,e),Xi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),ea.mousemove.call(this,e),ea.mousedown.call(this,e)},touchmove:function(e){e=qt(this.dom,e),Xi(e),this.handler.processGesture(e,`change`),ea.mousemove.call(this,e)},touchend:function(e){e=qt(this.dom,e),Xi(e),this.handler.processGesture(e,`end`),ea.mouseup.call(this,e),new Date-+this.__lastTouchMoment<Ui&&ea.click.call(this,e)},pointerdown:function(e){ea.mousedown.call(this,e)},pointermove:function(e){Ji(e)||ea.mousemove.call(this,e)},pointerup:function(e){ea.mouseup.call(this,e)},pointerout:function(e){Ji(e)||ea.mouseout.call(this,e)}};I([`click`,`dblclick`,`contextmenu`],function(e){ea[e]=function(t){t=qt(this.dom,t),this.trigger(e,t)}});var ta={pointermove:function(e){Ji(e)||ta.mousemove.call(this,e)},pointerup:function(e){ta.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function na(e,t){var n=t.domHandlers;A.pointerEventsSupported?I(Gi.pointer,function(r){ia(t,r,function(t){n[r].call(e,t)})}):(A.touchEventsSupported&&I(Gi.touch,function(r){ia(t,r,function(i){n[r].call(e,i),Yi(t)})}),I(Gi.mouse,function(r){ia(t,r,function(i){i=Kt(i),t.touching||n[r].call(e,i)})}))}function ra(e,t){A.pointerEventsSupported?I(Ki.pointer,n):A.touchEventsSupported||I(Ki.mouse,n);function n(n){function r(r){r=Kt(r),Qi(e,r.target)||(r=Zi(e,r),t.domHandlers[n].call(e,r))}ia(t,n,r,{capture:!0})}}function ia(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Yt(e.domTarget,t,n,r)}function aa(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Xt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var oa=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),sa=function(e){at(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new oa(t,ea),Wi&&(r._globalHandlerScope=new oa(document,ta)),na(r,r._localHandlerScope),r}return t.prototype.dispose=function(){aa(this._localHandlerScope),Wi&&aa(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Wi&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?ra(this,t):aa(t)}},t}(Dt),ca=1;A.hasGlobalWindow&&(ca=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var la=ca,ua=.4,da=`#333`,fa=`#ccc`,pa=`#eee`,ma=an,ha=5e-5;function ga(e){return e>ha||e<-ha}var _a=[],va=[],ya=rn(),ba=Math.abs,xa=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ga(this.rotation)||ga(this.x)||ga(this.y)||ga(this.scaleX-1)||ga(this.scaleY-1)||ga(this.skewX)||ga(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ma(n),this.invTransform=null);return}n||=rn(),t?this.getLocalTransform(n):ma(n),e&&(t?sn(n,e,n):on(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(_a);var n=_a[0]<0?-1:1,r=_a[1]<0?-1:1,i=((_a[0]-n)*t+n)/_a[0]||0,a=((_a[1]-r)*t+r)/_a[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||rn(),dn(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-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=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||rn(),sn(va,e.invTransform,t),t=va);var n=this.originX,r=this.originY;(n||r)&&(ya[4]=n,ya[5]=r,sn(va,t,ya),va[4]-=n,va[5]-=r,t=va),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&St(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&St(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ba(e[0]-1)>1e-10&&ba(e[3]-1)>1e-10?Math.sqrt(ba(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Ca(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&ln(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Sa=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Ca(e,t){for(var n=0;n<Sa.length;n++){var r=Sa[n];e[r]=t[r]}}var wa={};function Ta(e,t){t||=`12px sans-serif`;var n=wa[t];n||=wa[t]=new Tr(500);var r=n.get(e);return r??(r=oe.measureText(e,t).width,n.put(e,r)),r}function Ea(e,t,n,r){var i=Ta(e,t),a=Aa(t);return new Sn(Oa(0,i,n),ka(0,a,r),i,a)}function Da(e,t,n,r){var i=((e||``)+``).split(`
21
+ `);if(i.length===1)return Ea(i[0],t,n,r);for(var a=new Sn(0,0,0,0),o=0;o<i.length;o++){var s=Ea(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Oa(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function ka(e,t,n){return n===`middle`?e-=t/2:n===`bottom`&&(e-=t),e}function Aa(e){return Ta(`国`,e)}function ja(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ma(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=ja(r[0],n.width),l+=ja(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Na=`__zr_normal__`,Pa=Sa.concat([`ignore`]),Fa=Ee(Sa,function(e,t){return e[t]=!0,e},{ignore:!1}),Ia={},La=new Sn(0,0,0,0),Ra=function(){function e(e){this.id=ye(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(t),n.position!=null){var l=La;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ia,n,l):Ma(Ia,n,l),i.x=Ia.x,i.y=Ia.y,a=Ia.align,o=Ia.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var d=void 0,f=void 0;u===`center`?(d=l.width*.5,f=l.height*.5):(d=ja(u[0],l.width),f=ja(u[1],l.height)),c=!0,i.originX=-i.x+d+(r?0:l.x),i.originY=-i.y+f+(r?0:l.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],c||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,h=this._innerTextDefaultStyle||={},g=void 0,_=void 0,v=void 0;m&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g===`auto`)&&(g=this.getInsideTextFill()),(_==null||_===`auto`)&&(_=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g===`auto`)&&(g=this.getOutsideFill()),(_==null||_===`auto`)&&(_=this.getOutsideStroke(g),v=!0)),g||=`#000`,(g!==h.fill||_!==h.stroke||v!==h.autoStroke||a!==h.align||o!==h.verticalAlign)&&(s=!0,h.fill=g,h.stroke=_,h.autoStroke=v,h.align=a,h.verticalAlign=o,t.setDefaultTextStyle(h)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?fa:da},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&zr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,qr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},P(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=ke(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Pa)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Na,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Na;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(Se(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){be(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.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&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Se(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Se(r,e),a=Se(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];P(t,i),i.textConfig&&(n||={},P(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=P({},r?this.textConfig:n.textConfig),P(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Pa.length;l++){var u=Pa[l],d=i&&Fa[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.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}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new xa,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},P(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new Bi(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=Se(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){za(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){za(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=za(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();we(Ra,Dt),we(Ra,xa);function za(e,t,n,r,i){n||={};var a=[];Ga(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ba(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Va(e){return Te(e[0])}function Ha(e,t,n){if(Te(t[n]))if(Te(e[n])||(e[n]=[]),Pe(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ba(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Va(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ba(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ba(a,i,o);a.length=i.length}else e[n]=t[n]}function Ua(e,t){return e===t||Te(e)&&Te(t)&&Wa(e,t)}function Wa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ga(e,t,n,r,i,a,o,s){for(var c=ke(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!U(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(U(v)&&!Te(v)&&!Ie(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Ga(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=Se(m,x);m.splice(S,1)}}if(i.force||(h=De(h,function(e){return!Ua(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Ei(n[_]),Ha(n,r,_)}}var x=new Bi(n,!1,!1,d?De(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var J=function(e){at(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Se(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=Se(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Sn(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Sn.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Ra);J.prototype.type=`group`;var Ka={},qa={};function Ja(e){delete qa[e]}function Ya(e){if(!e)return!1;if(typeof e==`string`)return Jr(e,1)<ua;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Jr(t[i].color,1);return n/=r,n<ua}return!1}var Xa=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new qn,a=n.renderer||`canvas`;Ka[a]||(a=ke(Ka)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ka[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!A.node&&!A.worker&&!s?new sa(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?A.touchEventsSupported:!!l,d=44,f;u&&(f=W(n.pointerSize,d)),this.handler=new An(i,o,c,o.root,f),this.animation=new Hi({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Ya(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Vi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Vi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof J&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ja(this.id))},e}();function Za(e,t){var n=new Xa(ye(),e,t);return qa[n.id]=n,n}function Qa(e,t){Ka[e]=t}var $a;function eo(e){if(typeof $a==`function`)return $a(e)}function to(e){$a=e}var no=1e-4,ro=20;function io(e){return e.replace(/^\s+|\s+$/g,``)}function ao(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function Y(e,t){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return H(e)?io(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function oo(e,t,n){return t??=10,t=Math.min(Math.max(0,t),ro),e=(+e).toFixed(t),n?e:+e}function so(e){return e.sort(function(e,t){return e-t}),e}function co(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return lo(e)}function lo(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function uo(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function fo(e,t){var n=Ee(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=L(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=L(i,function(e){return Math.floor(e)}),s=Ee(o,function(e,t){return e+t},0),c=L(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return L(o,function(e){return e/r})}function po(e,t){var n=Math.max(co(e),co(t)),r=e+t;return n>ro?r:oo(r,n)}function mo(e){var t=Math.PI*2;return(e%t+t)%t}function ho(e){return e>-no&&e<no}var go=/^(?:(\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 _o(e){if(e instanceof Date)return e;if(H(e)){var t=go.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function vo(e){return 10**yo(e)}function yo(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function bo(e,t){var n=yo(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function xo(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function So(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Co(e){var t=parseFloat(e);return t==e&&(t!==0||!H(e)||e.indexOf(`x`)<=0)?t:NaN}function wo(e){return!isNaN(Co(e))}function To(){return Math.round(Math.random()*9)}function Eo(e,t){return t===0?e:Eo(t,e%t)}function Do(e,t){return e==null?t:t==null?e:e*t/Eo(e,t)}function Oo(e){throw Error(e)}function ko(e,t,n){return(t-e)*n+e}var Ao=`series\0`,jo=`\0_ec_\0`;function Mo(e){return e instanceof Array?e:e==null?[]:[e]}function No(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Po=`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`.split(`.`);function Fo(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function Io(e){return U(e)&&!(e instanceof Array)}function Lo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=G();I(t,function(e,n){if(!U(e)){t[n]=null;return}});var s=Ro(e,o,n);return(r||i)&&zo(s,e,o,t),r&&Bo(s,t),r||i?Vo(s,t,i):a&&Ho(s,t),Uo(s),s}function Ro(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Jo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function zo(e,t,n,r){I(r,function(i,a){if(!(!i||i.id==null)){var o=Go(i.id),s=n.get(o);if(s!=null){var c=e[s];We(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Bo(e,t){I(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Jo(n)&&!Jo(a)&&Wo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Vo(e,t,n){I(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Jo(r.existing)||r.existing&&t.id!=null&&!Wo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Ho(e,t){I(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Uo(e){var t=G();I(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),I(e,function(e){var n=e.newOption;We(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),I(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(U(i)){if(a.name=i.name==null?r?r.name:Ao+n:Go(i.name),r)a.id=Go(r.id);else if(i.id!=null)a.id=Go(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Wo(e,t,n){var r=Ko(t[e],null),i=Ko(n[e],null);return r!=null&&i!=null&&r===i}function Go(e){return Ko(e,``)}function Ko(e,t){return e==null?t:H(e)?e:Me(e)||je(e)?e+``:t}function qo(e){var t=e.name;return!!(t&&t.indexOf(Ao))}function Jo(e){return e&&e.id!=null&&Go(e.id).indexOf(jo)===0}function Yo(e){return jo+e}function Xo(e,t,n){I(e,function(e){var r=e.newOption;U(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Zo(t,r,e.existing,n))})}function Zo(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Qo(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Ko(e[r].seriesId,null);if(a==null)return;for(var o=Mo(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function $o(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?L(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?L(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function es(){var e=`__ec_inner_`+ts++;return function(t){return t[e]||(t[e]={})}}var ts=To();function ns(e,t,n){var r=rs(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=os(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function rs(e,t){var n;if(H(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=G(),a={},o=!1;return I(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&Se(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var is={useDefault:!0,enableAll:!1,enableNone:!1},as={useDefault:!1,enableAll:!0,enableNone:!0};function os(e,t,n,r){r||=is;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}return i===`none`||i===!1?(We(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i===`all`&&(We(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function ss(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function cs(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ls(e){return e===`auto`?A.domSupported?`html`:`richText`:e||`html`}function us(e,t){var n=G(),r=[];return I(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function ds(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Me(r)){var o=ko(n||0,r,i);return oo(o,a?Math.max(co(n||0),co(r)):t)}else if(H(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=ko(p,m,i);s[d]=oo(o,a?Math.max(co(p),co(m)):t)}}return s}}var fs=`.`,ps=`___EC__COMPONENT__CONTAINER___`,ms=`___EC__EXTENDED_CLASS___`;function hs(e){var t={main:``,sub:``};if(e){var n=e.split(fs);t.main=n[0]||``,t.sub=n[1]||``}return t}function gs(e){We(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function _s(e){return!!(e&&e[ms])}function vs(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return ys(t)?n=function(e){O(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Ce(n,this)),P(n.prototype,e),n[ms]=!0,n.extend=this.extend,n.superCall=Cs,n.superApply=ws,n.superClass=t,n}}function ys(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function bs(e,t){e.extend=t.extend}var xs=Math.round(Math.random()*10);function Ss(e){var t=[`__\0is_clz`,xs++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Cs(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function ws(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ts(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){gs(r),e.prototype.type=r;var i=hs(r);if(!i.sub)t[i.main]=e;else if(i.sub!==ps){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ps]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=hs(e),r=[],i=t[n.main];return i&&i[ps]?I(i,function(e,t){t!==ps&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[hs(e).main]},e.getAllClassMainTypes=function(){var e=[];return I(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[hs(e).main];return n&&n[ps]};function n(e){var n=t[e.main];return(!n||!n[ps])&&(n=t[e.main]={},n[ps]=!0),n}}function Es(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&Se(r,s)>=0||i&&Se(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ds=Es([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Os=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ds(this,e,t)},e}(),ks=new Tr(50);function As(e){if(typeof e==`string`){var t=ks.get(e);return t&&t.image}else return e}function js(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=ks.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Ns(t)&&a.pending.push(o)):(t=oe.loadImage(e,Ms,Ms),t.__zrImageSrc=e,ks.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function Ms(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Ns(e){return e&&e.width&&e.height}var Ps=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fs(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
22
+ `);a=Is(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Ls(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
23
+ `),e.isTruncated=s}function Is(e,t,n,r){r||={};var i=P({},r);i.font=t,n=W(n,`...`),i.maxIterations=W(r.maxIterations,2);var a=i.minChar=W(r.minChar,0);i.cnCharWidth=Ta(`国`,t);var o=i.ascCharWidth=Ta(`a`,t);i.placeholder=W(r.placeholder,``);for(var s=e=Math.max(0,e-1),c=0;c<a&&s>=o;c++)s-=o;var l=Ta(n,t);return l>s&&(n=``,l=0),s=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Ls(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Ta(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Rs(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,c),o=Ta(t,i)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Rs(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function zs(e,t){e!=null&&(e+=``);var n=t.overflow,r=t.padding,i=t.font,a=n===`truncate`,o=Aa(i),s=W(t.lineHeight,o),c=!!t.backgroundColor,l=t.lineOverflow===`truncate`,u=!1,d=t.width,f=d!=null&&(n===`break`||n===`breakAll`)?e?Js(e,t.font,d,n===`breakAll`,0).lines:[]:e?e.split(`
24
+ `):[],p=f.length*s,m=W(t.height,p);if(p>m&&l){var h=Math.floor(m/s);u||=f.length>h,f=f.slice(0,h)}if(e&&a&&d!=null)for(var g=Is(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},v=0;v<f.length;v++)Ls(_,f[v],g),f[v]=_.textLine,u||=_.isTruncated;for(var y=m,b=0,v=0;v<f.length;v++)b=Math.max(Ta(f[v],i),b);d??=b;var x=b;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),c&&(x=d),{lines:f,height:m,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:p,width:d,isTruncated:u}}var Bs=function(){function e(){}return e}(),Vs=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Hs=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Us(e,t){var n=new Hs;if(e!=null&&(e+=``),!e)return n;for(var r=t.width,i=t.height,a=t.overflow,o=(a===`break`||a===`breakAll`)&&r!=null?{width:r,accumWidth:0,breakAll:a===`breakAll`}:null,s=Ps.lastIndex=0,c;(c=Ps.exec(e))!=null;){var l=c.index;l>s&&Ws(n,e.substring(s,l),t,o),Ws(n,c[2],t,o,c[1]),s=Ps.lastIndex}s<e.length&&Ws(n,e.substring(s,e.length),t,o);var u=[],d=0,f=0,p=t.padding,m=a===`truncate`,h=t.lineOverflow===`truncate`,g={};function _(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}outer:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,x=0,S=0;S<y.tokens.length;S++){var C=y.tokens[S],w=C.styleName&&t.rich[C.styleName]||{},T=C.textPadding=w.padding,E=T?T[1]+T[3]:0,D=C.font=w.font||t.font;C.contentHeight=Aa(D);var O=W(w.height,C.contentHeight);if(C.innerHeight=O,T&&(O+=T[0]+T[2]),C.height=O,C.lineHeight=Ve(w.lineHeight,t.lineHeight,O),C.align=w&&w.align||t.align,C.verticalAlign=w&&w.verticalAlign||`middle`,h&&i!=null&&d+C.lineHeight>i){var k=n.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),_(y,x,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v),n.isTruncated=n.isTruncated||n.lines.length<k;break outer}var A=w.width,j=A==null||A===`auto`;if(typeof A==`string`&&A.charAt(A.length-1)===`%`)C.percentWidth=A,u.push(C),C.contentWidth=Ta(C.text,D);else{if(j){var ee=w.backgroundColor,te=ee&&ee.image;te&&(te=As(te),Ns(te)&&(C.width=Math.max(C.width,te.width*O/te.height)))}var ne=m&&r!=null?r-x:null;ne!=null&&ne<C.width?!j||ne<E?(C.text=``,C.width=C.contentWidth=0):(Fs(g,C.text,ne-E,D,t.ellipsis,{minChar:t.truncateMinChar}),C.text=g.text,n.isTruncated=n.isTruncated||g.isTruncated,C.width=C.contentWidth=Ta(C.text,D)):C.contentWidth=Ta(C.text,D)}C.width+=E,x+=C.width,w&&(b=Math.max(b,C.lineHeight))}_(y,x,b)}n.outerWidth=n.width=W(r,f),n.outerHeight=n.height=W(i,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var v=0;v<u.length;v++){var C=u[v],re=C.percentWidth;C.width=parseInt(re,10)/100*n.width}return n}function Ws(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=ja(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
25
+ `),l=!0),r.accumWidth=m}else{var h=Js(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}else u=t.split(`
26
+ `);for(var g=0;g<u.length;g++){var _=u[g],v=new Bs;if(v.styleName=i,v.text=_,v.isLineHolder=!_&&!a,typeof o.width==`number`?v.width=o.width:v.width=d?d[g]:Ta(_,c),!g&&!l){var y=(s[s.length-1]||(s[0]=new Vs)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=v:(_||!b||a)&&y.push(v)}else s.push(new Vs([v]))}}function Gs(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ks=Ee(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function qs(e){return!Gs(e)||!!Ks[e]}function Js(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
27
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=Ta(f,t),m=!r&&!qs(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var Ys=`__zr_style_`+Math.round(Math.random()*10),Xs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Zs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xs[Ys]=!0;var Qs=[`z`,`z2`,`invisible`],$s=[`invisible`],ec=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ke(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&rc(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Sn(0,0,0,0),t?Sn.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Sn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:P(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return et(Xs,e)},t.prototype.useStyle=function(e){e[Ys]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ys]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Qs)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=ke(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=ke(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?$s:Qs,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return P(e,t),e},t.prototype.getAnimationStyleProps=function(){return Zs},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Ra),tc=new Sn(0,0,0,0),nc=new Sn(0,0,0,0);function rc(e,t,n){return tc.copy(e.getBoundingRect()),e.transform&&tc.applyTransform(e.transform),nc.width=t,nc.height=n,!tc.intersect(nc)}var ic=Math.min,ac=Math.max,oc=Math.sin,sc=Math.cos,cc=Math.PI*2,lc=ot(),uc=ot(),dc=ot();function fc(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=ic(i,r[0]),a=ac(a,r[0]),o=ic(o,r[1]),s=ac(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function pc(e,t,n,r,i,a){i[0]=ic(e,n),i[1]=ic(t,r),a[0]=ac(e,n),a[1]=ac(t,r)}var mc=[],hc=[];function gc(e,t,n,r,i,a,o,s,c,l){var u=ur,d=sr,f=u(e,n,i,o,mc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,mc[p]);c[0]=ic(m,c[0]),l[0]=ac(m,l[0])}f=u(t,r,a,s,hc);for(var p=0;p<f;p++){var h=d(t,r,a,s,hc[p]);c[1]=ic(h,c[1]),l[1]=ac(h,l[1])}c[0]=ic(e,c[0]),l[0]=ac(e,l[0]),c[0]=ic(o,c[0]),l[0]=ac(o,l[0]),c[1]=ic(t,c[1]),l[1]=ac(t,l[1]),c[1]=ic(s,c[1]),l[1]=ac(s,l[1])}function _c(e,t,n,r,i,a,o,s){var c=gr,l=pr,u=ac(ic(c(e,n,i),1),0),d=ac(ic(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=ic(e,i,f),o[1]=ic(t,a,p),s[0]=ac(e,i,f),s[1]=ac(t,a,p)}function vc(e,t,n,r,i,a,o,s,c){var l=Ct,u=wt,d=Math.abs(i-a);if(d%cc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(lc[0]=sc(i)*n+e,lc[1]=oc(i)*r+t,uc[0]=sc(a)*n+e,uc[1]=oc(a)*r+t,l(s,lc,uc),u(c,lc,uc),i%=cc,i<0&&(i+=cc),a%=cc,a<0&&(a+=cc),i>a&&!o?a+=cc:i<a&&o&&(i+=cc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(dc[0]=sc(p)*n+e,dc[1]=oc(p)*r+t,l(s,dc,s),u(c,dc,c))}var yc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bc=[],xc=[],Sc=[],Cc=[],wc=[],Tc=[],Ec=Math.min,Dc=Math.max,Oc=Math.cos,kc=Math.sin,Ac=Math.abs,jc=Math.PI,Mc=jc*2,Nc=typeof Float32Array<`u`,Pc=[];function Fc(e){return Math.round(e/jc*1e8)/1e8%2*jc}function Ic(e,t){var n=Fc(e[0]);n<0&&(n+=Mc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Mc?i=n+Mc:t&&n-i>=Mc?i=n-Mc:!t&&n>i?i=n+(Mc-Fc(n-i)):t&&n<i&&(i=n-(Mc-Fc(i-n))),e[0]=n,e[1]=i}var Lc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Ac(n/la/e)||0,this._uy=Ac(n/la/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(yc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Ac(e-this._xi),r=Ac(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(yc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(yc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(yc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Pc[0]=r,Pc[1]=i,Ic(Pc,a),r=Pc[0],i=Pc[1];var o=i-r;return this.addData(yc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Oc(i)*n+e,this._yi=kc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(yc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(yc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Nc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();Nc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Nc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Sc[0]=Sc[1]=wc[0]=wc[1]=Number.MAX_VALUE,Cc[0]=Cc[1]=Tc[0]=Tc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case yc.M:t=r=e[a++],n=i=e[a++],wc[0]=r,wc[1]=i,Tc[0]=r,Tc[1]=i;break;case yc.L:pc(t,n,e[a],e[a+1],wc,Tc),t=e[a++],n=e[a++];break;case yc.C:gc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],wc,Tc),t=e[a++],n=e[a++];break;case yc.Q:_c(t,n,e[a++],e[a++],e[a],e[a+1],wc,Tc),t=e[a++],n=e[a++];break;case yc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Oc(f)*u+c,i=kc(f)*d+l),vc(c,l,u,d,f,p,m,wc,Tc),t=Oc(p)*u+c,n=kc(p)*d+l;break;case yc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];pc(r,i,r+h,i+g,wc,Tc);break;case yc.Z:t=r,n=i;break}Ct(Sc,Sc,wc),wt(Cc,Cc,Tc)}return a===0&&(Sc[0]=Sc[1]=Cc[0]=Cc[1]=0),new Sn(Sc[0],Sc[1],Cc[0]-Sc[0],Cc[1]-Sc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case yc.M:i=o=e[d++],a=s=e[d++];break;case yc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Ac(_)>n||Ac(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case yc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=fr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case yc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=yr(i,a,y,b,h,g,10),i=h,a=g;break;case yc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Oc(D)*T+C,s=kc(D)*E+w),m=Dc(T,E)*Ec(Mc,Math.abs(O)),i=Oc(k)*T+C,a=kc(k)*E+w;break;case yc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case yc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==yc.L&&v>0&&(e.lineTo(y,b),v=0),S){case yc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case yc.L:u=n[x++],d=n[x++];var w=Ac(u-c),T=Ac(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case yc.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;q(c,k,j,te,D,bc),q(l,A,ee,ne,D,xc),e.bezierCurveTo(bc[1],xc[1],bc[2],xc[2],bc[3],xc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case yc.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;_r(c,k,j,D,bc),_r(l,A,ee,D,xc),e.quadraticCurveTo(bc[1],xc[1],bc[2],xc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case yc.A:var re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=n[x++],ue=!n[x++],de=ae>oe?ae:oe,fe=Ac(ae-oe)>.001,pe=se+ce,me=!1;if(f){var E=p[g++];h+E>_&&(pe=se+ce*(_-h)/E,me=!0),h+=E}if(fe&&e.ellipse?e.ellipse(re,ie,ae,oe,le,se,pe,ue):e.arc(re,ie,de,se,pe,ue),me)break lo;C&&(o=Oc(se)*ae+re,s=kc(se)*oe+ie),c=Oc(pe)*ae+re,l=kc(pe)*oe+ie;break;case yc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var he=n[x++],ge=n[x++];if(f){var E=p[g++];if(h+E>_){var _e=_-h;e.moveTo(u,d),e.lineTo(u+Ec(_e,he),d),_e-=he,_e>0&&e.lineTo(u+he,d+Ec(_e,ge)),_e-=ge,_e>0&&e.lineTo(u+Dc(he-_e,0),d+ge),_e-=he,_e>0&&e.lineTo(u,d+Dc(ge-_e,0));break lo}h+=E}e.rect(u,d,he,ge);break;case yc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=yc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Rc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function zc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:dr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Bc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:vr(e,t,n,r,i,a,s,c,null)<=l/2}var Vc=Math.PI*2;function Hc(e){return e%=Vc,e<0&&(e+=Vc),e}var Uc=Math.PI*2;function Wc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Uc<1e-4)return!0;if(a){var d=r;r=Hc(i),i=Hc(d)}else r=Hc(r),i=Hc(i);r>i&&(i+=Uc);var f=Math.atan2(c,s);return f<0&&(f+=Uc),f>=r&&f<=i||f+Uc>=r&&f+Uc<=i}function Gc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Kc=Lc.CMD,qc=Math.PI*2,Jc=1e-4;function Yc(e,t){return Math.abs(e-t)<Jc}var Xc=[-1,-1,-1],Zc=[-1,-1];function Qc(){var e=Zc[0];Zc[0]=Zc[1],Zc[1]=e}function $c(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=lr(t,r,a,s,l,Xc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Xc[h],_=g===0||g===1?.5:1;sr(e,n,i,o,g)<c||(f<0&&(f=ur(t,r,a,s,Zc),Zc[1]<Zc[0]&&f>1&&Qc(),p=sr(t,r,a,s,Zc[0]),f>1&&(m=sr(t,r,a,s,Zc[1]))),f===2?g<Zc[0]?d+=p<t?_:-_:g<Zc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Zc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function el(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=hr(t,r,a,s,Xc);if(c===0)return 0;var l=gr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=pr(t,r,a,l),f=0;f<c;f++){var p=Xc[f]===0||Xc[f]===1?.5:1,m=pr(e,n,i,Xc[f]);m<o||(Xc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Xc[0]===0||Xc[0]===1?.5:1,m=pr(e,n,i,Xc[0]);return m<o?0:a<t?p:-p}}function tl(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Xc[0]=-c,Xc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=qc-1e-4){r=0,i=qc;var u=a?1:-1;return o>=Xc[0]+e&&o<=Xc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=qc,i+=qc);for(var f=0,p=0;p<2;p++){var m=Xc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=qc+h),(h>=r&&h<=i||h+qc>=r&&h+qc<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function nl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Kc.M&&m>1&&(n||(s+=Gc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Kc.M:u=a[m++],d=a[m++],c=u,l=d;break;case Kc.L:if(n){if(Rc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Gc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Kc.C:if(n){if(zc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=$c(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Kc.Q:if(n){if(Bc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=el(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Kc.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Gc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Wc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=tl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Kc.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Rc(u,d,f,d,t,r,i)||Rc(f,d,f,p,t,r,i)||Rc(f,p,u,p,t,r,i)||Rc(u,p,u,d,t,r,i))return!0}else s+=Gc(f,d,f,p,r,i),s+=Gc(u,p,u,d,r,i);break;case Kc.Z:if(n){if(Rc(c,l,u,d,t,r,i))return!0}else s+=Gc(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Yc(l,d)&&(s+=Gc(c,l,u,d,r,i)||0),s!==0}function rl(e,t,n){return nl(e,0,!1,t,n)}function il(e,t,n,r){return nl(e,t,!0,n,r)}var al=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xs),ol={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zs.style)},sl=Sa.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),cl=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<sl.length;++s)i[sl[s]]=this[sl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=ke(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?P(this.style,o):this.useStyle(o):a===`shape`?P(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(H(e)){var t=Jr(e,0);return t>.5?da:t>.2?pa:fa}else if(e)return fa}return da},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Jr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Lc(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),il(a,o/s,e,t)))return!0}if(this.hasFill())return rl(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return et(al,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=P({},this.shape);for(var l={},u=ke(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return ol},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){at(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return M(e.style)},n.prototype.getDefaultShape=function(){return M(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(ec),ll=F({strokeFirst:!0,font:ee,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},al),ul=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return et(ll,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=Da(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(ec);ul.prototype.type=`tspan`;var dl=F({x:0,y:0},Xs),fl={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zs.style)};function pl(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var ml=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return et(dl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=pl(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return fl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Sn(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(ec);ml.prototype.type=`image`;function hl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var gl=Math.round;function _l(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(gl(r*2)===gl(i*2)&&(e.x1=e.x2=yl(r,s,!0)),gl(a*2)===gl(o*2)&&(e.y1=e.y2=yl(a,s,!0)),e):e}}function vl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=yl(r,s,!0),e.y=yl(i,s,!0),e.width=Math.max(yl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(yl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function yl(e,t,n){if(!t)return e;var r=gl(e*2);return(r+gl(t))%2==0?r/2:(r+(n?1:-1))/2}var bl=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),xl={},Sl=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bl},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=vl(xl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?hl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(cl);Sl.prototype.type=`rect`;var Cl={fill:`#000`},wl=2,Tl={style:F({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},Zs.style)},El=function(e){at(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Cl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Nl(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Sn(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Cl},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return P(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=ke(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},P(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Tl},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=zs(Rl(e),e),i=zl(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=ka(p,r.contentHeight,h);if(i||n){var v=Oa(f,s,m),y=ka(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=Ll(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=Il(`fill`in e?e.fill:(x=!0,d.fill)),C=Fl(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=wl,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(ul),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,jl(k,e),_+=u,T&&O.setBoundingRect(new Sn(Oa(k.x,c,k.textAlign),ka(k.y,E,k.textBaseline),c,E))}},t.prototype._updateRichTexts=function(){var e=this.style,t=Us(Rl(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=Oa(o,r,l),f=ka(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;zl(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&zl(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Ll(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ul),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=Il(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=Fl(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=wl,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Ve(s.opacity,t.opacity,1),jl(p,s),v&&(p.lineWidth=Ve(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new Sn(Oa(p.x,b,p.textAlign),ka(p.y,x,p.textBaseline),b,x))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Sl),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(ml),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Ve(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Ml(e)&&(t=[e.fontStyle,e.fontWeight,Al(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ge(t)||e.textFont||e.font},t}(ec),Dl={left:!0,right:1,center:1},Ol={top:1,bottom:1,middle:1},kl=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Al(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function jl(e,t){for(var n=0;n<kl.length;n++){var r=kl[n],i=t[r];i!=null&&(e[r]=i)}}function Ml(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Nl(e){return Pl(e),I(e.rich,Pl),e}function Pl(e){if(e){e.font=El.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Dl[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Ol[n]?n:`top`,e.padding&&=Ue(e.padding)}}function Fl(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Il(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ll(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Rl(e){var t=e.text;return t!=null&&(t+=``),t}function zl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var X=es(),Bl=function(e,t,n,r){if(r){var i=X(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=X(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Vl=1,Hl={},Ul=es(),Wl=es(),Gl=[`emphasis`,`blur`,`select`],Kl=[`normal`,`emphasis`,`blur`,`select`],ql=`highlight`,Jl=`downplay`,Yl=`select`,Xl=`unselect`,Zl=`toggleSelect`;function Ql(e){return e!=null&&e!==`none`}function $l(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function eu(e){$l(e,`emphasis`,2)}function tu(e){e.hoverState===2&&$l(e,`normal`,0)}function nu(e){$l(e,`blur`,1)}function ru(e){e.hoverState===1&&$l(e,`normal`,0)}function iu(e){e.selected=!0}function au(e){e.selected=!1}function ou(e,t,n){t(e,n)}function su(e,t,n){ou(e,t,n),e.isGroup&&e.traverse(function(e){ou(e,t,n)})}function cu(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function lu(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function uu(e,t,n,r){var i=n&&Se(n,`select`)>=0,a=!1;if(e instanceof cl){var o=Ul(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Ql(s)||Ql(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!Ql(l.fill)&&Ql(s)?(a=!0,r=P({},r),l=P({},l),l.fill=Xr(s)):!Ql(l.stroke)&&Ql(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=Xr(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function du(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function fu(e,t,n){var r=Se(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:lu(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function pu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return uu(this,e,t,n);if(e===`blur`)return fu(this,e,n);if(e===`select`)return du(this,e,n)}return n}function mu(e){e.stateProxy=pu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=pu),n&&(n.stateProxy=pu)}function hu(e,t){!Cu(e,t)&&!e.__highByOuter&&su(e,eu)}function gu(e,t){!Cu(e,t)&&!e.__highByOuter&&su(e,tu)}function _u(e,t){e.__highByOuter|=1<<(t||0),su(e,eu)}function vu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&su(e,tu)}function yu(e){su(e,nu)}function bu(e){su(e,ru)}function xu(e){su(e,iu)}function Su(e){su(e,au)}function Cu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function wu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Wl(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){ru(e)}),o&&n.push(i)),a.isBlured=!1}),I(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Tu(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&bu(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||nu(e)}),Te(t))a(e.getData(),t);else if(U(t))for(var u=ke(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Wl(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Eu(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Wl(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){nu(e)})}}}function Du(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=$o(i,t);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=X(o);Tu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Tu(r,u,d,n)}}}function Ou(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(X(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function ku(e,t,n){var r=X(e),i=Ou(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Eu(r.componentMainType,r.componentIndex,n),I(a,function(e){return hu(e,t)})):(Tu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Eu(r.componentMainType,r.componentIndex,n),hu(e,t))}function Au(e,t,n){wu(n);var r=X(e),i=Ou(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?I(i,function(e){return gu(e,t)}):gu(e,t)}function ju(e,t,n){if(Gu(t)){var r=t.dataType,i=$o(e.getData(r),t);B(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Mu(e){I(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?xu(t):Su(t)})})}function Nu(e){var t=[];return e.eachSeries(function(e){I(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Pu(e,t,n){Vu(e,!0),su(e,mu),Lu(e,t,n)}function Fu(e){Vu(e,!1)}function Iu(e,t,n,r){r?Fu(e):Pu(e,t,n)}function Lu(e,t,n){var r=X(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Ru=[`emphasis`,`blur`,`select`],zu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Bu(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Ru.length;i++){var a=Ru[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[zu[n]]()}}function Vu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Hu(e){return!!(e&&e.__highDownDispatcher)}function Uu(e,t,n){var r=X(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Wu(e){var t=Hl[e];return t==null&&Vl<=32&&(t=Hl[e]=Vl++),t}function Gu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Ku(e){var t=e.type;return t===`highlight`||t===`downplay`}function qu(e){var t=Ul(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ju=Lc.CMD,Yu=[[],[],[]],Xu=Math.sqrt,Zu=Math.atan2;function Qu(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Ju.M,d=Ju.C,f=Ju.L,p=Ju.R,m=Ju.A,h=Ju.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Xu(t[0]*t[0]+t[1]*t[1]),y=Xu(t[2]*t[2]+t[3]*t[3]),b=Zu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],St(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],St(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Yu[c];x[0]=n[o++],x[1]=n[o++],St(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var $u=Math.sqrt,ed=Math.sin,td=Math.cos,nd=Math.PI;function rd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function id(e,t){return(e[0]*t[0]+e[1]*t[1])/(rd(e)*rd(t))}function ad(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(id(e,t))}function od(e,t,n,r,i,a,o,s,c,l,u){var d=nd/180*c,f=td(d)*(e-n)/2+ed(d)*(t-r)/2,p=-1*ed(d)*(e-n)/2+td(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=$u(m),s*=$u(m));var h=(i===a?-1:1)*$u((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+td(d)*g-ed(d)*_,y=(t+r)/2+ed(d)*g+td(d)*_,b=ad([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=ad(x,S);if(id(x,S)<=-1&&(C=nd),id(x,S)>=1&&(C=0),C<0){var w=Math.round(C/nd*1e6)/1e6;C=nd*2+w%2*nd}u.addData(l,v,y,o,s,b,C,d,a)}var sd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,cd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ld(e){var t=new Lc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Lc.CMD,c=e.match(sd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(cd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,od(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,od(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var ud=function(e){at(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(cl);function dd(e){return e.setData!=null}function fd(e,t){var n=ld(e),r=P({},t);return r.buildPath=function(e){if(dd(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Qu(n,e),this.dirtyShape()},r}function pd(e,t){return new ud(fd(e,t))}function md(e,t){var n=fd(e,t);return function(e){at(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(ud)}function hd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new cl(t);return o.createPathProxy(),o.buildPath=function(e){if(dd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function gd(e,t){t||={};var n=new cl;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Qu(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var _d=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),vd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new _d},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(cl);vd.prototype.type=`circle`;var yd=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),bd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new yd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(cl);bd.prototype.type=`ellipse`;var xd=Math.PI,Sd=xd*2,Cd=Math.sin,wd=Math.cos,Td=Math.acos,Ed=Math.atan2,Dd=Math.abs,Od=Math.sqrt,kd=Math.max,Ad=Math.min,jd=1e-4;function Md(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<jd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Nd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Od(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Od(kd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Pd(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Fd(e,t){var n,r=kd(t.r,0),i=kd(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Dd(c-s),p=f>Sd&&f%Sd;if(p>jd&&(f=p),!(r>jd))e.moveTo(l,u);else if(f>Sd-jd)e.moveTo(l+r*wd(s),u+r*Cd(s)),e.arc(l,u,r,s,c,!d),i>jd&&(e.moveTo(l+i*wd(c),u+i*Cd(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*wd(s),j=r*Cd(s),ee=i*wd(c),te=i*Cd(c),ne=f>jd;if(ne){var re=t.cornerRadius;re&&(n=Pd(re),m=n[0],h=n[1],g=n[2],_=n[3]);var ie=Dd(r-i)/2;if(v=Ad(ie,g),y=Ad(ie,_),b=Ad(ie,m),x=Ad(ie,h),w=S=kd(v,y),T=C=kd(b,x),(S>jd||C>jd)&&(E=r*wd(c),D=r*Cd(c),O=i*wd(s),k=i*Cd(s),f<xd)){var ae=Md(A,j,O,k,E,D,ee,te);if(ae){var oe=A-ae[0],se=j-ae[1],ce=E-ae[0],le=D-ae[1],ue=1/Cd(Td((oe*ce+se*le)/(Od(oe*oe+se*se)*Od(ce*ce+le*le)))/2),de=Od(ae[0]*ae[0]+ae[1]*ae[1]);w=Ad(S,(r-de)/(ue+1)),T=Ad(C,(i-de)/(ue-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>jd){var fe=Ad(g,w),pe=Ad(_,w),me=Nd(O,k,A,j,r,fe,d),he=Nd(E,D,ee,te,r,pe,d);e.moveTo(l+me.cx+me.x0,u+me.cy+me.y0),w<S&&fe===pe?e.arc(l+me.cx,u+me.cy,w,Ed(me.y0,me.x0),Ed(he.y0,he.x0),!d):(fe>0&&e.arc(l+me.cx,u+me.cy,fe,Ed(me.y0,me.x0),Ed(me.y1,me.x1),!d),e.arc(l,u,r,Ed(me.cy+me.y1,me.cx+me.x1),Ed(he.cy+he.y1,he.cx+he.x1),!d),pe>0&&e.arc(l+he.cx,u+he.cy,pe,Ed(he.y1,he.x1),Ed(he.y0,he.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>jd)||!ne)e.lineTo(l+ee,u+te);else if(T>jd){var fe=Ad(m,T),pe=Ad(h,T),me=Nd(ee,te,E,D,i,-pe,d),he=Nd(A,j,O,k,i,-fe,d);e.lineTo(l+me.cx+me.x0,u+me.cy+me.y0),T<C&&fe===pe?e.arc(l+me.cx,u+me.cy,T,Ed(me.y0,me.x0),Ed(he.y0,he.x0),!d):(pe>0&&e.arc(l+me.cx,u+me.cy,pe,Ed(me.y0,me.x0),Ed(me.y1,me.x1),!d),e.arc(l,u,i,Ed(me.cy+me.y1,me.cx+me.x1),Ed(he.cy+he.y1,he.cx+he.x1),d),fe>0&&e.arc(l+he.cx,u+he.cy,fe,Ed(he.y1,he.x1),Ed(he.y0,he.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Id=function(){function e(){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 e}(),Ld=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Id},t.prototype.buildPath=function(e,t){Fd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(cl);Ld.prototype.type=`sector`;var Rd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(cl);zd.prototype.type=`ring`;function Bd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Ct(u,u,e[f]),wt(d,d,e[f]);Ct(u,u,r[0]),wt(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(ct(e[f]));continue}else c=e[f-1],l=e[f+1];ft(a,l,c),ht(a,a,t);var h=_t(m,c),g=_t(m,l),_=h+g;_!==0&&(h/=_,g/=_),ht(o,a,-h),ht(s,a,g);var v=ut([],m,o),y=ut([],m,s);r&&(wt(v,v,u),Ct(v,v,d),wt(y,y,u),Ct(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Vd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Bd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Hd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ud=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Hd},t.prototype.buildPath=function(e,t){Vd(e,t,!0)},t}(cl);Ud.prototype.type=`polygon`;var Wd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Gd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Wd},t.prototype.buildPath=function(e,t){Vd(e,t,!1)},t}(cl);Gd.prototype.type=`polyline`;var Kd={},qd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Jd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=_l(Kd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(cl);Jd.prototype.type=`line`;var Yd=[],Xd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Zd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?cr:sr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?cr:sr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?mr:pr)(e.x1,e.cpx1,e.x2,t),(n?mr:pr)(e.y1,e.cpy1,e.y2,t)]}var Qd=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Xd},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(_r(n,o,i,u,Yd),o=Yd[1],i=Yd[2],_r(r,s,a,u,Yd),s=Yd[1],a=Yd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(q(n,o,c,i,u,Yd),o=Yd[1],c=Yd[2],i=Yd[3],q(r,s,l,a,u,Yd),s=Yd[1],l=Yd[2],a=Yd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Zd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Zd(this.shape,e,!0);return gt(t,t)},t}(cl);Qd.prototype.type=`bezier-curve`;var $d=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ef=function(e){at(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new $d},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(cl);ef.prototype.type=`arc`;var tf=function(e){at(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),cl.prototype.getBoundingRect.call(this)},t}(cl),nf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),rf=function(e){at(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(nf),af=function(e){at(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(nf),of=[0,0],sf=[0,0],cf=new pn,lf=new pn,uf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pn;for(var n=0;n<2;n++)this._axes[n]=new pn;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);pn.sub(r[0],n[1],n[0]),pn.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return cf.set(1/0,1/0),lf.set(0,0),!this._intersectCheckOneSide(this,e,cf,lf,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,cf,lf,r,-1)&&(n=!1,r)||r||pn.copy(t,n?cf:lf),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,of),this._getProjMinMaxOnAxis(s,t._corners,sf),of[1]<sf[0]||of[0]>sf[1]){if(o=!1,i)return o;var l=Math.abs(sf[0]-of[1]),u=Math.abs(of[0]-sf[1]);Math.min(l,u)>r.len()&&(l<u?pn.scale(r,c,-l*a):pn.scale(r,c,u*a))}else if(n){var l=Math.abs(sf[0]-of[1]),u=Math.abs(of[0]-sf[1]);Math.min(l,u)<n.len()&&(l<u?pn.scale(n,c,l*a):pn.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),df=[],ff=function(e){at(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Sn(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(df)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(ec),pf=es();function mf(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=W(r.duration,200),u=W(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),V(d)&&(d=d(n,i)),V(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function hf(e,t,n,r,i,a,o){var s=!1,c;V(i)?(o=a,a=i,i=null):U(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=mf(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function gf(e,t,n,r,i,a){hf(`update`,e,t,n,r,i,a)}function _f(e,t,n,r,i,a){hf(`enter`,e,t,n,r,i,a)}function vf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function yf(e,t,n,r,i,a){vf(e)||hf(`leave`,e,t,n,r,i,a)}function bf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),yf(e,{style:{opacity:0}},t,n,r)}function xf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||bf(e,t,n,r)}):bf(e,t,n,r)}function Sf(e){pf(e).oldStyle=e.style}function Cf(e){return pf(e).oldStyle}var wf=t({Arc:()=>ef,BezierCurve:()=>Qd,BoundingRect:()=>Sn,Circle:()=>vd,CompoundPath:()=>tf,Ellipse:()=>bd,Group:()=>J,Image:()=>ml,IncrementalDisplayable:()=>ff,Line:()=>Jd,LinearGradient:()=>rf,OrientedBoundingRect:()=>uf,Path:()=>cl,Point:()=>pn,Polygon:()=>Ud,Polyline:()=>Gd,RadialGradient:()=>af,Rect:()=>Sl,Ring:()=>zd,Sector:()=>Ld,Text:()=>El,applyTransform:()=>Hf,clipPointsByRect:()=>qf,clipRectByRect:()=>Jf,createIcon:()=>Yf,extendPath:()=>Af,extendShape:()=>Of,getShapeClass:()=>Mf,getTransform:()=>Vf,groupTransition:()=>Kf,initProps:()=>_f,isElementRemoved:()=>vf,lineLineIntersect:()=>Zf,linePolygonIntersect:()=>Xf,makeImage:()=>Pf,makePath:()=>Nf,mergePath:()=>If,registerShape:()=>jf,removeElement:()=>yf,removeElementWithFadeOut:()=>xf,resizePath:()=>Lf,setTooltipConfig:()=>ep,subPixelOptimize:()=>Bf,subPixelOptimizeLine:()=>Rf,subPixelOptimizeRect:()=>zf,transformDirection:()=>Uf,traverseElements:()=>np,updateProps:()=>gf}),Tf=Math.max,Ef=Math.min,Df={};function Of(e){return cl.extend(e)}var kf=md;function Af(e,t){return kf(e,t)}function jf(e,t){Df[e]=t}function Mf(e){if(Df.hasOwnProperty(e))return Df[e]}function Nf(e,t,n,r){var i=pd(e,t);return n&&(r===`center`&&(n=Ff(n,i.getBoundingRect())),Lf(i,n)),i}function Pf(e,t,n){var r=new ml({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Ff(t,i))}}});return r}function Ff(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var If=hd;function Lf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Rf(e,t){return _l(e,e,{lineWidth:t}),e}function zf(e){return vl(e.shape,e.shape,e.style),e}var Bf=yl;function Vf(e,t){for(var n=an([]);e&&e!==t;)sn(n,e.getLocalTransform(),n),e=e.parent;return n}function Hf(e,t,n){return t&&!Te(t)&&(t=xa.getLocalTransform(t)),n&&(t=dn([],t)),St([],e,t)}function Uf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Hf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Wf(e){return!e.isGroup}function Gf(e){return e.shape!=null}function Kf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Wf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Gf(e)&&(t.shape=P({},e.shape)),t}var a=r(e);t.traverse(function(e){if(Wf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),gf(e,r,n,X(e).dataIndex)}}})}function qf(e,t){return L(e,function(e){var n=e[0];n=Tf(n,t.x),n=Ef(n,t.x+t.width);var r=e[1];return r=Tf(r,t.y),r=Ef(r,t.y+t.height),[n,r]})}function Jf(e,t){var n=Tf(e.x,t.x),r=Ef(e.x+e.width,t.x+t.width),i=Tf(e.y,t.y),a=Ef(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Yf(e,t,n){var r=P({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),F(i,n),new ml(r)):Nf(e.replace(`path://`,``),r,n,`center`)}function Xf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Zf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Zf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Qf(u,d,c,l);if($f(f))return!1;var p=e-i,m=t-a,h=Qf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Qf(p,m,u,d)/f;return!(g<0||g>1)}function Qf(e,t,n,r){return e*r-n*t}function $f(e){return e<=1e-6&&e>=-1e-6}function ep(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&I(ke(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=X(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function tp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function np(e,t){if(e)if(B(e))for(var n=0;n<e.length;n++)tp(e[n],t);else tp(e,t)}jf(`circle`,vd),jf(`ellipse`,bd),jf(`sector`,Ld),jf(`ring`,zd),jf(`polygon`,Ud),jf(`polyline`,Gd),jf(`rect`,Sl),jf(`line`,Jd),jf(`bezierCurve`,Qd),jf(`arc`,ef);var rp={};function ip(e,t){for(var n=0;n<Gl.length;n++){var r=Gl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function ap(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=V(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Gl.length;l++){var u=Gl[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function op(e,t,n,r){n||=rp;for(var i=e instanceof El,a=!1,o=0;o<Kl.length;o++){var s=t[Kl[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new El,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=ap(n,t),u=t.normal,d=!!u.getShallow(`show`),f=cp(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(lp(u,n,!1));for(var o=0;o<Gl.length;o++){var p=Gl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!W(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=cp(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=lp(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(_p(c).setLabelText=function(e){var r=ap(n,t,e);ip(c,r)})}else c&&(c.ignore=!0);e.dirty()}function sp(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Gl.length;r++){var i=Gl[r];n[i]=e.getModel([i,t])}return n}function cp(e,t,n,r,i){var a={};return up(a,e,n,r,i),t&&P(a,t),a}function lp(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=W(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function up(e,t,n,r,i){n||=rp;var a=t.ecModel,o=a&&a.option.textStyle,s=dp(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);hp(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),hp(e,t,o,n,r,i,!0,!1)}function dp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||rp).rich;if(n){t||={};for(var r=ke(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var fp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],pp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],mp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function hp(e,t,n,r,i,a,o,s){n=!i&&n||rp;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=W(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l||=n.color,u||=n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=W(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=W(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=W(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<fp.length;h++){var g=fp[h],_=W(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<pp.length;h++){var g=pp[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<mp.length;h++){var g=mp[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function gp(e,t){var n=t&&t.getModel(`textStyle`);return Ge([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var _p=es();function vp(e,t,n,r){if(e){var i=_p(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function yp(e,t,n,r,i){var a=_p(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=W(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=ds(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,ip(e,ap({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?_f:gf)(e,{percent:1},r,t,null,l)}var bp=[`textStyle`,`color`],xp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Sp=new El,Cp=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(bp):null)},e.prototype.getFont=function(){return gp({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<xp.length;n++)t[xp[n]]=this.getShallow(xp[n]);return Sp.useStyle(t),Sp.update(),Sp.getBoundingRect()},e}(),wp=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Tp=Es(wp),Ep=function(){function e(){}return e.prototype.getLineStyle=function(e){return Tp(this,e)},e}(),Dp=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Op=Es(Dp),kp=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Op(this,e,t)},e}(),Ap=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){N(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(M(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!A.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();vs(Ap),Ss(Ap),we(Ap,Ep),we(Ap,kp),we(Ap,Os),we(Ap,Cp);var jp=Math.round(Math.random()*10);function Mp(e){return[e||``,jp++].join(`_`)}function Np(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=hs(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=hs(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Pp(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(I(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),I(u.successor,d?p:f)}I(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return I(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),I(c,function(e){Se(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Se(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return I(e,function(e){Se(t,e)>=0&&n.push(e)}),n}}function Fp(e,t){return N(N({},e,!0),t,!0)}var Ip={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:`. `}}}},Lp={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:``}}}},Rp=`ZH`,zp=`EN`,Bp=zp,Vp={},Hp={},Up=A.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bp).toUpperCase().indexOf(Rp)>-1?Rp:Bp}():Bp;function Wp(e,t){e=e.toUpperCase(),Hp[e]=new Ap(t),Vp[e]=t}function Gp(e){if(H(e)){var t=Vp[e.toUpperCase()]||{};return e===Rp||e===zp?M(t):N(M(t),M(Vp[Bp]),!1)}else return N(M(e),M(Vp[Bp]),!1)}function Kp(e){return Hp[e]}function qp(){return Hp[Bp]}Wp(zp,Ip),Wp(Rp,Lp);var Jp=1e3,Yp=Jp*60,Xp=Yp*60,Zp=Xp*24,Qp=Zp*365,$p={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`,none:`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`},em=`{yyyy}-{MM}-{dd}`,tm={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:em,hour:em+` `+$p.hour,minute:em+` `+$p.minute,second:em+` `+$p.second,millisecond:$p.none},nm=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],rm=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function im(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function am(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function om(e){return e===am(e)}function sm(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function cm(e,t,n,r){var i=_o(e),a=i[fm(n)](),o=i[pm(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[mm(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[hm(n)](),d=(u-1)%12+1,f=i[gm(n)](),p=i[_m(n)](),m=i[vm(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Ap?r:Kp(r||Up)||qp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,im(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,im(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,im(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,im(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,im(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,im(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,im(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,im(m,3)).replace(/{S}/g,m+``)}function lm(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n))a=n(e.value,t,{level:e.level});else{var o=P({},$p);if(e.level>0)for(var s=0;s<nm.length;++s)o[nm[s]]=`{primary|`+o[nm[s]]+`}`;var c=n?n.inherit===!1?n:F(n,o):o,l=um(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=rm.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a||=o.none}if(B(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return cm(new Date(e.value),a,i,r)}function um(e,t){var n=_o(e),r=n[pm(t)]()+1,i=n[mm(t)](),a=n[hm(t)](),o=n[gm(t)](),s=n[_m(t)](),c=n[vm(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function dm(e,t,n){var r=Me(e)?_o(e):e;switch(t||=um(e,n),t){case`year`:return r[fm(n)]();case`half-year`:return+(r[pm(n)]()>=6);case`quarter`:return Math.floor((r[pm(n)]()+1)/4);case`month`:return r[pm(n)]();case`day`:return r[mm(n)]();case`half-day`:return r[hm(n)]()/24;case`hour`:return r[hm(n)]();case`minute`:return r[gm(n)]();case`second`:return r[_m(n)]();case`millisecond`:return r[vm(n)]()}}function fm(e){return e?`getUTCFullYear`:`getFullYear`}function pm(e){return e?`getUTCMonth`:`getMonth`}function mm(e){return e?`getUTCDate`:`getDate`}function hm(e){return e?`getUTCHours`:`getHours`}function gm(e){return e?`getUTCMinutes`:`getMinutes`}function _m(e){return e?`getUTCSeconds`:`getSeconds`}function vm(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function ym(e){return e?`setUTCFullYear`:`setFullYear`}function bm(e){return e?`setUTCMonth`:`setMonth`}function xm(e){return e?`setUTCDate`:`setDate`}function Sm(e){return e?`setUTCHours`:`setHours`}function Cm(e){return e?`setUTCMinutes`:`setMinutes`}function wm(e){return e?`setUTCSeconds`:`setSeconds`}function Tm(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Em(e){if(!wo(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Dm(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Om=Ue;function km(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Ge(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?_o(e):e;if(!isNaN(+c))return cm(c,r,n);if(s)return`-`}if(t===`ordinal`)return je(e)?i(e):Me(e)&&a(e)?e+``:`-`;var l=Co(e);return a(l)?Em(l):je(e)?i(e):typeof e==`boolean`?e+``:`-`}var Am=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],jm=function(e,t){return`{`+e+(t??``)+`}`};function Mm(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Am[a];e=e.replace(jm(o),jm(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(jm(Am[c],s),n?Bt(l):l)}return e}function Nm(e,t,n){return I(t,function(t,r){e=e.replace(`{`+r+`}`,n?Bt(t):t)}),e}function Pm(e,t){var n=H(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Bt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Bt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Fm(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Im(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Lm=I,Rm=[`left`,`right`,`top`,`bottom`,`width`,`height`],zm=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Bm(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Vm=Bm;z(Bm,`vertical`),z(Bm,`horizontal`);function Hm(e,t,n){var r=t.width,i=t.height,a=Y(e.left,r),o=Y(e.top,i),s=Y(e.right,r),c=Y(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=Om(n||0),{width:Math.max(s-a-n[1]-n[3],0),height:Math.max(c-o-n[0]-n[2],0)}}function Um(e,t,n){n=Om(n||0);var r=t.width,i=t.height,a=Y(e.left,r),o=Y(e.top,i),s=Y(e.right,r),c=Y(e.bottom,i),l=Y(e.width,r),u=Y(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Sn(a+n[3],o+n[0],l,u);return m.margin=n,m}function Wm(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Sn(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Um(F({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Gm(e,t){return e[zm[t][0]]!=null||e[zm[t][1]]!=null&&e[zm[t][2]]!=null}function Km(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function qm(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(zm[0],0),a=o(zm[1],1);l(zm[0],e,i),l(zm[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(Lm(n,function(t){l[t]=e[t]}),Lm(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){Lm(e,function(e){t[e]=n[e]})}}function Jm(e){return Ym({},e)}function Ym(e,t){return t&&e&&Lm(Rm,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Xm=es(),Zm=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Mp(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Km(this),r=n?Jm(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&qm(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=Km(this);n&&qm(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!_s(e))return e.defaultOption;var t=Xm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return os(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Ap);bs(Zm,Ap),Ts(Zm),Np(Zm),Pp(Zm,Qm);function Qm(e){var t=[];return I(Zm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=L(t,function(e){return hs(e).main}),e!==`dataset`&&Se(t,`dataset`)<=0&&t.unshift(`dataset`),t}var $m=``;typeof navigator<`u`&&($m=navigator.platform||``);var eh=`rgba(0, 0, 0, 0.2)`,th={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:eh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:eh,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:eh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:eh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:eh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:eh,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$m.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},nh=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),rh=`original`,ih=`arrayRows`,ah=`objectRows`,oh=`keyedColumns`,sh=`typedArray`,ch=`unknown`,lh=`column`,uh={Must:1,Might:2,Not:3},dh=es();function fh(e){dh(e).datasetMap=G()}function ph(e,t,n){var r={},i=hh(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=dh(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),I(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});I(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function mh(e,t,n){var r={};if(!hh(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&I(a,function(e,t){(U(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=vh(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===uh.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===uh.Not)&&(e.n=c),f(e)&&s[e.n]!==uh.Not)return e;d||(u===uh.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function hh(e){if(!e.get(`data`,!0))return os(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},is).models[0]}function gh(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:os(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},is).models}function _h(e,t){return vh(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function vh(e,t,n,r,i,a){var o,s=5;if(Pe(e))return uh.Not;var c,l;if(r){var u=r[a];U(u)?(c=u.name,l=u.type):H(u)&&(c=u)}if(l!=null)return l===`ordinal`?uh.Must:uh.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return uh.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return uh.Not;var f=_[c];if(!f||Pe(f))return uh.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Fo(g);if(!B(y))return uh.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=H(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?uh.Might:uh.Not;if(t&&e!==`-`)return uh.Must}return uh.Not}var yh=G();function bh(e,t){We(yh.get(e)==null&&t),yh.set(e,t)}function xh(e,t,n){var r=yh.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Sh=es(),Ch=es(),wh=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Mo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Dh(this,Sh,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Oh(this,Sh)},e}();function Th(e,t,n,r){return Dh(e,Ch,Mo(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function Eh(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Dh(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Eh(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Oh(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var kh,Ah,jh,Mh=`\0_ec_inner`,Nh=1,Ph=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Ap(r),this._locale=new Ap(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=zh(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,zh(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?jh(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&I(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=G(),s=t&&t.replaceMergeMainTypeMap;fh(this),I(e,function(e,t){e!=null&&(Zm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?M(e):N(n[t],e,!0))}),s&&s.each(function(e,t){Zm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Zm.topologicalTravel(a,Zm.getAllClassMainTypes(),c,this);function c(t){var a=xh(this,t,Mo(e[t])),o=r.get(t),c=Lo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Xo(c,t,Zm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;I(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=Zm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=P({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),P(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&kh(this)}this._seriesIndices||kh(this)},t.prototype.getOption=function(){var e=M(this.option);return I(e,function(t,n){if(Zm.hasClass(n)){for(var r=Mo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Jo(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Mh],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?De(a,function(e){return!!e}):Lh(`name`,i,a):Lh(`id`,r,a):(o=[],I(Mo(n),function(e){a[e]&&o.push(a[e])})),Rh(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Rh(r?this.queryComponents(r):De(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?De(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(V(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=H(e)?r.get(e):U(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Ko(e,null);return De(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return De(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return De(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Ah(this),I(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){I(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Ah(this),I(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return I(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Ah(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Ah(this);var n=[];I(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=G(n)},t.prototype.restoreData=function(e){kh(this);var t=this._componentsMap,n=[];t.each(function(e,t){Zm.hasClass(t)&&n.push(t)}),Zm.topologicalTravel(n,Zm.getAllClassMainTypes(),function(n){I(t.get(n),function(t){t&&(n!==`series`||!Fh(t,e))&&t.restoreData()})})},t.internalField=function(){kh=function(e){var t=e._seriesIndices=[];I(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=G(t)},Ah=function(e){},jh=function(e,t){e.option={},e.option[Mh]=Nh,e._componentsMap=G({series:[]}),e._componentsCount=G();var n=t.aria;U(n)&&n.enabled==null&&(n.enabled=!0),Ih(t,e._theme.option),N(t,th,!1),e._mergeOption(t,null)}}(),t}(Ap);function Fh(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Ih(e,t){var n=e.color&&!e.colorLayer;I(t,function(t,r){r===`colorLayer`&&n||Zm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function Lh(e,t,n){if(B(t)){var r=G();return I(t,function(e){e!=null&&Ko(e,null)!=null&&r.set(e,!0)}),De(n,function(t){return t&&r.get(t[e])})}else{var i=Ko(t,null);return De(n,function(t){return t&&i!=null&&t[e]===i})}}function Rh(e,t){return t.hasOwnProperty(`subType`)?De(e,function(e){return e&&e.subType===t.subType}):e}function zh(e){var t=G();return e&&I(Mo(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}we(Ph,wh);var Bh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Vh=function(){function e(e){I(Bh,function(t){this[t]=R(e[t],e)},this)}return e}(),Hh={},Uh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];I(Hh,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){I(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Hh[e]=t},e.get=function(e){return Hh[e]},e}(),Wh=/^(min|max)?(.+)$/,Gh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(I(Mo(e.series),function(e){e&&e.data&&Pe(e.data)&&qe(e.data)}),I(Mo(e.dataset),function(e){e&&e.source&&Pe(e.source)&&qe(e.source)})),e=M(e);var r=this._optionBackup,i=Kh(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],M(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=M(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)qh(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Yh(a,this._currentMediaIndices)&&(o=L(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function Kh(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&B(l)&&I(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),I(c,function(e){return f(e)}),I(r,function(e){return f(e.option)});function f(e){I(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function qh(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return I(e,function(e,t){var n=t.match(Wh);if(!(!n||!n[1]||!n[2])){var a=n[1];Jh(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function Jh(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function Yh(e,t){return e.join(`,`)===t.join(`,`)}var Xh=I,Zh=U,Qh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function $h(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Qh.length;n<r;n++){var i=Qh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?N(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?N(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function eg(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,F(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function tg(e){eg(e,`itemStyle`),eg(e,`lineStyle`),eg(e,`areaStyle`),eg(e,`label`),eg(e,`labelLine`),eg(e,`upperLabel`),eg(e,`edgeLabel`)}function ng(e,t){var n=Zh(e)&&e[t],r=Zh(n)&&n.textStyle;if(r)for(var i=0,a=Po.length;i<a;i++){var o=Po[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function rg(e){e&&(tg(e),ng(e,`label`),e.emphasis&&ng(e.emphasis,`label`))}function ig(e){if(Zh(e)){$h(e),tg(e),ng(e,`label`),ng(e,`upperLabel`),ng(e,`edgeLabel`),e.emphasis&&(ng(e.emphasis,`label`),ng(e.emphasis,`upperLabel`),ng(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&($h(t),rg(t));var n=e.markLine;n&&($h(n),rg(n));var r=e.markArea;r&&rg(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!Pe(a))for(var o=0;o<a.length;o++)rg(a[o]);I(e.categories,function(e){tg(e)})}if(i&&!Pe(i))for(var o=0;o<i.length;o++)rg(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)rg(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)B(c[o])?(rg(c[o][0]),rg(c[o][1])):rg(c[o]);e.type===`gauge`?(ng(e,`axisLabel`),ng(e,`title`),ng(e,`detail`)):e.type===`treemap`?(eg(e.breadcrumb,`itemStyle`),I(e.levels,function(e){tg(e)})):e.type===`tree`&&tg(e.leaves)}}function ag(e){return B(e)?e:e?[e]:[]}function og(e){return(B(e)?e[0]:e)||{}}function sg(e,t){Xh(ag(e.series),function(e){Zh(e)&&ig(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Xh(n,function(t){Xh(ag(e[t]),function(e){e&&(ng(e,`axisLabel`),ng(e.axisPointer,`label`))})}),Xh(ag(e.parallel),function(e){var t=e&&e.parallelAxisDefault;ng(t,`axisLabel`),ng(t&&t.axisPointer,`label`)}),Xh(ag(e.calendar),function(e){eg(e,`itemStyle`),ng(e,`dayLabel`),ng(e,`monthLabel`),ng(e,`yearLabel`)}),Xh(ag(e.radar),function(e){ng(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Xh(ag(e.geo),function(e){Zh(e)&&(rg(e),Xh(ag(e.regions),function(e){rg(e)}))}),Xh(ag(e.timeline),function(e){rg(e),eg(e,`label`),eg(e,`itemStyle`),eg(e,`controlStyle`,!0);var t=e.data;B(t)&&I(t,function(e){U(e)&&(eg(e,`label`),eg(e,`itemStyle`))})}),Xh(ag(e.toolbox),function(e){eg(e,`iconStyle`),Xh(e.feature,function(e){eg(e,`iconStyle`)})}),ng(og(e.axisPointer),`label`),ng(og(e.tooltip).axisPointer,`label`)}function cg(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function lg(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function ug(e){e&&I(dg,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var dg=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],fg=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],pg=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function mg(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<pg.length;n++){var r=pg[n][1],i=pg[n][0];t[r]!=null&&(t[i]=t[r])}}function hg(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function gg(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function _g(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function vg(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&vg(e[n].children,t)}function yg(e,t){sg(e,t),e.series=Mo(e.series),I(e.series,function(e){if(U(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),hg(e.label);var n=e.data;if(n&&!Pe(n))for(var r=0;r<n.length;r++)hg(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=cg(e,`pointer.color`);i!=null&&lg(e,`itemStyle.color`,i)}else if(t===`bar`){mg(e),mg(e.backgroundStyle),mg(e.emphasis);var n=e.data;if(n&&!Pe(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(mg(n[r]),mg(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),gg(e),vg(e.data,gg)}else t===`graph`||t===`sankey`?_g(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&F(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),ug(e)}}),e.dataRange&&(e.visualMap=e.dataRange),I(fg,function(t){var n=e[t];n&&(B(n)||(n=[n]),I(n,function(e){ug(e)}))})}function bg(e){var t=G();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(xg)}function xg(e){I(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=po(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Sg=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,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 r=t[n];r.type==null&&_h(this,n)===uh.Must&&(r.type=`ordinal`)}}return e}();function Cg(e){return e instanceof Sg}function wg(e,t,n){n||=Dg(e);var r=t.seriesLayoutBy,i=Og(e,n,r,t.sourceHeader,t.dimensions);return new Sg({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function Tg(e){return new Sg({data:e,sourceFormat:Pe(e)?sh:rh})}function Eg(e){return new Sg({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Dg(e){var t=ch;if(Pe(e))t=sh;else if(B(e)){e.length===0&&(t=ih);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(B(i)||Pe(i)){t=ih;break}else if(U(i)){t=ah;break}}}}else if(U(e)){for(var a in e)if(K(e,a)&&Te(e[a])){t=oh;break}}return t}function Og(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Ag(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?jg(function(e){e!=null&&e!==`-`&&(H(e)?o??=1:o=0)},n,s,10):o=Me(r)?r:+!!r,!i&&o===1&&(i=[],jg(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=kg(e);else if(t===`keyedColumns`)i||(i=[],I(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Fo(e[0]);a=B(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Ag(i),dimensionsDetectedCount:a}}function kg(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return ke(n)}function Ag(e){if(e){var t=G();return L(e,function(e,n){e=U(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function jg(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Mg(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Ng,Pg,Fg,Ig,Lg,Rg=function(){function e(e,t){var n=Cg(e)?e:Tg(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Lg(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Lg=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Ig[Jg(o,s)];P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=R(Vg(o,s),null,i,c,l),e.count=R(Wg(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Ig=(e={},e[ih+`_`+lh]={pure:!0,appendData:i},e[ih+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[ah]={pure:!0,appendData:i},e[oh]={pure:!0,appendData:function(e){var t=this._data;I(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[rh]={appendData:i},e[sh]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),zg=function(e,t,n,r){return e[r]},Bg=(Ng={},Ng[ih+`_`+lh]=function(e,t,n,r){return e[r+t]},Ng[ih+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Ng[ah]=zg,Ng[oh]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},Ng[rh]=zg,Ng);function Vg(e,t){return Bg[Jg(e,t)]}var Hg=function(e,t,n){return e.length},Ug=(Pg={},Pg[ih+`_`+lh]=function(e,t,n){return Math.max(0,e.length-t)},Pg[ih+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Pg[ah]=Hg,Pg[oh]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Pg[rh]=Hg,Pg);function Wg(e,t){return Ug[Jg(e,t)]}var Gg=function(e,t,n){return e[t]},Kg=(Fg={},Fg[ih]=Gg,Fg[ah]=function(e,t,n){return e[n]},Fg[oh]=Gg,Fg[rh]=function(e,t,n){var r=Fo(e);return r instanceof Array?r[t]:r},Fg[sh]=Gg,Fg);function qg(e){return Kg[e]}function Jg(e,t){return e===`arrayRows`?e+`_`+t:e}function Yg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return qg(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Fo(r)),c}}}}var Xg=/\{@(.+?)\}/g,Zg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),V(i))return s.status=t,s.dimensionIndex=r,i(s);if(H(i))return Mm(i,s).replace(Xg,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Yg(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Yg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Qg(e){var t,n;return U(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function $g(e){return new e_(e)}var e_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(B(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){t_.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:t_.next},this.context)},e.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),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),t_=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function n_(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Me(e)&&e!=null&&e!==`-`&&(e=+_o(e)),e==null||e===``?NaN:Number(e))}var r_=G({number:function(e){return parseFloat(e)},time:function(e){return+_o(e)},trim:function(e){return H(e)?Ge(e):e}});function i_(e){return r_.get(e)}var a_={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},o_=function(){function e(e,t){Me(t)||Oo(``),this._opFn=a_[e],this._rvalFloat=Co(t)}return e.prototype.evaluate=function(e){return Me(e)?this._opFn(e,this._rvalFloat):this._opFn(Co(e),this._rvalFloat)},e}(),s_=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Me(e)?e:Co(e),r=Me(t)?t:Co(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),c_=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Co(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Co(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function l_(e,t){return e===`eq`||e===`ne`?new c_(e===`eq`,t):K(a_,e)?new o_(e,t):null}var u_=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return n_(e,t)},e}();function d_(e,t){var n=new u_,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Oo(``);var o=[],s={},c=e.dimensionsDefine;if(c)I(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&Oo(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Vg(i,lh);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=R(f_,null,e)),n.cloneRawData=R(p_,null,e),n.count=R(Wg(i,lh),null,r,a,o);var d=qg(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=R(m_,null,o,s),n.cloneAllDimensionInfo=R(h_,null,o),n}function f_(e){var t=e.sourceFormat;return b_(t)||Oo(``),e.data}function p_(e){var t=e.sourceFormat,n=e.data;if(b_(t)||Oo(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(P({},n[i]));return r}}function m_(e,t,n){if(n!=null){if(Me(n)||!isNaN(n)&&!K(t,n))return e[n];if(K(t,n))return t[n]}}function h_(e){return M(e)}var g_=G();function __(e){e=M(e);var t=e.type,n=``;t||Oo(n);var r=t.split(`:`);r.length!==2&&Oo(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,g_.set(t,e)}function v_(e,t,n){var r=Mo(e),i=r.length;i||Oo(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=y_(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function y_(e,t,n,r){var i=``;t.length||Oo(i),U(e)||Oo(i);var a=e.type,o=g_.get(a);o||Oo(i);var s=L(t,function(e){return d_(e,o)});return L(Mo(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)})),function(e,n){var r=``;U(e)||Oo(r),e.data||Oo(r),b_(Dg(e.data))||Oo(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:lh,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:lh,sourceHeader:0,dimensions:e.dimensions};return wg(e.data,i,null)})}function b_(e){return e===`arrayRows`||e===`objectRows`}var x_=`undefined`,S_=typeof Uint32Array===x_?Array:Uint32Array,C_=typeof Uint16Array===x_?Array:Uint16Array,w_=typeof Int32Array===x_?Array:Int32Array,T_=typeof Float64Array===x_?Array:Float64Array,E_={float:T_,int:w_,ordinal:Array,number:Array,time:T_},D_;function O_(e){return e>65535?S_:C_}function k_(){return[1/0,-1/0]}function A_(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function j_(e,t,n,r,i){var a=E_[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var M_=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=D_[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Mg(r),this._dimensions=L(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new E_[t||`float`](this._rawCount),this._rawExtent[i]=k_(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=k_());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];j_(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=D_.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=L(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=k_()),j_(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n??=1/0;for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=O_(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(O_(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=ke(e),i=r.length;if(!i)return this;var a=t.count(),o=new(O_(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=k_();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(O_(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(O_(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=k_(),d=new(O_(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=k_();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Ee(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?A_(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=M(this._extent),e._rawExtent=M(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return n_(e[r],this._dimensions[r])}D_={arrayRows:e,objectRows:function(e,t,n,r){return n_(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return n_(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),N_=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(F_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=Pe(o)?sh:rh,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[wg(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[wg(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&I_(``);var i,a=[],o=[];return I(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&I_(``),a.push(t),o.push(e._getVersionSign())}),n?i=v_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Eg(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];F_(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new M_,o.initData(new Rg(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(F_(e)){var t=hh(e);return t?[t.getSourceManager()]:[]}else return L(gh(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(F_(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function P_(e){e.option.transform&&qe(e.option.transform)}function F_(e){return e.mainType===`series`}function I_(e){throw Error(e)}var L_=`line-height:1`;function R_(e){var t=e.lineHeight;return t==null?L_:`line-height:`+Bt(t+``)+`px`}function z_(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Bt(r+``)+`px;color:`+Bt(n)+`;font-weight:`+Bt(i+``),valueStyle:`font-size:`+Bt(o+``)+`px;color:`+Bt(a)+`;font-weight:`+Bt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var B_=[0,10,20,30],V_=[``,`
28
+ `,`
29
+
30
+ `,`
31
+
32
+
33
+ `];function H_(e,t){return t.type=e,t}function U_(e){return e.type===`section`}function W_(e){return U_(e)?K_:q_}function G_(e){if(U_(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return I(e.blocks,function(e){var n=G_(e);n>=t&&(t=n+ +(r&&(!n||U_(e)&&!e.noHeader)))}),t}return 0}function K_(e,t,n,r){var i=t.noHeader,a=Y_(G_(t)),o=[],s=t.blocks||[];We(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new s_(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}I(s,function(n,i){var s=t.valueFormatter,c=W_(n)(s?P(P({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):X_(r,o.join(``),i?n:a.html);if(i)return d;var f=km(t.header,`ordinal`,e.useUTC),p=z_(r,e.renderMode).nameStyle,m=R_(r);return e.renderMode===`richText`?$_(e,f,p)+a.richText+d:X_(r,`<div style="`+p+`;`+m+`;">`+Bt(f)+`</div>`+d,n)}function q_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],L(e,function(e,t){return km(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||`#333`,i),f=a?``:km(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=z_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:$_(e,f,v))+(o?``:ev(e,m,h,g,y)):X_(r,(s?``:d)+(a?``:Z_(f,!s,v))+(o?``:Q_(m,h,g,y)),n)}}function J_(e,t,n,r,i,a){if(e)return W_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Y_(e){return{html:B_[e],richText:V_[e]}}function X_(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=R_(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Z_(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Bt(e)+`</span>`}function Q_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],`<span style="`+i+`;`+r+`">`+L(e,function(e){return Bt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function $_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ev(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function tv(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Fm(n)}function nv(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var rv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=To()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Pm({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?I(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function iv(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=tv(t,n),u,d,f,p;if(o>1||c&&!o){var m=av(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Yg(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=qo(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return H_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[H_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Ge(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function av(e,t,n,r,i){var a=t.getData(),o=Ee(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?I(r,function(e){u(Yg(a,n,e),e)}):I(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(H_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var ov=es();function sv(e,t){return e.getName(t)||e.getId(t)}var cv=`__universalTransitionEnabled`,lv=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=$g({count:fv,reset:pv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ov(this).sourceManager=new N_(this)).prepareSource();var r=this.getInitialData(e,n);hv(r,this),this.dataTask.context.data=r,ov(this).dataBeforeProcessed=r,uv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Km(this),r=n?Jm(e):{},i=this.subType;Zm.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),No(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&qm(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Km(this);n&&qm(this.option,e,n);var r=ov(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);hv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ov(this).dataBeforeProcessed=i,uv(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Pe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&No(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=_v(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ov(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=_v(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}ov(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return G(e)},t.prototype.getSourceManager=function(){return ov(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ov(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return iv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(A.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=wh.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=sv(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=ke(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[sv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=sv(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=sv(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Zm.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(Zm);we(lv,Zg),we(lv,wh),bs(lv,Zm);function uv(e){var t=e.name;qo(e)||(e.name=dv(e)||t)}function dv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return I(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function fv(e){return e.model.getRawData().count()}function pv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),mv}function mv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function hv(e,t){I($e(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,z(gv,t))})}function gv(e,t){var n=_v(e);return n&&n.setOutputEnd((t||this).count()),t}function _v(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var vv=function(){function e(){this.group=new J,this.uid=Mp(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();vs(vv),Ts(vv);function yv(){var e=es();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var bv=es(),xv=yv(),Sv=function(){function e(){this.group=new J,this.uid=Mp(`viewChart`),this.renderTask=$g({plan:Tv,reset:Ev}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&wv(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&wv(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){np(this.group,e)},e.markUpdateMethod=function(e,t){bv(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Cv(e,t,n){e&&Hu(e)&&(t===`emphasis`?_u:vu)(e,n)}function wv(e,t,n){var r=$o(e,t),i=t&&t.highlightKey!=null?Wu(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Cv(e,n,i)}):I(Mo(r),function(t){Cv(e.getItemGraphicEl(t),n,i)})}vs(Sv,[`dispose`]),Ts(Sv);function Tv(e){return xv(e.model)}function Ev(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&bv(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Dv[c]}var Dv={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ov=`\0__throttleOriginMethod`,kv=`\0__throttleRate`,Av=`\0__throttleType`;function jv(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Mv(e,t,n,r){var i=e[t];if(i){var a=i[Ov]||i,o=i[Av];if(i[kv]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=jv(a,n,r===`debounce`),i[Ov]=a,i[Av]=r,i[kv]=n}return i}}function Nv(e,t){var n=e[t];n&&n[Ov]&&(n.clear&&n.clear(),e[t]=n[Ov])}var Pv=es(),Fv={itemStyle:Es(Dp,!0),lineStyle:Es(wp,!0)},Iv={lineStyle:`stroke`,itemStyle:`fill`};function Lv(e,t){return e.visualStyleMapper||Fv[t]||(console.warn(`Unknown style type '`+t+`'.`),Fv.itemStyle)}function Rv(e,t){return e.visualDrawType||Iv[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var zv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Lv(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Rv(e,r),c=a[s],l=V(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Bv=new Ap,Vv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Lv(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Bv.option=n[r];var o=i(Bv);P(e.ensureUniqueItemVisual(t,`style`),o),Bv.option.decal&&(e.setItemVisual(t,`decal`,Bv.option.decal),Bv.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Hv={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),Pv(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=Pv(t).scope,o=Rv(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},Uv=Math.PI;function Wv(e,t){t||={},F(t,{text:`loading`,textColor:`#000`,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255, 255, 255, 0.8)`,showSpinner:!0,color:`#5470c6`,spinnerRadius:10,lineWidth:5,zlevel:0});var n=new J,r=new Sl({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new El({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Sl({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new ef({shape:{startAngle:-Uv/2,endAngle:-Uv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Uv*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Uv*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Gv=function(){function e(e,t,n,r){this._stageTaskMap=G(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=G();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;I(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});We(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;I(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=G(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||$g({plan:Xv,reset:Zv,count:ey}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||$g({reset:Kv});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;We(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,I(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,$g({reset:qv,onDirty:Yv})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return V(e)&&(e={overallReset:e,seriesType:ty(e)}),e.uid=Mp(`stageHandler`),t&&(e.visualType=t),e},e}();function Kv(e){e.overallReset(e.ecModel,e.api,e.payload)}function qv(e){return e.overallProgress&&Jv}function Jv(){this.agent.dirty(),this.getDownstream().dirty()}function Yv(){this.agent&&this.agent.dirty()}function Xv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Zv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Mo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?L(t,function(e,t){return $v(t)}):Qv}var Qv=$v(0);function $v(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function ey(e){return e.data.count()}function ty(e){iy=null;try{e(ny,ry)}catch{}return iy}var ny={},ry={},iy;ay(ny,Ph),ay(ry,Vh),ny.eachSeriesByType=ny.eachRawSeriesByType=function(e){iy=e},ny.eachComponent=function(e){e.mainType===`series`&&e.subType&&(iy=e.subType)};function ay(e,t){for(var n in t.prototype)e[n]=nt}var oy=[`#37A2DA`,`#32C5E9`,`#67E0E3`,`#9FE6B8`,`#FFDB5C`,`#ff9f7f`,`#fb7293`,`#E062AE`,`#E690D1`,`#e7bcf3`,`#9d96f5`,`#8378EA`,`#96BFFF`],sy={color:oy,colorLayer:[[`#37A2DA`,`#ffd85c`,`#fd7b5f`],[`#37A2DA`,`#67E0E3`,`#FFDB5C`,`#ff9f7f`,`#E062AE`,`#9d96f5`],[`#37A2DA`,`#32C5E9`,`#9FE6B8`,`#FFDB5C`,`#ff9f7f`,`#fb7293`,`#e7bcf3`,`#8378EA`,`#96BFFF`],oy]},cy=`#B9B8CE`,ly=`#100C2A`,uy=function(){return{axisLine:{lineStyle:{color:cy}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},dy=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],fy={darkMode:!0,color:dy,backgroundColor:ly,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:cy},pageTextStyle:{color:cy}},textStyle:{color:cy},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:cy}},dataZoom:{borderColor:`#71708A`,textStyle:{color:cy},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:cy}},timeline:{lineStyle:{color:cy},label:{color:cy},controlStyle:{color:cy,borderColor:cy}},calendar:{itemStyle:{color:ly},dayLabel:{color:cy},monthLabel:{color:cy},yearLabel:{color:cy}},timeAxis:uy(),logAxis:uy(),valueAxis:uy(),categoryAxis:uy(),line:{symbol:`circle`},graph:{color:dy},gauge:{title:{color:cy},axisLine:{lineStyle:{color:[[1,`rgba(207,212,219,0.2)`]]}},axisLabel:{color:cy},detail:{color:`#EEF1FA`}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}}};fy.categoryAxis.splitLine.show=!1;var py=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(H(e)){var i=hs(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};I(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),my=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],hy=my.concat([`symbolKeepAspect`]),gy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<my.length;o++){var s=my[o],c=e.get(s);V(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(P({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=ke(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},_y={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<hy.length;r++){var i=hy[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function vy(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function yy(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function by(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function xy(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}I([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=P({},t),i.dispatchAction(P(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Sy(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=$o(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:B(l)?c.getName(l[0]):c.getName(l),selected:H(r)?r:P({},r)})}})}function Cy(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Sy(`map`,`selectchanged`,t,r,e),Sy(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Sy(`map`,`selected`,t,r,e),Sy(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Sy(`map`,`unselected`,t,r,e),Sy(`pie`,`unselected`,t,r,e))})}function wy(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Ty=Math.round(Math.random()*9),Ey=typeof Object.defineProperty==`function`,Dy=function(){function e(){this._id=`__ec_inner_`+Ty++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Ey?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Oy=cl.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),ky={line:Jd,rect:Sl,roundRect:Sl,square:Sl,circle:vd,diamond:cl.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:cl.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:cl.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Oy},Ay={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},jy={};I(ky,function(e,t){jy[t]=new e});var My=cl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Ma(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=jy[r];i||=(r=`rect`,jy[r]),Ay[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Ny(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||`#fff`,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Py(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Pf(e.slice(8),new Sn(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Nf(e.slice(7),{},new Sn(t,n,r,i),o?`center`:`cover`):new My({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Ny,a&&c.setColor(a),c}function Fy(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Iy(e,t){if(e!=null)return B(e)||(e=[e,e]),[Y(e[0],t[0])||0,Y(W(e[1],e[0]),t[1])||0]}function Ly(e){return isFinite(e)}function Ry(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Ly(r)?r:0,i=Ly(i)?i:1,a=Ly(a)?a:0,o=Ly(o)?o:0,e.createLinearGradient(r,a,i,o)}function zy(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=Ly(o)?o:.5,s=Ly(s)?s:.5,c=c>=0&&Ly(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function By(e,t,n){for(var r=t.type===`radial`?zy(e,t,n):Ry(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Vy(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Hy(e){return parseInt(e,10)}function Uy(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Hy(s[r])||Hy(e.style[r]))-(Hy(s[a])||0)-(Hy(s[o])||0)|0}function Wy(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Me(e)?[e]:B(e)?e:null}function Gy(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Wy(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=L(n,function(e){return e/i}),r/=i)}return[n,r]}var Ky=new Lc(!0);function qy(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Jy(e){return typeof e==`string`&&e!==`none`}function Yy(e){var t=e.fill;return t!=null&&t!==`none`}function Xy(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Zy(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Qy(e,t,n){var r=js(t.image,t.__image,n);if(Ns(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function $y(e,t,n,r){var i,a=qy(n),o=Yy(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||Ky,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?By(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?By(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?Qy(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?Qy(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=Gy(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&Zy(e,n),o&&Xy(e,n)):(o&&Xy(e,n),a&&Zy(e,n))),w&&e.setLineDash([])}function eb(e,t,n){var r=t.__image=js(n.image,t.__image,t,t.onload);if(!(!r||!Ns(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function tb(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=Gy(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(qy(n)&&e.strokeText(i,n.x,n.y),Yy(n)&&e.fillText(i,n.x,n.y)):(Yy(n)&&e.fillText(i,n.x,n.y),qy(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var nb=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],rb=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function ib(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){hb(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Xs.opacity:o}(r||t.blend!==n.blend)&&(a||=(hb(e,i),!0),e.globalCompositeOperation=t.blend||Xs.blend);for(var s=0;s<nb.length;s++){var c=nb[s];(r||t[c]!==n[c])&&(a||=(hb(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(hb(e,i),!0),e.shadowColor=t.shadowColor||Xs.shadowColor),a}function ab(e,t,n,r,i){var a=gb(t,i.inHover),o=r?null:n&&gb(n,i.inHover)||{};if(a===o)return!1;var s=ib(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(hb(e,i),!0),Jy(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(hb(e,i),!0),Jy(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(hb(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(hb(e,i),!0),e.lineWidth=c)}for(var l=0;l<rb.length;l++){var u=rb[l],d=u[0];(r||a[d]!==o[d])&&(s||=(hb(e,i),!0),e[d]=a[d]||u[1])}return s}function ob(e,t,n,r,i){return ib(e,gb(t,i.inHover),n&&gb(n,i.inHover),r,i)}function sb(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function cb(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),sb(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function lb(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ub=1,db=2,fb=3,pb=4;function mb(e){var t=Yy(e),n=qy(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function hb(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function gb(e,t){return t&&e.__hoverStyle||e.style}function _b(e,t){vb(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vb(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||Vy(a,o))&&(o&&o.length&&(hb(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(hb(e,n),e.save(),cb(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof cl&&t.autoBatch&&mb(t.style);s||lb(i,l.transform)?(hb(e,n),sb(e,t)):u||hb(e,n);var d=gb(t,n.inHover);t instanceof cl?(n.lastDrawType!==ub&&(c=!0,n.lastDrawType=ub),ab(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),$y(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof ul?(n.lastDrawType!==fb&&(c=!0,n.lastDrawType=fb),ab(e,t,l,c,n),tb(e,t,d)):t instanceof ml?(n.lastDrawType!==db&&(c=!0,n.lastDrawType=db),ob(e,t,l,c,n),eb(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==pb&&(c=!0,n.lastDrawType=pb),yb(e,t,n)),u&&r&&hb(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function yb(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),vb(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),vb(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var bb=new Dy,xb=new Tr(100),Sb=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Cb(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&bb.delete(e);var a=bb.get(e);if(a)return a;var o=F(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,bb.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Sb.length;++s){var c=o[Sb[s]];if(c!=null&&!B(c)&&!H(c)&&!Me(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=xb.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Tb(o.dashArrayX),f=Eb(o.dashArrayY),p=wb(o.symbol),m=Db(d),h=Ob(f),g=!i&&oe.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&xb.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Do(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Do(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Py(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else _b(y,u)}}}}function wb(e){if(!e||e.length===0)return[[`rect`]];if(H(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!H(e[n])){t=!1;break}if(t)return wb([e]);for(var r=[],n=0;n<e.length;++n)H(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Tb(e){if(!e||e.length===0)return[[0,0]];if(Me(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Me(e[r])){n=!1;break}if(n)return Tb([e]);for(var i=[],r=0;r<e.length;++r)if(Me(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=L(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Eb(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Me(e)){var t=Math.ceil(e);return[t,t]}var n=L(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Db(e){return L(e,function(e){return Ob(e)})}function Ob(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function kb(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Cb(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Cb(i,t)}}})}var Ab=new Dt,jb={};function Mb(e,t){jb[e]=t}function Nb(e){return jb[e]}var Pb=1,Fb=800,Ib=900,Lb=1e3,Rb=2e3,zb=5e3,Bb=1e3,Vb=1100,Hb=2e3,Ub=3e3,Wb=4e3,Gb=4500,Kb=4600,qb=5e3,Jb=6e3,Yb=7e3,Xb={PROCESSOR:{FILTER:Lb,SERIES_FILTER:Fb,STATISTIC:zb},VISUAL:{LAYOUT:Bb,PROGRESSIVE_LAYOUT:Vb,GLOBAL:Hb,CHART:Ub,POST_CHART_LAYOUT:Kb,COMPONENT:Wb,BRUSH:qb,CHART_ITEM:Gb,ARIA:Jb,DECAL:Yb}},Zb=`__flagInMainProcess`,Qb=`__pendingUpdate`,$b=`__needsUpdateStatus`,ex=/^[a-zA-Z0-9_]+$/,tx=`__connectUpdateStatus`,nx=0,rx=1,ix=2;function ax(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return sx(this,e,t)}}function ox(e){return function(){var t=[...arguments];return sx(this,e,t)}}function sx(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Dt.prototype[t].apply(e,n)}var cx=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Dt),lx=cx.prototype;lx.on=ox(`on`),lx.off=ox(`off`);var ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,Tx,Ex,Dx,Ox,kx=function(e){O(t,e);function t(t,n,r){var i=e.call(this,new py)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},H(n)&&(n=Lx[n]),i._dom=t;var a=`canvas`,o=`auto`,s=!1;r.ssr&&to(function(e){var t=X(e),n=t.dataIndex;if(n!=null){var r=G();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=Za(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:W(r.useDirtyRect,s),useCoarsePointer:W(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=jv(R(c.flush,c),17),n=M(n),n&&yg(n,!0),i._theme=n,i._locale=Gp(r.locale||Up),i._coordSysMgr=new Uh;var l=i._api=Tx(i);function u(e,t){return e.__prio-t.__prio}return Un(Ix,u),Un(Px,u),i._scheduler=new Gv(i,l,Px,Ix),i._messageCenter=new cx,i._initEvents(),i.resize=R(i.resize,i),c.animation.on(`frame`,i._onframe,i),yx(c,i),bx(c,i),qe(i),i}return t.prototype._onframe=function(){if(!this._disposed){Ox(this);var e=this._scheduler;if(this[Qb]){var t=this[Qb].silent;this[Zb]=!0;try{ux(this),px.update.call(this,null,this[Qb].updateParams)}catch(e){throw this[Zb]=!1,this[Qb]=null,e}this._zr.flush(),this[Zb]=!1,this[Qb]=null,_x.call(this,t),vx.call(this,t)}else if(e.unfinished){var n=Pb,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),hx(this,r),e.performVisualTasks(r),Cx(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Zb]){if(this._disposed){this.id;return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Zb]=!0,!this._model||t){var o=new Gh(this._api),s=this._theme,c=this._model=new Ph;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Fx);var l={seriesTransition:a,optionChanged:!0};if(n)this[Qb]={silent:r,updateParams:l},this[Zb]=!1,this.getZr().wakeUp();else{try{ux(this),px.update.call(this,null,l)}catch(e){throw this[Qb]=null,this[Zb]=!1,e}this._ssr||this._zr.flush(),this[Qb]=null,this[Zb]=!1,_x.call(this,r),vx.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||A.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(A.svgSupported){var e=this._zr;return I(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;I(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return I(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Bx[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();I(zx,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=oe.createCanvas(),h=Za(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return I(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Sl({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),I(u,function(e){var t=new ml({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t){return mx(this,`convertToPixel`,e,t)},t.prototype.convertFromPixel=function(e,t){return mx(this,`convertFromPixel`,e,t)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return I(ns(n,e),function(e,n){n.indexOf(`Models`)>=0&&I(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=ns(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?yy(i,t):vy(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(jx,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&wy(i,function(e){var t=X(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=P({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)}),I(Nx,function(t,n){e._messageCenter.on(n,function(e){this.trigger(n,e)},e)}),I([`selectchanged`],function(t){e._messageCenter.on(t,function(e){this.trigger(t,e)},e)}),Cy(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&ss(this.getDom(),Hx,``);var e=this,t=e._api,n=e._model;I(e._componentsViews,function(e){e.dispose(n,t)}),I(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete zx[e.id]},t.prototype.resize=function(e){if(!this[Zb]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[Qb]&&(r??=this[Qb].silent,n=!0,this[Qb]=null),this[Zb]=!0;try{n&&ux(this),px.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[Zb]=!1,e}this[Zb]=!1,_x.call(this,r),vx.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Rx[e]){var n=Rx[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=Nx[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(U(t)||(t={silent:!!t}),Mx[e.type]&&this._model){if(this[Zb]){this._pendingActions.push(e);return}var n=t.silent;gx.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&A.browser.weChat&&this._throttledZrFlush(),_x.call(this,n),vx.call(this,n)}},t.prototype.updateLabelLayout=function(){Ab.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ux=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),dx(e,!0),dx(e,!1),t.plan()},dx=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=hs(e.type);u=new(t?vv.getClass(d.main,d.sub):Sv.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},fx=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){I([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=G(),I(Mo(c),function(e){var t=Ko(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(Ku(n))if(t instanceof lv)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Du(t,n,e._api);else{var r=Ou(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Eu(t.mainType,t.componentIndex,e._api),a&&I(a,function(e){n.type===`highlight`?_u(e):vu(e)})}else Gu(n)&&t instanceof lv&&(ju(t,n,e._api),Mu(t),Dx(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},px={prepareAndUpdate:function(e){ux(this),px.update.call(this,e,{optionChanged:e.newOption!=null})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),hx(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),xx(this,r,i,t,n);var c=r.get(`backgroundColor`)||`transparent`,l=r.get(`darkMode`);a.setBackgroundColor(c),l!=null&&l!==`auto`&&a.setDarkMode(l),Ab.trigger(`afterupdate`,r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if(e!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,t);c&&c.update&&a.push(s)}else a.push(s)}});var o=G();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),Cx(this,r,i,t,{},o),Ab.trigger(`afterupdate`,r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Sv.markUpdateMethod(t,`updateView`),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),xx(this,n,this._api,t,{}),Ab.trigger(`afterupdate`,n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),Sv.markUpdateMethod(t,`updateVisual`),e(r),this._scheduler.performVisualTasks(r,t,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(e,i){if(e!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),Ab.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){px.update.call(this,e)}},mx=function(e,t,n,r){if(e._disposed){e.id;return}for(var i=e._model,a=e._coordSysMgr.getCoordinateSystems(),o,s=ns(i,n),c=0;c<a.length;c++){var l=a[c];if(l[t]&&(o=l[t](i,s,r))!=null)return o}},hx=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},gx=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=Mx[i],s=o.actionInfo,c=(s.update||`update`).split(`:`),l=c.pop(),u=c[0]!=null&&hs(c[0]);this[Zb]=!0;var d=[e],f=!1;e.batch&&(f=!0,d=L(e.batch,function(t){return t=F(P({},t),e),t.batch=null,t}));var p=[],m,h=Gu(e),g=Ku(e);if(g&&wu(this._api),I(d,function(t){if(m=o.action(t,n._model,n._api),m||=P({},t),m.type=s.event||m.type,p.push(m),g){var r=rs(e),i=r.queryOptionMap,a=r.mainTypeSpecified?i.keys()[0]:`series`;fx(n,l,t,a),Dx(n)}else h?(fx(n,l,t,`series`),Dx(n)):u&&fx(n,l,t,u.main,u.sub)}),l!==`none`&&!g&&!h&&!u)try{this[Qb]?(ux(this),px.update.call(this,e),this[Qb]=null):px[l].call(this,e)}catch(e){throw this[Zb]=!1,e}if(m=f?{type:s.event||i,escapeConnect:a,batch:p}:p[0],this[Zb]=!1,!t){var _=this._messageCenter;if(_.trigger(m.type,m),h){var v={type:`selectchanged`,escapeConnect:a,selected:Nu(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};_.trigger(v.type,v)}}},_x=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();gx.call(this,n,e)}},vx=function(e){!e&&this.trigger(`updated`)},yx=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Qb]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},bx=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=wy(n,Hu);r&&(ku(r,e,t._api),Dx(t))}).on(`mouseout`,function(e){var n=e.target,r=wy(n,Hu);r&&(Au(r,e,t._api),Dx(t))}).on(`click`,function(e){var n=e.target,r=wy(n,function(e){return X(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=X(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Un(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),I(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}xx=function(e,n,r,i,a){t(n),Sx(e,n,r,i,a),I(e._chartsViews,function(e){e.__alive=!1}),Cx(e,n,r,i,a),I(e._chartsViews,function(e){e.__alive||e.remove(n,r)})},Sx=function(e,t,n,r,i,o){I(o||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),a(i,e),c(i,e)})},Cx=function(e,t,n,o,l,u){var d=e._scheduler;l=P(l||{},{updatedSeries:t.getSeries()}),Ab.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;d.updatePayload(r,o),s(t,n),u&&u.get(t.uid)&&r.dirty(),r.perform(d.getPerformArgs(r))&&(f=!0),n.group.silent=!!t.get(`silent`),i(t,n),Mu(t)}),d.unfinished=f||d.unfinished,Ab.trigger(`series:layoutlabels`,t,n,l),Ab.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];a(t,n),c(t,n)}),r(e,t),Ab.trigger(`series:afterupdate`,t,n,l)},Dx=function(e){e[$b]=!0,e.getZr().wakeUp()},Ox=function(e){e[$b]&&(e.getZr().storage.traverse(function(e){vf(e)||n(e)}),e[$b]=!1)};function n(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function r(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!A.node&&!A.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function i(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function a(e,t){if(!e.preventAutoZ){var n=e.get(`z`)||0,r=e.get(`zlevel`)||0;t.eachRendered(function(e){return o(e,n,r,-1/0),!0})}}function o(e,t,n,r){var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),c=0;c<s.length;c++)r=Math.max(o(s[c],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(l&&l.showAbove?1:-1))}return r}function s(e,t){t.eachRendered(function(e){if(!vf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var r=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=r.get(`duration`),o=a>0?{duration:a,delay:r.get(`delay`),easing:r.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(vf(e))return;if(e instanceof cl&&qu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&n(e)}})}Tx=function(e){return new(function(t){O(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){_u(t,n),Dx(e)},n.prototype.leaveEmphasis=function(t,n){vu(t,n),Dx(e)},n.prototype.enterBlur=function(t){yu(t),Dx(e)},n.prototype.leaveBlur=function(t){bu(t),Dx(e)},n.prototype.enterSelect=function(t){xu(t),Dx(e)},n.prototype.leaveSelect=function(t){Su(t),Dx(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Vh))(e)},Ex=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[tx]=t}}I(Nx,function(n,r){e._messageCenter.on(r,function(n){if(Bx[e.group]&&e[tx]!==nx){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];I(zx,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,nx),I(i,function(e){e[tx]!==rx&&e.dispatchAction(r)}),t(i,ix)}})})}}(),t}(Dt),Ax=kx.prototype;Ax.on=ax(`on`),Ax.off=ax(`off`),Ax.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var jx=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],Mx={},Nx={},Px=[],Fx=[],Ix=[],Lx={},Rx={},zx={},Bx={},Vx=new Date-0;new Date-0;var Hx=`_echarts_instance_`;function Ux(e,t,n){var r=!(n&&n.ssr);if(r){var i=Wx(e);if(i)return i}var a=new kx(e,t,n);return a.id=`ec_`+Vx++,zx[a.id]=a,r&&ss(e,Hx,a.id),Ex(a),Ab.trigger(`afterinit`,a),a}function Wx(e){return zx[cs(e,Hx)]}function Gx(e,t){Lx[e]=t}function Kx(e){Se(Fx,e)<0&&Fx.push(e)}function qx(e,t){nS(Px,e,t,Rb)}function Jx(e){Xx(`afterinit`,e)}function Yx(e){Xx(`afterupdate`,e)}function Xx(e,t){Ab.on(e,t)}function Zx(e,t,n){V(t)&&(n=t,t=``);var r=U(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Nx[t]&&(We(ex.test(r)&&ex.test(t)),Mx[r]||(Mx[r]={action:n,actionInfo:e}),Nx[t]=r)}function Qx(e,t){Uh.register(e,t)}function $x(e,t){nS(Ix,e,t,Bb,`layout`)}function eS(e,t){nS(Ix,e,t,Ub,`visual`)}var tS=[];function nS(e,t,n,r,i){if((V(t)||U(t))&&(n=t,t=r),!(Se(tS,n)>=0)){tS.push(n);var a=Gv.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function rS(e,t){Rx[e]=t}function iS(e,t,n){var r=Nb(`registerMap`);r&&r(e,t,n)}var aS=__;eS(Hb,zv),eS(Gb,Vv),eS(Gb,Hv),eS(Hb,gy),eS(Gb,_y),eS(Yb,kb),Kx(yg),qx(Ib,bg),rS(`default`,Wv),Zx({type:ql,event:ql,update:ql},nt),Zx({type:Jl,event:Jl,update:Jl},nt),Zx({type:Yl,event:Yl,update:Yl},nt),Zx({type:Xl,event:Xl,update:Xl},nt),Zx({type:Zl,event:Zl,update:Zl},nt),Gx(`light`,sy),Gx(`dark`,fy);var oS=[],sS={registerPreprocessor:Kx,registerProcessor:qx,registerPostInit:Jx,registerPostUpdate:Yx,registerUpdateLifecycle:Xx,registerAction:Zx,registerCoordinateSystem:Qx,registerLayout:$x,registerVisual:eS,registerTransform:aS,registerLoading:rS,registerMap:iS,registerImpl:Mb,PRIORITY:Xb,ComponentModel:Zm,ComponentView:vv,SeriesModel:lv,ChartView:Sv,registerComponentModel:function(e){Zm.registerClass(e)},registerComponentView:function(e){vv.registerClass(e)},registerSeriesModel:function(e){lv.registerClass(e)},registerChartView:function(e){Sv.registerClass(e)},registerSubTypeDefaulter:function(e,t){Zm.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Qa(e,t)}};function cS(e){if(B(e)){I(e,function(e){cS(e)});return}Se(oS,e)>=0||(oS.push(e),V(e)&&(e={install:e}),e.install(sS))}function lS(e){return e==null?0:e.length||1}function uS(e){return e}var dS=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||uS,this._newKeyGetter=r||uS,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=lS(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=lS(c),d=lS(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=lS(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=lS(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),fS=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function pS(e,t){var n={},r=n.encode={},i=G(),a=[],o=[],s={};I(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;mS(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),gS(n.type)&&(a[0]=t),mS(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}nh.each(function(e,t){var i=mS(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=L(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new fS(s,t),n}function mS(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function hS(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function gS(e){return!(e===`ordinal`||e===`time`)}var _S=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),vS=es(),yS={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},bS=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=CS(this.source))},e.prototype.getSourceDimensionIndex=function(e){return W(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Mg(this.source),n=!wS(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=yS[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function xS(e){return e instanceof bS}function SS(e){for(var t=G(),n=0;n<(e||[]).length;n++){var r=e[n],i=U(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function CS(e){var t=vS(e);return t.dimNameMap||=SS(e.dimensionsDefine)}function wS(e){return e>30}var TS=U,ES=L,DS=typeof Int32Array>`u`?Array:Int32Array,OS=`e\0\0`,kS=-1,AS=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],jS=[`_approximateExtent`],MS,NS,PS,FS,IS,LS,RS,zS=function(){function e(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,r=!1;xS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=H(u)?new _S({name:u}):u instanceof _S?u:new _S(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),p.itemName===0&&(this._nameDimIdx=l),p.itemId===0&&(this._idDimIdx=l),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=G();I(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.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 r=this._schema.getSourceDimension(t);if(r)return r.name},e.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},e.prototype._recognizeDimIndex=function(e){if(Me(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof M_&&(i=e),!i){var a=this.dimensions,o=Cg(e)||Te(e)?new Rg(e,a.length):e;i=new M_;var s=ES(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=pS(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&RS(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Io(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Ko(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Ko(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)RS(this,o);MS(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){TS(e)?P(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=PS(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return NS(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return B(e)?r.getValues(ES(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?kS:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){V(e)&&(n=t,t=e,e=[]);var r=n||this,i=ES(FS(e),this._getStoreDimIndex,this);this._store.each(i,r?R(t,r):t)},e.prototype.filterSelf=function(e,t,n){V(e)&&(n=t,t=e,e=[]);var r=n||this,i=ES(FS(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=ke(e),i=[];return I(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){V(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=ES(FS(e),this._getStoreDimIndex,this),o=LS(this);return o._store=this._store.map(a,i?R(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=ES(FS(e),this._getStoreDimIndex,this);this._store.modify(a,i?R(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=LS(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=LS(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=LS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Ap(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new dS(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return NS(e,t)},function(e){return NS(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},TS(e)?P(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():TS(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,TS(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){TS(e)?P(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Bl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){I(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:ES(this.dimensions,this._getDimInfo,this),this.hostModel),IS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(He(arguments)))})},e.internalField=function(){MS=function(e){var t=e._invertedIndicesMap;I(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new DS(a.categories.length);for(var s=0;s<n.length;s++)n[s]=kS;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},PS=function(e,t,n){return Ko(e._getCategory(t,n),null)},NS=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=PS(e,e._idDimIdx,t)),n??=OS+t,n},FS=function(e){return B(e)||(e=e==null?[]:[e]),e},LS=function(t){var n=new e(t._schema?t._schema:ES(t.dimensions,t._getDimInfo,t),t.hostModel);return IS(n,t),n},IS=function(e,t){I(AS.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,I(jS,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},RS=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=PS(e,i,t)),s==null&&a!=null&&(r[t]=s=PS(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function BS(e,t){Cg(e)||(e=Tg(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=HS(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&wS(o),c=r===e.dimensionsDefine,l=c?CS(e):SS(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new w_(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=U(n)?n:{name:n},o=new _S,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Mo(e).slice();if(n.length===1&&!H(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);I(n,function(e,n){var i=H(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;I(n,function(e){var t,n,r,i;if(H(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=P({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Mo(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}I(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(F(o,i),t,a),o.name==null&&n){var s=n[a];!U(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){nh.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)I(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=US(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(_h(e,S)===uh.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return VS(a),new bS({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function VS(e){for(var t=G(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function HS(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return I(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function US(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var WS=function(){function e(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return e}();function GS(e){var t=e.get(`coordinateSystem`),n=new WS(t),r=KS[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var KS={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,is).models[0],a=e.getReferringComponents(`yAxis`,is).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),qS(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),qS(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,is).models[0];t.coordSysDims=[`single`],n.set(`single`,i),qS(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,is).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),qS(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),qS(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),qS(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})}};function qS(e){return e.get(`type`)===`category`}function JS(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;YS(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(I(a,function(e,t){H(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;I(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function YS(e){return!xS(e.schema)}function XS(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function ZS(e,t){return XS(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function QS(e,t){var n=e.get(`coordinateSystem`),r=Uh.get(n),i;return t&&t.coordSysDims&&(i=L(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=hS(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function $S(e,t,n){var r,i;return n&&I(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function eC(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Tg(e)):(i=r.getSource(),a=i.sourceFormat===rh);var o=GS(t),s=QS(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?z(ph,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=BS(i,u),f=$S(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=JS(t,{schema:d,store:p}),h=new zS(d,t);h.setCalculationInfo(m);var g=f!=null&&tC(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function tC(e){if(e.sourceFormat===`original`)return!B(Fo(nC(e.data||[])))}function nC(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var rC=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Ts(rC);var iC=0,aC=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++iC}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&L(r,oC);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=G(this.categories)},e}();function oC(e){return U(e)&&e.value!=null?e.value:e+``}function sC(e){return e.type===`interval`||e.type===`log`}function cC(e,t,n,r){var i={},a=i.interval=bo((e[1]-e[0])/t,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var o=i.intervalPrecision=uC(a);return fC(i.niceTickExtent=[oo(Math.ceil(e[0]/a)*a,o),oo(Math.floor(e[1]/a)*a,o)],e),i}function lC(e){var t=10**yo(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,oo(n*t)}function uC(e){return co(e)+2}function dC(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function fC(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),dC(e,0,t),dC(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function pC(e,t){return e>=t[0]&&e<=t[1]}function mC(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function hC(e,t){return e*(t[1]-t[0])+t[0]}var gC=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new aC({}),B(r)&&(r=new aC({categories:L(r,function(e){return U(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),pC(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),mC(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hC(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(c),r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(rC);rC.registerClass(gC);var _C=oo,vC=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return pC(e,this._extent)},t.prototype.normalize=function(e){return mC(e,this._extent)},t.prototype.scale=function(e){return hC(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=uC(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]<r[0]&&(e?a.push({value:_C(r[0]-t,i)}):a.push({value:n[0]}));for(var s=r[0];s<=r[1]&&(a.push({value:s}),s=_C(s+t,i),s!==a[a.length-1].value);)if(a.length>o)return[];var c=a.length?a[a.length-1].value:r[1];return n[1]>c&&(e?a.push({value:_C(c+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,c=[],l=(a.value-o.value)/e;s<e-1;){var u=_C(o.value+(s+1)*l);u>r[0]&&u<r[1]&&c.push(u),s++}n.push(c)}return n},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=co(e.value)||0:n===`auto`&&(n=this._intervalPrecision),Em(_C(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=cC(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=_C(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=_C(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}(rC);rC.registerClass(vC);var yC=typeof Float32Array<`u`,bC=yC?Float32Array:Array;function xC(e){return B(e)?yC?new Float32Array(e):e:new bC(e)}var SC=`__ec_stack_`;function CC(e){return e.get(`stack`)||SC+e.seriesIndex}function wC(e){return e.dim+e.index}function TC(e){var t=[],n=e.axis,r=`axis0`;if(n.type===`category`){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(F({bandWidth:i,axisKey:r,stackId:SC+a},e));for(var o=kC(t),s=[],a=0;a<e.count;a++){var c=o[r][SC+a];c.offsetCenter=c.offset+c.width/2,s.push(c)}return s}}function EC(e,t){var n=[];return t.eachSeriesByType(e,function(e){NC(e)&&n.push(e)}),n}function DC(e){var t={};I(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function OC(e){var t=DC(e),n=[];return I(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=Y(e.get(`barWidth`),a),f=Y(e.get(`barMaxWidth`),a),p=Y(e.get(`barMinWidth`)||(PC(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,axisKey:wC(r),stackId:CC(e)})}),kC(n)}function kC(e){var t={};I(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:`20%`,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return I(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=ke(r).length;a=Math.max(35-o*4,15)+`%`}var s=Y(a,i),c=Y(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),I(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;I(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;I(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function AC(e,t,n){if(e&&t){var r=e[wC(t)];return r!=null&&n!=null?r[CC(n)]:r}}function jC(e,t){var n=EC(e,t),r=OC(n);I(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=CC(e),a=r[wC(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function MC(e){return{seriesType:e,plan:yv(),reset:function(e){if(NC(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=XS(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=FC(r,i),p=PC(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&xC(r*3),c=p&&s&&xC(r*3),l=p&&xC(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var ee=n.dataToPoint([E,w]);T=ee[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var ee=n.dataToPoint([w,E]);T=ee[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function NC(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function PC(e){return e.pipelineContext&&e.pipelineContext.large}function FC(e,t){var n=t.model.get(`startValue`);return n||=0,t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var IC=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},LC=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return cm(e.value,tm[sm(am(this._minLevelUnit))]||tm.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return lm(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting(`useUTC`),i=KC(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(i),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Zp,t[1]+=Zp),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Zp}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var a=RC.length,o=Math.min(IC(RC,this._approxInterval,0,a),a-1);this._interval=RC[o][1],this._minLevelUnit=RC[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return Me(e)?e:+_o(e)},t.prototype.contain=function(e){return pC(this.parse(e),this._extent)},t.prototype.normalize=function(e){return mC(this.parse(e),this._extent)},t.prototype.scale=function(e){return hC(e,this._extent)},t.type=`time`,t}(vC),RC=[[`second`,Jp],[`minute`,Yp],[`hour`,Xp],[`quarter-day`,Xp*6],[`half-day`,Xp*12],[`day`,Zp*1.2],[`half-week`,Zp*3.5],[`week`,Zp*7],[`month`,Zp*31],[`quarter`,Zp*95],[`half-year`,Qp/2],[`year`,Qp]];function zC(e,t,n,r){var i=_o(t),a=_o(n),o=function(e){return dm(i,e,r)===dm(a,e,r)},s=function(){return o(`year`)},c=function(){return s()&&o(`month`)},l=function(){return c()&&o(`day`)},u=function(){return l()&&o(`hour`)},d=function(){return u()&&o(`minute`)},f=function(){return d()&&o(`second`)},p=function(){return f()&&o(`millisecond`)};switch(e){case`year`:return s();case`month`:return c();case`day`:return l();case`hour`:return u();case`minute`:return d();case`second`:return f();case`millisecond`:return p()}}function BC(e,t){return e/=Zp,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function VC(e){var t=30*Zp;return e/=t,e>6?6:e>3?3:e>2?2:1}function HC(e){return e/=Xp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function UC(e,t){return e/=t?Yp:Jp,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WC(e){return bo(e,!0)}function GC(e,t,n){var r=new Date(e);switch(am(t)){case`year`:case`month`:r[bm(n)](0);case`day`:r[xm(n)](1);case`hour`:r[Sm(n)](0);case`minute`:r[Cm(n)](0);case`second`:r[wm(n)](0),r[Tm(n)](0)}return r.getTime()}function KC(e,t,n,r){var i=1e4,a=rm,o=0;function s(e,t,n,i,a,o,s){for(var c=new Date(t),l=t,u=c[i]();l<n&&l<=r[1];)s.push({value:l}),u+=e,c[a](u),l=c.getTime();s.push({value:l,notAdd:!0})}function c(e,i,a){var o=[],c=!i.length;if(!zC(am(e),r[0],r[1],n)){c&&(i=[{value:GC(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Zp/365)),p=fm(n),m=ym(n);break;case`half-year`:case`quarter`:case`month`:f=VC(t),p=pm(n),m=bm(n);break;case`week`:case`half-week`:case`day`:f=BC(t,31),p=mm(n),m=xm(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=HC(t),p=hm(n),m=Sm(n);break;case`minute`:f=UC(t,!0),p=gm(n),m=Cm(n);break;case`second`:f=UC(t,!1),p=_m(n),m=wm(n);break;case`millisecond`:f=WC(t),p=vm(n),m=Tm(n);break}s(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l]);return o}}for(var l=[],u=[],d=0,f=0,p=0;p<a.length&&o++<i;++p){var m=am(a[p]);if(om(a[p])&&(c(a[p],l[l.length-1]||[],u),m!==(a[p+1]?am(a[p+1]):null))){if(u.length){f=d,u.sort(function(e,t){return e.value-t.value});for(var h=[],g=0;g<u.length;++g){var _=u[g].value;(g===0||u[g-1].value!==_)&&(h.push(u[g]),_>=r[0]&&_<=r[1]&&d++)}var v=(r[1]-r[0])/t;if(d>v*1.5&&f>v/1.5||(l.push(h),d>v||e===a[p]))break}u=[]}}for(var y=De(L(l,function(e){return De(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),b=[],x=y.length-1,p=0;p<y.length;++p)for(var S=y[p],C=0;C<S.length;++C)b.push({value:S[C].value,level:x-p});b.sort(function(e,t){return e.value-t.value});for(var w=[],p=0;p<b.length;++p)(p===0||b[p].value!==b[p-1].value)&&w.push(b[p]);return w}rC.registerClass(LC);var qC=rC.prototype,JC=vC.prototype,YC=oo,XC=Math.floor,ZC=Math.ceil,QC=Math.pow,$C=Math.log,ew=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new vC,t._interval=0,t}return t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return L(JC.getTicks.call(this,e),function(e){var t=e.value,i=oo(QC(this.base,t));return i=t===n[0]&&this._fixMin?nw(i,r[0]):i,i=t===n[1]&&this._fixMax?nw(i,r[1]):i,{value:i}},this)},t.prototype.setExtent=function(e,t){var n=$C(this.base);e=$C(Math.max(0,e))/n,t=$C(Math.max(0,t))/n,JC.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=qC.getExtent.call(this);t[0]=QC(e,t[0]),t[1]=QC(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=nw(t[0],n[0])),this._fixMax&&(t[1]=nw(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=$C(e[0])/$C(t),e[1]=$C(e[1])/$C(t),qC.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=vo(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[oo(ZC(t[0]/r)*r),oo(XC(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){JC.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=$C(e)/$C(this.base),pC(e,this._extent)},t.prototype.normalize=function(e){return e=$C(e)/$C(this.base),mC(e,this._extent)},t.prototype.scale=function(e){return e=hC(e,this._extent),QC(this.base,e)},t.type=`log`,t}(rC),tw=ew.prototype;tw.getMinorTicks=JC.getMinorTicks,tw.getLabel=JC.getLabel;function nw(e,t){return YC(e,co(t))}rC.registerClass(ew);var rw=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;V(a)?this._modelMinNum=sw(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=sw(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(V(o)?this._modelMaxNum=sw(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=sw(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=B(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ja(c[0],1),ja(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=ze(o)||ze(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[aw[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=iw[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),iw={min:`_determinedMin`,max:`_determinedMax`},aw={min:`_dataMin`,max:`_dataMax`};function ow(e,t,n){var r=e.rawExtentInfo;return r||(r=new rw(e,t,n),e.rawExtentInfo=r,r)}function sw(e,t){return t==null?null:ze(t)?NaN:e.parse(t)}function cw(e,t){var n=e.type,r=ow(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=EC(`bar`,o),c=!1;if(I(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=OC(s),u=lw(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function lw(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=AC(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;I(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;I(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function uw(e,t){var n=t,r=cw(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof ew&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function dw(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new gC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new LC({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((rC.getClass(t))||vC)}}function fw(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function pw(e){var t=e.getLabelModel().get(`formatter`),n=e.type===`category`?e.scale.getExtent()[0]:null;return e.scale.type===`time`?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):H(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)}}(t):V(t)?function(t){return function(r,i){return n!=null&&(i=r.value-n),t(mw(e,r),i,r.level==null?null:{level:r.level})}}(t):function(t){return e.scale.getLabel(t)}}function mw(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function hw(e){var t=e.model,n=e.scale;if(!(!t.get([`axisLabel`,`show`])||n.isBlank())){var r,i,a=n.getExtent();n instanceof gC?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=pw(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=gw(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c}}function gw(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Sn(e.x,e.y,a,o)}function _w(e){return e.get(`interval`)??`auto`}function vw(e){return e.type===`category`&&_w(e.getLabelModel())===0}function yw(e,t){var n={};return I(e.mapDimensionsAll(t),function(t){n[ZS(e,t)]=!0}),ke(n)}function bw(e,t,n){t&&I(yw(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}var xw=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Sw=1e-8;function Cw(e,t){return Math.abs(e-t)<Sw}function ww(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Gc(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!Cw(i[0],s[0])||!Cw(i[1],s[1]))&&(r+=Gc(i[0],i[1],s[0],s[1],t,n)),r!==0}var Tw=[];function Ew(e,t){for(var n=0;n<e.length;n++)St(e[n],e[n],t)}function Dw(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ct(t,t,a),wt(n,n,a))}}function Ow(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var kw=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),Aw=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),jw=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),Mw=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return Ow(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return I(i,function(t){t.type===`polygon`?Dw(t.exterior,n,r,e):I(t.points,function(t){Dw(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Sn(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(ww(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(ww(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new Sn(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(Ew(u.exterior,s),I(u.interiors,function(e){Ew(e,s)})):I(u.points,function(e){Ew(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(kw),Nw=function(e){O(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=an(Tw),i=e;i&&!i.isGeoSVGGraphicRoot;)sn(r,i.getLocalTransform(),r),i=i.parent;return dn(r,r),St(n,n,r),n},t}(kw);function Pw(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return I(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=Iw(i,r,n);break;case`Polygon`:Fw(i,r,n);break;case`MultiLineString`:Fw(i,r,n);break;case`MultiPolygon`:I(i,function(e,t){return Fw(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function Fw(e,t,n){for(var r=0;r<e.length;r++)e[r]=Iw(e[r],t[r],n)}function Iw(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function Lw(e,t){return e=Pw(e),L(De(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new Aw(a[0],a.slice(1)));break;case`MultiPolygon`:I(r.coordinates,function(e){e[0]&&i.push(new Aw(e[0],e.slice(1)))});break;case`LineString`:i.push(new jw([r.coordinates]));break;case`MultiLineString`:i.push(new jw(r.coordinates))}var o=new Mw(n[t||`name`],i,n.cp);return o.properties=n,o})}var Rw=es();function zw(e,t){var n=L(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Bw(e){var t=e.getLabelModel().get(`customValues`);if(t){var n=pw(e),r=e.scale.getExtent();return{labels:L(De(zw(e,t),function(e){return e>=r[0]&&e<=r[1]}),function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return e.type===`category`?Hw(e):Gw(e)}function Vw(e,t){var n=e.getTickModel().get(`customValues`);if(n){var r=e.scale.getExtent();return{ticks:De(zw(e,n),function(e){return e>=r[0]&&e<=r[1]})}}return e.type===`category`?Ww(e,t):{ticks:L(e.scale.getTicks(),function(e){return e.value})}}function Hw(e){var t=e.getLabelModel(),n=Uw(e,t);return!t.get(`show`)||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Uw(e,t){var n=Kw(e,`labels`),r=_w(t),i=qw(n,r);if(i)return i;var a,o;return V(r)?a=$w(e,r):(o=r===`auto`?Yw(e):r,a=Qw(e,o)),Jw(n,r,{labels:a,labelCategoryInterval:o})}function Ww(e,t){var n=Kw(e,`ticks`),r=_w(t),i=qw(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=$w(e,r,!0);else if(r===`auto`){var s=Uw(e,e.getLabelModel());o=s.labelCategoryInterval,a=L(s.labels,function(e){return e.tickValue})}else o=r,a=Qw(e,o,!0);return Jw(n,r,{ticks:a,tickCategoryInterval:o})}function Gw(e){var t=e.scale.getTicks(),n=pw(e);return{labels:L(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}function Kw(e,t){return Rw(e)[t]||(Rw(e)[t]=[])}function qw(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Jw(e,t,n){return e.push({key:t,value:n}),n}function Yw(e){return Rw(e).autoInterval??(Rw(e).autoInterval=e.calculateCategoryInterval())}function Xw(e){var t=Zw(e),n=pw(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var c=a[0],l=e.dataToCoord(c+1)-e.dataToCoord(c),u=Math.abs(l*Math.cos(r)),d=Math.abs(l*Math.sin(r)),f=0,p=0;c<=a[1];c+=s){var m=0,h=0,g=Da(n({value:c}),t.font,`center`,`top`);m=g.width*1.3,h=g.height*1.3,f=Math.max(f,m,7),p=Math.max(p,h,7)}var _=f/u,v=p/d;isNaN(_)&&(_=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(_,v))),b=Rw(e.model),x=e.getExtent(),S=b.lastAutoInterval,C=b.lastTickCount;return S!=null&&C!=null&&Math.abs(S-y)<=1&&Math.abs(C-o)<=1&&S>y&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?y=S:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=x[0],b.axisExtent1=x[1]),y}function Zw(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function Qw(e,t,n){var r=pw(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=vw(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return s}function $w(e,t,n){var r=e.scale,i=pw(e),a=[];return I(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})}),a}var eT=[0,1],tT=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return uo(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&r.type===`ordinal`&&(n=n.slice(),nT(n,r.count())),ao(e,eT,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),nT(n,r.count()));var i=ao(e,n,eT,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=Vw(this,t).ticks,r=L(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return rT(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),L(this.scale.getMinorTicks(e),function(e){return L(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return Bw(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+ +!!this.onBand;n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Xw(this)},e}();function nT(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function rT(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;I(t,function(e){e.coord-=l/2});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1]});function f(e,t){return e=oo(e),t=oo(t),d?e>t:e<t}}var iT=Math.PI*2,aT=Lc.CMD,oT=[`top`,`right`,`bottom`,`left`];function sT(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function cT(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%iT<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Hc(i),i=Hc(f)}else r=Hc(r),i=Hc(i);r>i&&(i+=iT);var p=Math.atan2(s,o);if(p<0&&(p+=iT),p>=r&&p<=i||p+iT>=r&&p+iT<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function lT(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function uT(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var dT=[];function fT(e,t,n){var r=uT(t.x,t.y,t.width,t.height,e.x,e.y,dT);return n.set(dT[0],dT[1]),r}function pT(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case aT.M:a=u[p++],o=u[p++],r=a,i=o;break;case aT.L:h=lT(r,i,u[p],u[p+1],d,f,dT,!0),r=u[p++],i=u[p++];break;case aT.C:h=dr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,dT),r=u[p++],i=u[p++];break;case aT.Q:h=vr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,dT),r=u[p++],i=u[p++];break;case aT.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=cT(g,_,y,b,b+x,S,C,f,dT),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case aT.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=uT(a,o,w,T,d,f,dT);break;case aT.Z:h=lT(r,i,a,o,d,f,dT,!0),r=a,i=o;break}h<l&&(l=h,n.set(dT[0],dT[1]))}return l}var mT=new pn,hT=new pn,gT=new pn,_T=new pn,vT=new pn;function yT(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||oT,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&dn([],u),f=t.get(`length2`)||0;l&&gT.copy(l);for(var p=0;p<o.length;p++){var m=o[p];sT(m,0,s,mT,_T),pn.scaleAndAdd(hT,mT,_T,f),hT.transform(d);var h=e.getBoundingRect(),g=l?l.distance(hT):e instanceof cl?pT(hT,e.path,gT):fT(hT,h,gT);g<c&&(c=g,hT.transform(u),gT.transform(u),gT.toArray(a[0]),hT.toArray(a[1]),mT.toArray(a[2]))}ST(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var bT=[],xT=new pn;function ST(e,t){if(t<=180&&t>0){t=t/180*Math.PI,mT.fromArray(e[0]),hT.fromArray(e[1]),gT.fromArray(e[2]),pn.sub(_T,mT,hT),pn.sub(vT,gT,hT);var n=_T.len(),r=vT.len();if(!(n<.001||r<.001)){_T.scale(1/n),vT.scale(1/r);var i=_T.dot(vT);if(Math.cos(t)<i){var a=lT(hT.x,hT.y,gT.x,gT.y,mT.x,mT.y,bT,!1);xT.fromArray(bT),xT.scaleAndAdd(vT,a/Math.tan(Math.PI-t));var o=gT.x===hT.x?(xT.y-hT.y)/(gT.y-hT.y):(xT.x-hT.x)/(gT.x-hT.x);if(isNaN(o))return;o<0?pn.copy(xT,hT):o>1&&pn.copy(xT,gT),xT.toArray(e[1])}}}}function CT(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,mT.fromArray(e[0]),hT.fromArray(e[1]),gT.fromArray(e[2]),pn.sub(_T,hT,mT),pn.sub(vT,gT,hT);var r=_T.len(),i=vT.len();if(!(r<.001||i<.001)&&(_T.scale(1/r),vT.scale(1/i),_T.dot(t)<Math.cos(n))){var a=lT(hT.x,hT.y,gT.x,gT.y,mT.x,mT.y,bT,!1);xT.fromArray(bT);var o=Math.PI/2,s=o+Math.acos(vT.dot(t))-n;if(s>=o)pn.copy(xT,gT);else{xT.scaleAndAdd(vT,a/Math.tan(Math.PI/2-s));var c=gT.x===hT.x?(xT.y-hT.y)/(gT.y-hT.y):(xT.x-hT.x)/(gT.x-hT.x);if(isNaN(c))return;c<0?pn.copy(xT,hT):c>1&&pn.copy(xT,gT)}xT.toArray(e[1])}}}function wT(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function TT(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=vt(r[0],r[1]),a=vt(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=xt([],r[1],r[0],o/i),c=xt([],r[1],r[2],o/a),l=xt([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function ET(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Kl.length;c++){var l=Kl[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:W(i.states[l]&&i.states[l].ignore,s))||!W(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&wT(r,!0,l,u);continue}r||(r=new Gd,e.setTextGuideLine(r),!d&&(s||!o)&&wT(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),wT(r,!1,l,u)}}if(r){F(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=TT}}function DT(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Gl.length;r++){var i=Gl[r];n[i]=e.getModel([i,t])}return n}function OT(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,c=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=c/2,l.y-=c/2,l.width+=c,l.height+=c;var u=s?new uf(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:l,localRect:o,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function kT(e,t,n,r,i,a){var o=e.length;if(o<2)return;e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var s=0,c,l=!1,u=[],d=0,f=0;f<o;f++){var p=e[f],m=p.rect;c=m[t]-s,c<0&&(m[t]-=c,p.label[t]-=c,l=!0);var h=Math.max(-c,0);u.push(h),d+=h,s=m[t]+m[n]}d>0&&a&&S(-d/o,0,o);var g=e[0],_=e[o-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[t]-r,y=i-_.rect[t]-_.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,o);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(n,r,i){n!==0&&(l=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function C(r,i){for(var a=[],s=0,c=1;c<o;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[t]-l[t]-l[n],0);a.push(u),s+=u}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(var c=0;c<o-1;c++){var f=a[c]*d;S(f,0,c+1)}else for(var c=o-1;c>0;c--){var f=a[c-1]*d;S(-f,c,o)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?S(n,0,r+1):S(-n,o-r-1,o),e-=n,e<=0)return}return l}function AT(e,t,n,r){return kT(e,`x`,`width`,t,n,r)}function jT(e,t,n,r){return kT(e,`y`,`height`,t,n,r)}function MT(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new Sn(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,c=a.transform,l=a.label,u=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,f=!1,p=0;p<t.length;p++){var m=t[p];if(n.intersect(m.rect)){if(o&&m.axisAligned){f=!0;break}if(m.obb||=new uf(m.localRect,m.transform),d||=new uf(s,c),d.intersect(m.obb)){f=!0;break}}}f?(r(l),u&&r(u)):(l.attr(`ignore`,a.defaultAttr.ignore),u&&u.attr(`ignore`,a.defaultAttr.labelGuideIgnore),t.push(a))}}function NT(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function PT(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:NT(r&&r.shape.points)}}var FT=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],IT=new xa,LT=es(),RT=es();function zT(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var BT=[`x`,`y`,`rotation`],VT=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Sn.applyTransform(c,c,s),s?IT.setLocalTransform(s):(IT.x=IT.y=IT.rotation=IT.originX=IT.originY=0,IT.scaleX=IT.scaleY=1),IT.rotation=Hc(IT.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Sn.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:IT.x,y:IT.y,scaleX:IT.scaleX,scaleY:IT.scaleY,rotation:IT.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(V(r)||ke(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=X(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){yT(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=V(a.layoutOption)?a.layoutOption(PT(a,s)):a.layoutOption,l||={},a.computedLayoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Y(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Y(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=LT(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<FT.length;m++){var h=FT[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=OT(this._labelList),i=De(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=De(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});AT(i,0,t),jT(a,0,n),MT(De(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;I(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=LT(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=X(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);ET(e,DT(o),s),yT(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!vf(e))){var i=LT(n),a=i.oldLayout,o=X(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(Se(u,`select`)>=0&&n.attr(i.oldLayoutSelect),Se(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),gf(n,c,t,s)}else if(n.attr(c),!_p(n).valueAnimation){var d=W(n.style.opacity,1);n.style.opacity=0,_f(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};zT(f,c,BT),zT(f,n.states.select,BT)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};zT(p,c,BT),zT(p,n.states.emphasis,BT)}yp(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=RT(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),gf(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,_f(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),HT=es();function UT(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=HT(t).labelManager;r||=HT(t).labelManager=new VT,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=HT(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var WT=Math.sin,GT=Math.cos,KT=Math.PI,qT=Math.PI*2,JT=180/KT,YT=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=ei(u-qT)||(l?c>=qT:-c>=qT),f=c>0?c%qT:c%qT+qT,p=!1;p=d?!0:!ei(u)&&f>=KT==!!l;var m=e+n*GT(a),h=t+r*WT(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*JT);if(d){var _=1/this._p,v=(l?1:-1)*(qT-_);this._add(`A`,n,r,g,1,+l,e+n*GT(a+v),t+r*WT(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*GT(o),b=t+r*WT(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),XT=`none`,ZT=Math.round;function QT(e){var t=e.fill;return t!=null&&t!==XT}function $T(e){var t=e.stroke;return t!=null&&t!==XT}var eE=[`lineCap`,`miterLimit`,`lineJoin`],tE=L(eE,function(e){return`stroke-`+e.toLowerCase()});function nE(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof ml){e(`opacity`,i);return}if(QT(t)){var a=Qr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,XT);if($T(t)){var s=Qr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=Gy(n),p=f[0],m=f[1];p&&(m=ZT(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,XT);for(var h=0;h<eE.length;h++){var g=eE[h];if(r||t[g]!==al[g]){var _=t[g]||al[g];_&&e(tE[h],_)}}}else r&&e(`stroke`,XT)}var rE=`http://www.w3.org/2000/svg`,iE=`http://www.w3.org/1999/xlink`,aE=`http://www.w3.org/2000/xmlns/`,oE=`http://www.w3.org/XML/1998/namespace`,sE=`ecmeta_`;function cE(e){return document.createElementNS(rE,e)}function lE(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function uE(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function dE(e){return`</`+e+`>`}function fE(e,t){t||={};var n=t.newline?`
34
+ `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return uE(i,a)+(i===`style`?o||``:Bt(o))+(t?``+n+L(t,function(e){return r(e)}).join(n)+n:``)+dE(i)}return r(e)}function pE(e,t,n){n||={};var r=n.newline?`
35
+ `:``,i=` {`+r,a=r+`}`,o=L(ke(e),function(t){return t+i+L(ke(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=L(ke(t),function(e){return`@keyframes `+e+i+L(ke(t[e]),function(n){return n+i+L(ke(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function mE(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function hE(e,t,n,r){return lE(`svg`,`root`,{width:e,height:t,xmlns:rE,"xmlns:xlink":iE,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var gE=0;function _E(){return gE++}var vE={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`},yE=`transform-origin`;function bE(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new YT;return i.reset(hi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function xE(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[yE]=n+`px `+r+`px`)}var SE={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function CE(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function wE(e,t,n){var r=e.shape.paths,i={},a,o;if(I(r,function(e){var t=mE(n.zrId);t.animation=!0,EE(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ke(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=CE(i,n);return a.replace(o,s)}}function TE(e){return H(e)?vE[e]?`cubic-bezier(`+vE[e]+`)`:xr(e)?e:``:``}function EE(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof tf){var s=wE(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=TE(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=TE(d.easing),m=d.rawValue;(H(m)||Me(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};Ca(g,e),P(g,s[h]);var _=gi(g),v=s[h][u];l[h]=_?{transform:_}:{},xE(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Lc);var S=y.len();y.reset(),l[h].d=bE(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return SE[e]})}for(var w=ke(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][yE]!==l[O][yE]){T=!1;break}E=l[D][yE]}if(T&&E){for(var h in l)l[h][yE]&&delete l[h][yE];t[yE]=E}if(De(w,function(e){return ke(l[e]).length>0}).length)return CE(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+_E();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function DE(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};OE(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Xr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),OE(r,t,n,!0)}}function OE(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+_E(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var kE=Math.round;function AE(e){return e&&H(e.src)}function jE(e){return e&&V(e.toDataURL)}function ME(e,t,n,r){nE(function(i,a){var o=i===`fill`||i===`stroke`;o&&pi(a)?qE(t,e,i,r):o&&ui(a)?JE(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),KE(n,e,r)}function NE(e,t){var n=eo(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[sE+`silent`]=`true`))}function PE(e){return ei(e[0]-1)&&ei(e[1])&&ei(e[2])&&ei(e[3]-1)}function FE(e){return ei(e[4])&&ei(e[5])}function IE(e,t,n){if(t&&!(FE(t)&&PE(t))){var r=n?10:1e4;e.transform=PE(t)?`translate(`+kE(t[4]*r)/r+` `+kE(t[5]*r)/r+`)`:ri(t)}}function LE(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(kE(r[a][0]*n)/n),i.push(kE(r[a][1]*n)/n);t.points=i.join(` `)}function RE(e){return!e.smooth}function zE(e){var t=L(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=kE(o*r)/r)}}}var BE={circle:[zE([`cx`,`cy`,`r`])],polyline:[LE,RE],polygon:[LE,RE]};function VE(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function HE(e,t){var n=e.style,r=e.shape,i=BE[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&hi(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&VE(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new YT,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return IE(a,e.transform),ME(a,n,e,t),NE(a,e),t.animation&&EE(e,a,t),t.emphasis&&DE(e,a,t),lE(s,e.id+``,a)}function UE(e,t){var n=e.style,r=n.image;if(r&&!H(r)&&(AE(r)?r=r.src:jE(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),IE(c,e.transform),ME(c,n,e,t),NE(c,e),t.animation&&EE(e,c,t),lE(`image`,e.id+``,c)}}function WE(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=ai(n.y||0,Aa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":ii[n.textAlign]||n.textAlign};if(Ml(n)){var c=``,l=n.fontStyle,u=Al(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),IE(s,e.transform),ME(s,n,e,t),NE(s,e),t.animation&&EE(e,s,t),lE(`text`,e.id+``,s,void 0,r)}}function GE(e,t){if(e instanceof cl)return HE(e,t);if(e instanceof ml)return UE(e,t);if(e instanceof ul)return WE(e,t)}function KE(e,t,n){var r=e.style;if(oi(r)){var i=si(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Qr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=lE(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[lE(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=mi(o)}}function qE(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(di(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(fi(i))a=`radialGradient`,o.cx=W(i.x,.5),o.cy=W(i.y,.5),o.r=W(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=ni(s[l].offset)*100+`%`,f=s[l].color,p=Qr(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(lE(`stop`,l+``,g))}var _=fE(lE(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=lE(a,y,o,c)),t[n]=mi(y)}function JE(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(ci(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(H(h)?m=h:AE(h)?m=h.src:jE(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;We(f,g),We(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=js(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=lE(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=gi(i);x&&(o.patternTransform=x);var S=lE(`pattern`,``,o,[d]),C=fE(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=lE(`pattern`,T,o,[d])),t[n]=mi(T)}}function YE(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=lE(`clipPath`,a,o,[HE(e,n)])}t[`clip-path`]=mi(a)}function XE(e){return document.createTextNode(e)}function ZE(e,t,n){e.insertBefore(t,n)}function QE(e,t){e.removeChild(t)}function $E(e,t){e.appendChild(t)}function eD(e){return e.parentNode}function tD(e){return e.nextSibling}function nD(e,t){e.textContent=t}var rD=58,iD=120,aD=lE(``,``);function oD(e){return e===void 0}function sD(e){return e!==void 0}function cD(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function lD(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function uD(e){var t,n=e.children,r=e.tag;if(sD(r)){var i=e.elm=cE(r);if(pD(aD,e),B(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&$E(i,uD(a))}else sD(e.text)&&!U(e.text)&&$E(i,XE(e.text))}else e.elm=XE(e.text);return e.elm}function dD(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&ZE(e,uD(a),t)}}function fD(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(sD(i.tag)?QE(eD(i.elm),i.elm):QE(e,i.elm))}}function pD(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===iD?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(aE,n,o):n.charCodeAt(3)===rD?r.setAttributeNS(oE,n,o):n.charCodeAt(5)===rD?r.setAttributeNS(iE,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function mD(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:lD(o,l)?(hD(o,l),o=t[++r],l=n[++i]):lD(s,u)?(hD(s,u),s=t[--a],u=n[--c]):lD(o,u)?(hD(o,u),ZE(e,o.elm,tD(s.elm)),o=t[++r],u=n[--c]):lD(s,l)?(hD(s,l),ZE(e,s.elm,o.elm),s=t[--a],l=n[++i]):(oD(d)&&(d=cD(t,r,a)),f=d[l.key],oD(f)?ZE(e,uD(l),o.elm):(p=t[f],p.tag===l.tag?(hD(p,l),t[f]=void 0,ZE(e,p.elm,o.elm)):ZE(e,uD(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,dD(e,m,n,i,c)):fD(e,t,r,a))}function hD(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(pD(e,t),oD(t.text)?sD(r)&&sD(i)?r!==i&&mD(n,r,i):sD(i)?(sD(e.text)&&nD(n,``),dD(n,null,i,0,i.length-1)):sD(r)?fD(n,r,0,r.length-1):sD(e.text)&&nD(n,``):e.text!==t.text&&(sD(r)&&fD(n,r,0,r.length-1),nD(n,t.text)))}function gD(e,t){if(lD(e,t))hD(e,t);else{var n=e.elm,r=eD(n);uD(t),r!==null&&(ZE(r,t.elm,tD(n)),fD(r,[e],0,0))}return t}var _D=0,vD=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=yD(`refreshHover`),this.configLayer=yD(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+_D++,this._oldVNode=hE(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=cE(`svg`);pD(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,gD(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return GE(e,mE(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=mE(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=bD(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=lE(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=L(ke(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(lE(`defs`,`defs`,{},c)),e.animation){var l=pE(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=lE(`style`,`stl`,{},[],l);a.push(u)}}return hE(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},fE(this.renderToVNode({animation:W(e.cssAnimation,!0),emphasis:W(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:W(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};YE(d[g],_,t);var v=lE(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=GE(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=Uy(r,0,n),t=Uy(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(ui(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=_i(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function yD(e){return function(){}}function bD(e,t,n,r){var i;if(n&&n!==`none`)if(i=lE(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),pi(n))qE({fill:n},i.attrs,`fill`,r);else if(ui(n))JE({style:{fill:n},dirty:nt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Qr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function xD(e){e.registerPainter(`svg`,vD)}function SD(e,t,n){var r=oe.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}var CD=function(e){at(t,e);function t(t,n,r){var i=e.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 a;r||=la,typeof t==`string`?a=SD(t,n,r):U(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(tt(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=SD(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Sn(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Sn(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Sn(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Sn(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;Ie(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||By(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):Le(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Qy(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&I(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(Dt),wD=1e5,TD=314159,ED=.01,DD=.001;function OD(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function kD(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}var AD=function(){function e(e,t,n,r){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=P({},n||{}),this.dpr=n.devicePixelRatio||la,this._singleCanvas=i,this.root=e,e.style&&(tt(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new CD(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[TD]=u,u.zlevel=TD,a.push(TD),this._domRoot=e}else{this._width=Uy(e,0,n),this._height=Uy(e,1,n);var d=this._domRoot=kD(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(wD),i||(i=n.ctx,i.save()),vb(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(wD)},e.prototype.paintOne=function(e,t){_b(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Jn(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(TD).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return A.wxa&&I(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(vb(o,e,i,a),e.setPrevPaintRect(s))}else vb(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=TD);var n=this._layers[e];return n||(n=new CD(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?N(n,this._layerConfig[e],!0):this._layerConfig[e-ED]&&N(n,this._layerConfig[e-ED],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&OD(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+DD,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?ED:0),this._needsManuallyCompositing),l.__builtin__||be(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,I(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+ED){var a=this._layers[i];N(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(Se(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=Uy(i,0,r),t=Uy(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].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(TD).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[TD].dom;var t=new CD(`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 r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];vb(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function jD(e){e.registerPainter(`canvas`,AD)}var MD=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return eC(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new J,n=Py(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=Py(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=`#fff`,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(lv);function ND(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Yg(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Yg(e,t,n[o]));return a.join(` `)}}function PD(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!B(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var FD=function(e){O(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=Py(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=ID,this._symbolType=e,this.add(a)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){_u(this.childAt(0))},t.prototype.downplay=function(){vu(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=a!==this._symbolType,l=i&&i.disableAnimation;if(c){var u=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,u)}else{var d=this.childAt(0);d.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};l?d.attr(f):gf(d,f,o,n),Sf(d)}if(this._updateCommon(e,n,s,r,i),c){var d=this.childAt(0);if(!l){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,_f(d,f,o,n)}}l&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=sp(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Iy(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof ml){var S=a.style;a.useStyle(P({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(P({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;op(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):ND(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Iu(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=X(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&yf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();yf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Fy(e.getItemVisual(t,`symbolSize`))},t}(J);function ID(e,t){this.parent.drift(e,t)}function LD(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function RD(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function zD(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:sp(t),cursorStyle:t.get(`cursor`)}}var BD=function(){function e(e){this.group=new J,this._SymbolCtor=e||FD}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=RD(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=zD(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(LD(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!LD(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):gf(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zD(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=RD(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(LD(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function VD(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=HD(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=L(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return XS(t,d[0])&&(f=!0,d[0]=p),XS(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function HD(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Me(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function UD(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function WD(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function GD(e,t,n,r,i,a,o,s){for(var c=WD(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=VD(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=UD(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=xC(ee),ne=xC(ee),re=xC(ee),ie=xC(ee),ae=[],y=0;y<m.length;y++){var oe=m[y],se=y*2,ce=oe*2;te[se]=l[ce],te[se+1]=l[ce+1],ne[se]=u[ce],ne[se+1]=u[ce+1],re[se]=d[ce],re[se+1]=d[ce+1],ie[se]=f[ce],ie[se+1]=f[ce+1],ae[y]=p[oe]}return{current:te,next:ne,stackedOnCurrent:re,stackedOnNext:ie,status:ae}}var KD=Math.min,qD=Math.max;function JD(e,t){return isNaN(e)||isNaN(t)}function YD(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(JD(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;JD(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||JD(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){ne=Math.abs(A),re=Math.abs(j);var ie=E>0?1:-1;p=_-ie*ne*o,m=v,O=_+ie*re*o,k=v}else if(s===`y`){ne=Math.abs(ee),re=Math.abs(te);var ae=D>0?1:-1;p=_,m=v-ae*ne*o,O=_,k=v+ae*re*o}else ne=Math.sqrt(A*A+ee*ee),re=Math.sqrt(j*j+te*te),T=re/(re+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=KD(O,qD(S,_)),k=KD(k,qD(C,v)),O=qD(O,KD(S,_)),k=qD(k,KD(C,v)),E=O-_,D=k-v,p=_-E*ne/re,m=v-D*ne/re,p=KD(p,qD(l,_)),m=KD(m,qD(u,v)),p=qD(p,KD(l,_)),m=qD(m,KD(u,v)),E=_-p,D=v-m,O=_+E*re/ne,k=v+D*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var XD=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),ZD=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new XD},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&JD(n[i*2-2],n[i*2-1]);i--);for(;r<i&&JD(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=YD(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Lc.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?lr(i,u,f,m,e,s):lr(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?sr(a,d,p,h,b):sr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(cl),QD=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XD),$D=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new QD},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&JD(n[a*2-2],n[a*2-1]);a--);for(;i<a&&JD(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=YD(e,n,i,a,a,1,t.smooth,o,t.connectNulls);YD(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(cl);function eO(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Sl({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=V(i)?function(e){i(e,d)}:null;_f(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function tO(e,t,n){var r=e.getArea(),i=oo(r.r0,1),a=oo(r.r,1),o=new Ld({shape:{cx:oo(e.cx,1),cy:oo(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,_f(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function nO(e,t,n,r,i){return e?e.type===`polar`?tO(e,t,n):e.type===`cartesian2d`?eO(e,t,n,r,i):null:null}function rO(e,t){return e.type===t}function iO(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function aO(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function oO(e,t){var n=aO(e),r=n[0],i=n[1],a=aO(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function sO(e){return Me(e)?e:e?.5:0}function cO(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=xC(r*2),a=0;a<r;a++){var o=UD(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function lO(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function uO(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Wr((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function dO(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=L(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=uO(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;I(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new rf(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function fO(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&pO(a,t))){var o=t.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function pO(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(FD.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function mO(e,t){return isNaN(e)||isNaN(t)}function hO(e){for(var t=e.length/2;t>0&&mO(e[t*2-2],e[t*2-1]);t--);return t-1}function gO(e,t){return[e[t*2],e[t*2+1]]}function _O(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function vO(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Gl.length;t++)if(e.get([Gl[t],`endLabel`,`show`]))return!0;return!1}function yO(e,t,n,r){if(rO(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=vO(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=eO(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return tO(t,n,r)}function bO(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var xO=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new J,t=new BD;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=R(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=VD(r,a,_),y=g&&cO(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&fO(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=dO(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=lO(y,c,r,w,x),c=lO(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Fm(E)),m.setClipPath(yO(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Fm(E));var D=m.getClipPath();D?_f(D,{shape:yO(this,r,!1,e).shape},e):m.setClipPath(yO(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!iO(this._stackedOnPoints,y)||!iO(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=lO(y,c,r,w,x),c=lO(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(F(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Bu(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}X(f).seriesIndex=e.seriesIndex,Iu(f,k,A,j);var te=sO(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var re=a.getCalculationInfo(`stackedOnSeries`),ie=0;p.useStyle(F(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),re&&(ie=sO(re.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:ie,smoothMonotone:ne,connectNulls:x}),Bu(p,e,`areaStyle`),X(p).seriesIndex=e.seriesIndex,Iu(p,k,A,j)}var ae=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){X(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=$o(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new FD(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Sv.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=$o(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Sv.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;cu(this._polyline,e),t&&cu(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new ZD({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new $D({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);V(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=V(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=V(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(vO(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new El({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=hO(o);c>=0&&(op(a,sp(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?ND(i,e):PD(i,n)},enableTextSetter:!0},bO(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=_O(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=gO(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=ds(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=gO(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=_p(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=GD(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=lO(u.stackedOnCurrent,u.current,n,i,o),d=lO(u.current,null,n,i,o),m=lO(u.stackedOnNext,u.next,n,i,o),p=lO(u.next,null,n,i,o)),oO(d,p)>3e3||c&&oO(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),gf(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),gf(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Sv);function SO(e,t){return{seriesType:e,plan:yv(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=L(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);XS(n,o[0])&&(o[0]=c),XS(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&xC(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var CO={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},wO=function(e){return Math.round(e.length/2)};function TO(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;H(i)?p=CO[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,wO))}}}}}function EO(e){e.registerChartView(xO),e.registerSeriesModel(MD),e.registerLayout(SO(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,TO(`line`))}var DO=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return eC(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)I(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`},t}(lv);lv.registerClass(DO);var OO=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return eC(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Fp(DO.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:`#212121`}},realtimeSort:!1}),t}(DO),kO=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),AO=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new kO},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(cl);function jO(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Ma(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+NO(m,s+_,!1),x=u+p*y(m)+PO(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+NO(m,-s+_,!1),x=u+p*y(m)+PO(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+NO(h,s+_,!0),x=u+p*y(h)+PO(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+NO(h,-s+_,!0),x=u+p*y(h)+PO(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Ma(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function MO(e,t,n,r){if(Me(r)){e.setTextConfig({rotation:r});return}else if(B(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function NO(e,t,n){return t*Math.sin(e)*(n?-1:1)}function PO(e,t,n){return t*Math.cos(e)*(n?1:-1)}function FO(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;B(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:L(r,function(e){return ja(e,i)})}}var IO=Math.max,LO=Math.min;function RO(e,t){var n=e.getArea&&e.getArea();if(rO(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var zO=function(e){O(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=HO(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=RO(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=JO[s.type](a,e),n=ak(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=JO[s.type](a,t,n);if(h&&S(t),!(!a.hasValue(t)||!qO[s.type](r))){var o=!1;f&&(o=BO[s.type](p,r));var g=VO[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),ZO(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?UO(d,u,g,r,t,l,!1,!1):_f(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=JO[s.type](a,t,r);if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=JO[s.type](a,t),E=ik(l,T,s);gf(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!qO[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=BO[s.type](p,C),O&&i.remove(D)),D?Sf(D):D=VO[s.type](e,a,t,C,l,u,c.model,!!D,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=_p(k);A.prevValue!=null&&(A.prevValue=A.value)}}else ZO(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?UO(d,u,D,C,t,l,!0,x):gf(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&xf(n,e,t)}).execute();var C=this._backgroundGroup||=new J;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),tk(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),tk(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&nO(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:L(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){xf(t,e,X(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Sv),BO={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=IO(t.x,e.x),s=LO(t.x+t.width,i),c=IO(t.y,e.y),l=LO(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=LO(t.r,e.r),a=IO(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},VO={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Sl({shape:P({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?AO:Ld,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=jO(XO(i),{isRoundCap:l===AO}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?gf:_f)(u,{shape:p},a)}return u}};function HO(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function UO(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?gf:_f)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?gf:_f)(n,{shape:l},u,i)}function WO(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var GO=[`x`,`y`,`width`,`height`],KO=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],qO={cartesian2d:function(e){return!WO(e,GO)},polar:function(e){return!WO(e,KO)}},JO={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?QO(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function YO(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function XO(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function ZO(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;P(u,FO(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=sp(r);op(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:ND(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,MO(e,h===`outside`?f:h,XO(o),r.get([`label`,`rotate`]))}vp(m,p,a.getRawValue(n),function(e){return PD(t,e)});var g=r.getModel([`emphasis`]);Iu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Bu(e,r),YO(i)&&(e.style.fill=`none`,e.style.stroke=`none`,I(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function QO(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var $O=function(){function e(){}return e}(),ek=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new $O},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(cl);function tk(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new ek({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new ek({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,X(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,nk),d.on(`mousemove`,nk)),n&&n.push(d)}var nk=jv(function(e){var t=this,n=rk(t,e.offsetX,e.offsetY);X(t).dataIndex=n>=0?n:null},30,!1);function rk(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function ik(e,t,n){if(rO(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function ak(e,t,n){return new(e.type===`polar`?Ld:Sl)({shape:ik(t,n,e),silent:!0,z2:0})}function ok(e){e.registerChartView(zO),e.registerSeriesModel(OO),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,z(jC,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MC(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,TO(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var sk=Math.PI*2,ck=Math.PI/180;function lk(e,t){return Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uk(e,t){var n=lk(e,t),r=e.get(`center`),i=e.get(`radius`);B(i)||(i=[0,i]);var a=Y(n.width,t.getWidth()),o=Y(n.height,t.getHeight()),s=Math.min(a,o),c=Y(i[0],s/2),l=Y(i[1],s/2),u,d,f=e.coordinateSystem;if(f){var p=f.dataToPoint(r);u=p[0]||0,d=p[1]||0}else B(r)||(r=[r,r]),u=Y(r[0],a)+n.x,d=Y(r[1],o)+n.y;return{cx:u,cy:d,r0:c,r:l}}function dk(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=lk(e,n),a=uk(e,n),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=-e.get(`startAngle`)*ck,d=e.get(`endAngle`),f=e.get(`padAngle`)*ck;d=d===`auto`?u-sk:-d*ck;var p=e.get(`minAngle`)*ck+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Ic(S,!_),u=S[0],d=S[1];var w=fk(e);w.startAngle=u,w.endAngle=d,w.clockwise=_;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:i,r:c}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:v?NaN:c});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,a=0,u=0;f>r?(a=O+x*r/2,u=a):(a=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:a,endAngle:u,clockwise:_,cx:o,cy:s,r0:l,r:v?ao(e,b,[l,c]):c}),O=i}),E<sk&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var fk=es();function pk(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var mk=Math.PI/180;function hk(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;_k(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}jT(e,c,c+o)&&d(e)}function gk(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;vk(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!vk(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,_k(m,g)}}hk(l,t,n,r,1,i,a,o,s,d),hk(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!vk(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function _k(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){var d=a.height;if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var f=r.getBoundingRect();r.setStyle(`width`,Math.ceil(f.width)),r.setStyle(`backgroundColor`,o)}else{var p=t-c,m=t<u?p:n?p>e.unconstrainedWidth?null:p:null;r.setStyle(`width`,m)}var h=r.getBoundingRect();a.width=h.width;var g=(r.style.margin||0)+2.1;a.height=h.height+g,a.y-=(a.height-d)/2}}}function vk(e){return e.position===`center`}function yk(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*mk,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),h=s.getTextGuideLine(),g=t.getItemModel(e),_=g.getModel(`label`),v=_.get(`position`)||g.get([`emphasis`,`label`,`position`]),y=_.get(`distanceToLabelLine`),b=_.get(`alignTo`),x=Y(_.get(`edgeDistance`),l),S=_.get(`bleedMargin`),C=g.getModel(`labelLine`),w=C.get(`length`);w=Y(w,l);var T=C.get(`length2`);if(T=Y(T,l),Math.abs(d.endAngle-d.startAngle)<o){I(f.states,p),f.ignore=!0,h&&(I(h.states,p),h.ignore=!0);return}if(m(f)){var E=(d.startAngle+d.endAngle)/2,D=Math.cos(E),O=Math.sin(E),k,A,j,ee;r=d.cx,i=d.cy;var te=v===`inside`||v===`inner`;if(v===`center`)k=d.cx,A=d.cy,ee=`center`;else{var ne=(te?(d.r+d.r0)/2*D:d.r*D)+r,re=(te?(d.r+d.r0)/2*O:d.r*O)+i;if(k=ne+D*3,A=re+O*3,!te){var ie=ne+D*(w+c-d.r),ae=re+O*(w+c-d.r),oe=ie+(D<0?-1:1)*T,se=ae;k=b===`edge`?D<0?u+x:u+l-x:oe+(D<0?-y:y),A=se,j=[[ne,re],[ie,ae],[oe,se]]}ee=te?`center`:b===`edge`?D>0?`right`:`left`:D>0?`left`:`right`}var ce=Math.PI,le=0,ue=_.get(`rotate`);if(Me(ue))le=ce/180*ue;else if(v===`center`)le=0;else if(ue===`radial`||ue===!0)le=D<0?-E+ce:-E;else if(ue===`tangential`&&v!==`outside`&&v!==`outer`){var de=Math.atan2(D,O);de<0&&(de=ce*2+de),O>0&&(de=ce+de),le=de-ce}if(a=!!le,f.x=k,f.y=A,f.rotation=le,f.setStyle({verticalAlign:`middle`}),te){f.setStyle({align:ee});var fe=f.states.select;fe&&(fe.x+=f.x,fe.y+=f.y)}else{var pe=f.getBoundingRect().clone();pe.applyTransform(f.getComputedTransform());var me=(f.style.margin||0)+2.1;pe.y-=me/2,pe.height+=me,n.push({label:f,labelLine:h,position:v,len:w,len2:T,minTurnAngle:C.get(`minTurnAngle`),maxSurfaceAngle:C.get(`maxSurfaceAngle`),surfaceNormal:new pn(D,O),linePoints:j,textAlign:ee,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:S,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:te})}}),!a&&e.get(`avoidLabelOverlap`)&&gk(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(I(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(I(v.states,p),v.ignore=!0):(ST(x,g.minTurnAngle),CT(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new pn(x[0][0],x[0][1])})}}}var bk=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new El;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=P(FO(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(_f(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,_f(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,gf(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),_f(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Sf(i),gf(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Bu(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=P({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},FO(s.getModel(`itemStyle`),c)),P(i.ensureState(`select`),{x:p,y:m,shape:FO(o.getModel([`select`,`itemStyle`]),c)}),P(i.ensureState(`blur`),{shape:FO(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&P(g.ensureState(`select`),{x:p,y:m}),P(_.ensureState(`select`),{x:p,y:m}),Iu(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;op(r,sp(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=e.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Gd,this.setTextGuideLine(d)),ET(this,DT(i),{stroke:s,opacity:Ve(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(Ld),xk=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=fk(e),d=new Ld({shape:P(uk(e,n),u)});d.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=d,o.add(d)}i.diff(a).add(function(e){var t=new bk(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){xf(a.getItemGraphicEl(t),e,t)}).execute(),yk(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Sv);function Sk(e,t,n){t=B(t)&&{coordDimensions:t}||P({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=BS(r,t).dimensions,a=new zS(i,e);return a.initData(r,n),a}var Ck=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),wk=es(),Tk=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ck(R(this.getData,this),R(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Sk(this,{coordDimensions:[`value`],encodeDefaulter:z(mh,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=wk(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=fo(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){No(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(lv);function Ek(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(Me(r)&&!isNaN(r)&&r<0)})}}}function Dk(e){e.registerChartView(xk),e.registerSeriesModel(Tk),xy(`pie`,e.registerAction),e.registerLayout(z(dk,`pie`)),e.registerProcessor(pk(`pie`)),e.registerProcessor(Ek(`pie`))}var Ok=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return eC(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:`#212121`}},universalTransition:{divideShape:`clone`}},t}(lv),kk=4,Ak=function(){function e(){}return e}(),jk=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Ak},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<kk,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Sn(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(cl),Mk=function(){function e(){this.group=new J}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var n=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;t=new Float32Array(t.buffer,r,n)}e.setShape(`points`,t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`points`),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new jk({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Py(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<kk;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=X(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Nk=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=SO(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new Mk:new BD,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(Sv),Pk=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`10%`,top:60,right:`10%`,bottom:70,containLabel:!1,backgroundColor:`rgba(0,0,0,0)`,borderWidth:1,borderColor:`#ccc`},t}(Zm),Fk=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,is).models[0]},t.type=`cartesian2dAxis`,t}(Zm);we(Fk,xw);var Ik={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)`]}}},Lk=N({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`},axisLabel:{interval:`auto`}},Ik),Rk=N({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}}},Ik),zk={category:Lk,value:Rk,time:N({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},Rk),log:F({logBase:10},Rk)},Bk={value:1,category:1,time:1,log:1};function Vk(e,t,n,r){I(Bk,function(i,a){var o=N(N({},zk[a],!0),r,!0),s=function(e){O(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Km(this),r=n?Jm(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=Hk(e),n&&qm(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=aC.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Hk)}function Hk(e){return e.type||(e.data?`category`:`value`)}var Uk=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return L(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),De(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Wk=[`x`,`y`];function Gk(e){return e.type===`interval`||e.type===`time`}var Kk=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=Wk,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!Gk(e)||!Gk(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=dn([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Sn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return St(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return St(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Sn(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Uk),qk=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(tT);function Jk(e,t,n){n||={};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,c=o?`onZero`:s,l=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get(`offset`)||0,m=l===`x`?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));m[f.onZero]=Math.max(Math.min(h,m[1]),m[0])}a.position=[l===`y`?m[f[c]]:d[0],l===`x`?m[f[c]]:d[3]],a.rotation=Math.PI/2*(l===`x`?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?m[f[s]]-m[f.onZero]:0,t.get([`axisTick`,`inside`])&&(a.tickDirection=-a.tickDirection),Be(n.labelInside,t.get([`axisLabel`,`inside`]))&&(a.labelDirection=-a.labelDirection);var g=t.get([`axisLabel`,`rotate`]);return a.labelRotate=c===`top`?-g:g,a.z2=1,a}function Yk(e){return e.get(`coordinateSystem`)===`cartesian2d`}function Xk(e){var t={xAxisModel:null,yAxisModel:null};return I(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,is).models[0]}),t}var Zk=Math.log;function Qk(e,t,n){var r=vC.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),c=cw(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;if(e.type===`log`){var f=Zk(e.base);l=[Zk(l[0])/f,Zk(l[1])/f]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var p=r.getExtent.call(e);u&&(l[0]=p[0]),d&&(l[1]=p[1]);var m=r.getInterval.call(e),h=l[0],g=l[1];if(u&&d)m=(g-h)/o;else if(u)for(g=l[0]+m*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)m=lC(m),g=l[0]+m*o;else if(d)for(h=l[1]-m*o;h>l[0]&&isFinite(h)&&isFinite(l[0]);)m=lC(m),h=l[1]-m*o;else{e.getTicks().length-1>o&&(m=lC(m));var _=m*o;g=Math.ceil(l[1]/m)*m,h=oo(g-_),h<0&&l[0]>=0?(h=0,g=oo(_)):g>0&&l[1]<=0&&(g=0,h=-oo(_))}var v=(i[0].value-a[0].value)/s,y=(i[o].value-a[o].value)/s;r.setExtent.call(e,h+m*v,g+m*y),r.setInterval.call(e,m),(v||y)&&r.setNiceExtent.call(e,h+m,g-m)}var $k=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Wk,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=ke(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;sC(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(uw(c,s),sC(c)&&(t=o))}i.length&&(t||(t=i.pop(),uw(t.scale,t.model)),I(i,function(e){Qk(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};I(n.x,function(e){tA(n,`y`,e,i)}),I(n.y,function(e){tA(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get(`containLabel`),a=Um(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;s(),i&&(I(o,function(e){if(!e.model.get([`axisLabel`,`inside`])){var t=hw(e);if(t){var n=e.isHorizontal()?`height`:`width`,r=e.model.get([`axisLabel`,`margin`]);a[n]-=t[n]+r,e.position===`top`?a.y+=t.height+r:e.position===`left`&&(a.x+=t.width+r)}}}),s()),I(this._coordsList,function(e){e.calcAffineTransform()});function s(){I(o,function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=+!!e.inverse;e.setExtent(n[r],n[1-r]),rA(e,t?a.x:a.y)})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,is).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,is).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,Se(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,I(o.x,function(t,n){I(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Kk(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(eA(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new qk(t,dw(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){I(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(Yk(e)){var r=Xk(e),i=r.xAxisModel,a=r.yAxisModel;if(!eA(i,t)||!eA(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){I(yw(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return I(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Se(t,i)<0&&t.push(i),Se(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){if(Yk(e)){var t=Xk(e),n=t.xAxisModel,r=t.yAxisModel;e.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=Wk,e}();function eA(e,t){return e.getCoordSysModel()===t}function tA(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)nA(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&nA(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function nA(e){return e&&e.type!==`category`&&e.type!==`time`&&fw(e)}function rA(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}var iA=Math.PI,aA=function(){function e(e,t){this.group=new J,this.opt=t,this.axisModel=e,F(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new J({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!oA[e]},e.prototype.add=function(e){oA[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r=mo(t-e),i,a;return ho(r)?(a=n>0?`top`:`bottom`,i=`center`):ho(r-iA)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<iA?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),oA={axisLine:function(e,t,n,r){var i=t.get([`axisLine`,`show`]);if(i===`auto`&&e.handleAutoShown&&(i=e.handleAutoShown(`axisLine`)),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],c=[a[1],0],l=s[0]>c[0];o&&(St(s,s,o),St(c,c,o));var u=P({lineCap:`round`},t.getModel([`axisLine`,`lineStyle`]).getLineStyle()),d=new Jd({shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Rf(d.shape,d.style.lineWidth),d.anid=`line`,n.add(d);var f=t.get([`axisLine`,`symbol`]);if(f!=null){var p=t.get([`axisLine`,`symbolSize`]);H(f)&&(f=[f,f]),(H(p)||Me(p))&&(p=[p,p]);var m=Iy(t.get([`axisLine`,`symbolOffset`])||0,p),h=p[0],g=p[1];I([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((s[0]-c[0])*(s[0]-c[0])+(s[1]-c[1])*(s[1]-c[1]))}],function(t,r){if(f[r]!==`none`&&f[r]!=null){var i=Py(f[r],-h/2,-g/2,h,g,u.stroke,!0),a=t.r+t.offset,o=l?c:s;i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=pA(n,r,t,e),a=hA(n,r,t,e);cA(t,a,i),mA(n,r,t,e.tickDirection),t.get([`axisLabel`,`hideOverlap`])&&MT(OT(L(a,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=Be(e.axisName,t.get(`name`));if(i){var a=t.get(`nameLocation`),o=e.nameDirection,s=t.getModel(`nameTextStyle`),c=t.get(`nameGap`)||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,d=[a===`start`?l[0]-u*c:a===`end`?l[1]+u*c:(l[0]+l[1])/2,dA(a)?e.labelOffset+o*c:0],f,p=t.get(`nameRotate`);p!=null&&(p=p*iA/180);var m;dA(a)?f=aA.innerTextLayout(e.rotation,p??e.rotation,o):(f=sA(e.rotation,a,p||0,l),m=e.axisNameAvailableWidth,m!=null&&(m=Math.abs(m/Math.sin(f.rotation)),!isFinite(m)&&(m=null)));var h=s.getFont(),g=t.get(`nameTruncate`,!0)||{},_=g.ellipsis,v=Be(e.nameTruncateMaxWidth,g.maxWidth,m),y=new El({x:d[0],y:d[1],rotation:f.rotation,silent:aA.isLabelSilent(t),style:cp(s,{text:i,font:h,overflow:`truncate`,width:v,ellipsis:_,fill:s.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),align:s.get(`align`)||f.textAlign,verticalAlign:s.get(`verticalAlign`)||f.textVerticalAlign}),z2:1});if(ep({el:y,componentModel:t,itemName:i}),y.__fullText=i,y.anid=`name`,t.get(`triggerEvent`)){var b=aA.makeAxisEventDataBase(t);b.targetType=`axisName`,b.name=i,X(y).eventData=b}r.add(y),y.updateTransform(),n.add(y),y.decomposeTransform()}}};function sA(e,t,n,r){var i=mo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return ho(i-iA/2)?(o=c?`bottom`:`top`,a=`center`):ho(i-iA*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<iA*1.5&&i>iA/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function cA(e,t,n){if(!vw(e.axis)){var r=e.get([`axisLabel`,`showMinLabel`]),i=e.get([`axisLabel`,`showMaxLabel`]);t||=[],n||=[];var a=t[0],o=t[1],s=t[t.length-1],c=t[t.length-2],l=n[0],u=n[1],d=n[n.length-1],f=n[n.length-2];r===!1?(lA(a),lA(l)):uA(a,o)&&(r?(lA(o),lA(u)):(lA(a),lA(l))),i===!1?(lA(s),lA(d)):uA(c,s)&&(i?(lA(c),lA(f)):(lA(s),lA(d)))}}function lA(e){e&&(e.ignore=!0)}function uA(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=an([]);return ln(i,i,-e.rotation),n.applyTransform(sn([],i,e.getLocalTransform())),r.applyTransform(sn([],i,t.getLocalTransform())),n.intersect(r)}}function dA(e){return e===`middle`||e===`center`}function fA(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(St(o,o,t),St(s,s,t));var u=new Jd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Rf(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u)}return a}function pA(e,t,n,r){var i=n.axis,a=n.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&r.handleAutoShown&&(o=r.handleAutoShown(`axisTick`)),!(!o||i.scale.isBlank())){for(var s=a.getModel(`lineStyle`),c=r.tickDirection*a.get(`length`),l=fA(i.getTicksCoords(),t.transform,c,F(s.getLineStyle(),{stroke:n.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)e.add(l[u]);return l}}function mA(e,t,n,r){var i=n.axis,a=n.getModel(`minorTick`);if(!(!a.get(`show`)||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel(`lineStyle`),c=r*a.get(`length`),l=F(s.getLineStyle(),F(n.getModel(`axisTick`).getLineStyle(),{stroke:n.get([`axisLine`,`lineStyle`,`color`])})),u=0;u<o.length;u++)for(var d=fA(o[u],t.transform,c,l,`minorticks_`+u),f=0;f<d.length;f++)e.add(d[f])}}function hA(e,t,n,r){var i=n.axis;if(!(!Be(r.axisLabelShow,n.get([`axisLabel`,`show`]))||i.scale.isBlank())){var a=n.getModel(`axisLabel`),o=a.get(`margin`),s=i.getViewLabels(),c=(Be(r.labelRotate,a.get(`rotate`))||0)*iA/180,l=aA.innerTextLayout(r.rotation,c,r.labelDirection),u=n.getCategories&&n.getCategories(!0),d=[],f=aA.isLabelSilent(n),p=n.get(`triggerEvent`);return I(s,function(c,m){var h=i.scale.type===`ordinal`?i.scale.getRawOrdinalNumber(c.tickValue):c.tickValue,g=c.formattedLabel,_=c.rawLabel,v=a;if(u&&u[h]){var y=u[h];U(y)&&y.textStyle&&(v=new Ap(y.textStyle,a,n.ecModel))}var b=v.getTextColor()||n.get([`axisLine`,`lineStyle`,`color`]),x=i.dataToCoord(h),S=v.getShallow(`align`,!0)||l.textAlign,C=W(v.getShallow(`alignMinLabel`,!0),S),w=W(v.getShallow(`alignMaxLabel`,!0),S),T=v.getShallow(`verticalAlign`,!0)||v.getShallow(`baseline`,!0)||l.textVerticalAlign,E=W(v.getShallow(`verticalAlignMinLabel`,!0),T),D=W(v.getShallow(`verticalAlignMaxLabel`,!0),T),O=new El({x,y:r.labelOffset+r.labelDirection*o,rotation:l.rotation,silent:f,z2:10+(c.level||0),style:cp(v,{text:g,align:m===0?C:m===s.length-1?w:S,verticalAlign:m===0?E:m===s.length-1?D:T,fill:V(b)?b(i.type===`category`?_:i.type===`value`?h+``:h,m):b})});if(O.anid=`label_`+h,ep({el:O,componentModel:n,itemName:g,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:_,tickIndex:m}}),p){var k=aA.makeAxisEventDataBase(n);k.targetType=`axisLabel`,k.value=_,k.tickIndex=m,i.type===`category`&&(k.dataIndex=h),X(O).eventData=k}t.add(O),O.updateTransform(),d.push(O),e.add(O),O.decomposeTransform()}),d}}function gA(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _A(n,e,t),n.seriesInvolved&&yA(n,e),n}function _A(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];I(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=EA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(I(n.getAxes(),z(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&I(f.baseAxes,z(p,!d||`cross`,u)),d&&I(f.otherAxes,z(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!TA(d))){s??=d.get(`triggerTooltip`),d=r?vA(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=EA(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:TA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=bA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function vA(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};I(s,function(e){c[e]=M(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Ap(c,n,r))}function yA(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||I(e.coordSysAxesInfo[EA(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function bA(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(xA(a[r+`AxisId`],n.id)||xA(a[r+`AxisIndex`],n.componentIndex)||xA(a[r+`AxisName`],n.name))return i}}function xA(e,t){return e===`all`||B(e)&&Se(e,t)>=0||e===t}function SA(e){var t=CA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=TA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function CA(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[EA(e)]}function wA(e){var t=CA(e);return t&&t.axisPointerModel}function TA(e){return!!e.get([`handle`,`show`])}function EA(e){return e.type+`||`+e.id}var DA={},OA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&SA(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=wA(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){DA[e]=t},t.getAxisPointerClass=function(e){return e&&DA[e]},t.type=`axis`,t}(vv),kA=es();function AA(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var u=s.length,d=kA(e).splitAreaColors,f=G(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=B(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Sl({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:F({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}kA(e).splitAreaColors=f}}}function jA(e){kA(e).splitAreaColors=null}var MA=[`axisLine`,`axisTickLabel`,`axisName`],NA=[`splitArea`,`splitLine`,`minorSplitLine`],PA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new J,this.group.add(this._axisGroup),t.get(`show`)){var o=t.getCoordSysModel(),s=new aA(t,P({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(sC(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},Jk(o,t)));I(MA,s.add,s),this._axisGroup.add(s.getGroup()),I(NA,function(e){t.get([e,`show`])&&FA[e](this,this._axisGroup,t,o)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Kf(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){jA(this)},t.type=`cartesianAxis`,t}(OA),FA={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitLine`),o=a.getModel(`lineStyle`),s=o.get(`color`),c=a.get(`showMinLine`)!==!1,l=a.get(`showMaxLine`)!==!1;s=B(s)?s:[s];for(var u=r.coordinateSystem.getRect(),d=i.isHorizontal(),f=0,p=i.getTicksCoords({tickModel:a}),m=[],h=[],g=o.getLineStyle(),_=0;_<p.length;_++){var v=i.toGlobalCoord(p[_].coord);if(!(_===0&&!c||_===p.length-1&&!l)){var y=p[_].tickValue;d?(m[0]=v,m[1]=u.y,h[0]=v,h[1]=u.y+u.height):(m[0]=u.x,m[1]=v,h[0]=u.x+u.width,h[1]=v);var b=f++%s.length,x=new Jd({anid:y==null?null:`line_`+y,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:h[0],y2:h[1]},style:F({stroke:s[b]},g),silent:!0});Rf(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel(`minorSplitLine`).getModel(`lineStyle`),o=r.coordinateSystem.getRect(),s=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var l=[],u=[],d=a.getLineStyle(),f=0;f<c.length;f++)for(var p=0;p<c[f].length;p++){var m=i.toGlobalCoord(c[f][p].coord);s?(l[0]=m,l[1]=o.y,u[0]=m,u[1]=o.y+o.height):(l[0]=o.x,l[1]=m,u[0]=o.x+o.width,u[1]=m);var h=new Jd({anid:`minor_line_`+c[f][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:d,silent:!0});Rf(h.shape,d.lineWidth),t.add(h)}},splitArea:function(e,t,n,r){AA(e,t,n,r)}},IA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(PA),LA=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=IA.type,t}return t.type=`yAxis`,t}(PA),RA=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Sl({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(vv),zA={offset:0};function BA(e){e.registerComponentView(RA),e.registerComponentModel(Pk),e.registerCoordinateSystem(`cartesian2d`,$k),Vk(e,`x`,Fk,zA),Vk(e,`y`,Fk,zA),e.registerComponentView(IA),e.registerComponentView(LA),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function VA(e){cS(BA),e.registerSeriesModel(Ok),e.registerChartView(Nk),e.registerLayout(SO(`scatter`))}function HA(e){e.eachSeriesByType(`radar`,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();I(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=UA(i)?i:WA(r)})}),t.each(function(e){var i=Oe(n[e],function(e){return UA(e)})||WA(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function UA(e){return!isNaN(e[0])&&!isNaN(e[1])}function WA(e){return[e.cx,e.cy]}function GA(e){var t=e.polar;if(t){B(t)||(t=[t]);var n=[];I(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],B(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}I(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var KA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=Fy(e.getItemVisual(t,`symbolSize`)),i=Py(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),wf[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return L(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new Ud,i=new Gd,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),_f(r,o,e,t),_f(i,o,e,t);var s=new J,u=new J;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),Sf(s),Sf(i),gf(i,u,e),gf(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(F(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),Bu(r,n,`lineStyle`),Bu(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,I([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),r=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=r&&d}),o.useStyle(F(u.getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`),p=f.getModel(`itemStyle`).getItemStyle();s.eachChild(function(e){if(e instanceof ml){var r=e.style;e.useStyle(P({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=e.ensureState(`emphasis`);i.style=M(p);var o=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(o==null||isNaN(o))&&(o=``),op(e,sp(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:l,defaultOpacity:c.opacity})}),Iu(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=`radar`,t}(Sv),qA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ck(R(this.getData,this),R(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Sk(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=tv(this,e);return H_(`section`,{header:o,sortBlocks:!0,blocks:L(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return H_(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(L(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.radar`,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(lv),JA=zk.value;function YA(e,t){return F({show:t},e)}var XA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`scale`),r=this.get(`axisLine`),i=this.get(`axisTick`),a=this.get(`axisLabel`),o=this.get(`axisName`),s=this.get([`axisName`,`show`]),c=this.get([`axisName`,`formatter`]),l=this.get(`axisNameGap`),u=this.get(`triggerEvent`),d=L(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 f=o;d.color!=null&&(f=F({color:d.color},o));var p=N(M(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(H(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else V(c)&&(p.name=c(p.name,p));var h=new Ap(p,null,this.ecModel);return we(h,xw.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`75%`,startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:N({lineStyle:{color:`#bbb`}},JA.axisLine),axisLabel:YA(JA.axisLabel,!1),axisTick:YA(JA.axisTick,!1),splitLine:YA(JA.splitLine,!0),splitArea:YA(JA.splitArea,!0),indicator:[]},t}(Zm),ZA=[`axisLine`,`axisTickLabel`,`axisName`],QA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;I(L(t.getIndicatorAxes(),function(e){var n=e.model.get(`showName`)?e.name:``;return new aA(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){I(ZA,e.add,e),this.group.add(e.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=B(u)?u:[u],p=B(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new vd({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new zd({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=L(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),L(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new Gd({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new Ud({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();I(h,function(e,t){this.group.add(If(e,{style:F({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),I(m,function(e,t){this.group.add(If(e,{style:F({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(vv),$A=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(tT),ej=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=L(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new $A(n,new vC);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i)/2;this.cx=Y(n[0],r),this.cy=Y(n[1],i),this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(H(o)||Me(o))&&(o=[0,o]),this.r0=Y(o[0],a),this.r=Y(o[1],a),I(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;I(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType(`radar`,function(t,i){if(!(t.get(`coordinateSystem`)!==`radar`||e.getComponent(`radar`,t.get(`radarIndex`))!==r)){var a=t.getData();I(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get(`splitNumber`),a=new vC;a.setExtent(0,i),a.setInterval(1),I(n,function(e,t){Qk(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(`radar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(`radar`,function(e){e.get(`coordinateSystem`)===`radar`&&(e.coordinateSystem=r[e.get(`radarIndex`)||0])}),r},e.dimensions=[],e}();function tj(e){e.registerCoordinateSystem(`radar`,ej),e.registerComponentModel(XA),e.registerComponentView(QA),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}function nj(e){cS(tj),e.registerChartView(KA),e.registerSeriesModel(qA),e.registerLayout(HA),e.registerProcessor(pk(`radar`)),e.registerPreprocessor(GA)}var rj=`\0_ec_interaction_mutex`;function ij(e,t,n){var r=sj(e);r[t]=n}function aj(e,t,n){var r=sj(e);r[t]===n&&(r[t]=null)}function oj(e,t){return!!sj(e)[t]}function sj(e){return e[rj]||(e[rj]={})}Zx({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},nt);var cj=function(e){O(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=R(n._mousedownHandler,n),i=R(n._mousemoveHandler,n),a=R(n._mouseupHandler,n),o=R(n._mousewheelHandler,n),s=R(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=F(M(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e??=!0,(e===!0||e===`move`||e===`pan`)&&(t.on(`mousedown`,r),t.on(`mousemove`,i),t.on(`mouseup`,a)),(e===!0||e===`scale`||e===`zoom`)&&(t.on(`mousewheel`,o),t.on(`pinch`,s))},n.disable=function(){t.off(`mousedown`,r),t.off(`mousemove`,i),t.off(`mouseup`,a),t.off(`mousewheel`,o),t.off(`pinch`,s)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Qt(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!dj(`moveOnMouseMove`,e,this._opt)||e.gestureEvent===`pinch`||oj(this._zr,`globalPan`))){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Zt(e.event),uj(this,`pan`,`moveOnMouseMove`,e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Qt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=dj(`zoomOnMouseWheel`,e,this._opt),n=dj(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;lj(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);lj(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!oj(this._zr,`globalPan`)){var t=e.pinchScale>1?1.1:1/1.1;lj(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Dt);function lj(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(Zt(r.event),uj(e,t,n,r,i))}function uj(e,t,n,r,i){i.isAvailableBehavior=R(dj,null,n,r),e.trigger(t,i)}function dj(e,t,n){var r=n[e];return!e||r&&(!H(r)||t.event[r+`Key`])}function fj(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function pj(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,c=a.max||1/0;o=Math.max(Math.min(c,o),s)}var l=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}var mj={axisPointer:1,tooltip:1,brush:1};function hj(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!mj.hasOwnProperty(r.mainType)&&i&&i.model!==n}function gj(e){H(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var _j,vj={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`},yj=ke(vj),bj={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},xj=ke(bj),Sj=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=gj(e);this._defsUsePending=[];var r=new J;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Oj(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;Mj(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=Pj(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=Vj(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new J,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Sl({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=_j[o];if(l&&K(_j,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=Cj[o];if(f&&K(Cj,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new ul({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ej(t,n),Oj(e,n,this._defsUsePending,!1,!1),kj(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){_j={g:function(e,t){var n=new J;return Ej(t,n),Oj(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Sl;return Ej(t,n),Oj(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 vd;return Ej(t,n),Oj(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 Jd;return Ej(t,n),Oj(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 bd;return Ej(t,n),Oj(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`),r;n&&(r=Dj(n));var i=new Ud({shape:{points:r||[]},silent:!0});return Ej(t,i),Oj(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=Dj(n));var i=new Gd({shape:{points:r||[]},silent:!0});return Ej(t,i),Oj(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new ml;return Ej(t,n),Oj(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`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new J;return Ej(t,o),Oj(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new J;return Ej(t,o),Oj(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=pd(e.getAttribute(`d`)||``);return Ej(t,n),Oj(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),Cj={lineargradient:function(e){var t=new rf(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return wj(e,t),Tj(e,t),t},radialgradient:function(e){var t=new af(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return wj(e,t),Tj(e,t),t}};function wj(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function Tj(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};zj(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`;t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function Ej(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},F(t.__inheritedStyle,e.__inheritedStyle))}function Dj(e){for(var t=Pj(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function Oj(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Lj(e,t),zj(e,o,s),r||Bj(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=jj(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=jj(a,`stroke`,o.stroke,n)),I([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),I([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=L(Pj(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function kj(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var Aj=/^url\(\s*#(.*?)\)/;function jj(e,t,n,r){var i=n&&n.match(Aj);if(i){var a=Ge(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function Mj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var Nj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Pj(e){return e.match(Nj)||[]}var Fj=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ij=Math.PI/180;function Lj(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(Fj,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=Pj(o);switch(i||=rn(),s){case`translate`:cn(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:un(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:ln(i,i,-parseFloat(c[0])*Ij,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*Ij);sn(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*Ij);sn(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var Rj=/([^\s:;]+)\s*:\s*([^:;]+)/g;function zj(e,t,n){var r=e.getAttribute(`style`);if(r){Rj.lastIndex=0;for(var i;(i=Rj.exec(r))!=null;){var a=i[1],o=K(vj,a)?vj[a]:null;o&&(t[o]=i[2]);var s=K(bj,a)?bj[a]:null;s&&(n[s]=i[2])}}}function Bj(e,t,n){for(var r=0;r<yj.length;r++){var i=yj[r],a=e.getAttribute(i);a!=null&&(t[vj[i]]=a)}for(var r=0;r<xj.length;r++){var i=xj[r],a=e.getAttribute(i);a!=null&&(n[bj[i]]=a)}}function Vj(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Hj(e,t){return new Sj().parse(e,t)}var Uj=G([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),Wj=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=e,this._parsedXML=gj(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Kj(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Hj(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,We(n!=null)}catch(e){throw Error(`Invalid svg format
36
+ `+e.message)}var r=new J;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Sn(c,l,u,d)}if(o){var p=Vj(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Sl({shape:s.plain()}));var m=[];return I(t.named,function(e){Uj.get(e.svgNodeTagLower)!=null&&(m.push(e),Gj(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Gj(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function Kj(e){var t=[],n=G();return I(e,function(e){if(e.namedFrom==null){var r=new Nw(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var qj=[126,25],Jj=`南海诸岛`,Yj=[[[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]]],Xj=0;Xj<Yj.length;Xj++)for(var Zj=0;Zj<Yj[Xj].length;Zj++)Yj[Xj][Zj][0]/=10.5,Yj[Xj][Zj][1]/=-10.5/.75,Yj[Xj][Zj][0]+=qj[0],Yj[Xj][Zj][1]+=qj[1];function Qj(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===Jj)return;t.push(new Mw(Jj,L(Yj,function(e){return{type:`polygon`,exterior:e}}),qj))}}var $j={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function eM(e,t){if(e===`china`){var n=$j[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var tM=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function nM(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:tM[0]})}var rM=`name`,iM=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=G(),this._mapName=e,this._specialAreas=n,this._geoJSON=oM(t)}return e.prototype.load=function(e,t){t||=rM;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:aM(r)})}var i=G(),a=[];return I(n.regions,function(t){var n=t.name;e&&K(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new Sn(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?Lw(n,e):[]}catch(e){throw Error(`Invalid geoJson format
37
+ `+e.message)}return Qj(t,r),I(r,function(e){var n=e.name;eM(t,e),nM(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function aM(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function oM(e){return H(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var sM=G(),cM={registerMap:function(e,t,n){if(t.svg){var r=new Wj(e,t.svg);sM.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new iM(e,i,n);sM.set(e,r)}},getGeoResource:function(e){return sM.get(e)},getMapForUser:function(e){var t=sM.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=sM.get(e);if(r)return r.load(t,n)}},lM=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],uM=G(lM),dM=G(lM.concat([`g`])),fM=G(lM.concat([`g`])),pM=es();function mM(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function hM(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var gM=function(){function e(e){var t=new J;this.uid=Mp(`ec_map_draw`),this._controller=new cj(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new J),t.add(this._svgGroup=new J)}return e.prototype.draw=function(e,t,n,r,i){var a=e.mainType===`geo`,o=e.getData&&e.getData();a&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=this._regionsGroup,l=this.group,u=s.getTransformInfo(),d=u.raw,f=u.roam;!c.childAt(0)||i?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):gf(l,f,e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0,m={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(m):s.resourceType===`geoSVG`&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=G(),n=G(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),I(e.geo.regions,function(i){var u=i.name,f=t.get(u),p=n.get(u)||{},m=p.dataIdx,h=p.regionModel;if(!f){f=t.set(u,new J),r.add(f),m=o?o.indexOfName(u):null,h=e.isGeo?a.getRegionModel(u):o?o.getItemModel(m):null;var g=h.get(`silent`,!0);g!=null&&(f.silent=g),n.set(u,{dataIdx:m,regionModel:h})}var _=[],v=[];I(i.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);c&&(t=SM(t,c)),I(t,function(e){_.push(new Ud(d(e)))})}else{var n=e.points;c&&(n=SM(n,c,!0)),I(n,function(e){v.push(new Gd(d(e)))})}});var y=l(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new tf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),_M(e,r,m,h),vM(e,r,u,h,a,m,y),n&&(hM(r),I(r.states,hM))}}b(_),b(v,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;yM(e,t,r,s,a,o),bM(e,t,r,s,a),xM(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=G(),i=!1;I(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);uM.get(s)!=null&&c instanceof ec&&_M(e,c,l,u),c instanceof ec&&(c.culling=!0);var d=u.get(`silent`,!0);d!=null&&(c.silent=d),c.z2EmphasisLift=0,t.namedFrom||(fM.get(s)!=null&&vM(e,c,n,u,a,l,null),yM(e,c,n,u,a,l),bM(e,c,n,u,a),dM.get(s)!=null&&(xM(e,c,n,u,a)===`self`&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){mu(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=cM.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=cM.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get(`scaleLimit`),a.zoom=r.getZoom(),i.enable(e.get(`roam`)||!1);var o=e.mainType;function s(){var t={type:`geoRoam`,componentType:o};return t[o+`Id`]=e.id,t}i.off(`pan`).on(`pan`,function(e){this._mouseDownFlag=!1,fj(a,e.dx,e.dy),n.dispatchAction(P(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),i.off(`zoom`).on(`zoom`,function(e){this._mouseDownFlag=!1,pj(a,e.scale,e.originX,e.originY),n.dispatchAction(P(s(),{totalZoom:a.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(t,i,a){return r.containPoint([i,a])&&!hj(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=pM(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function _M(e,t,n,r){var i=r.getModel(`itemStyle`),a=r.getModel([`emphasis`,`itemStyle`]),o=r.getModel([`blur`,`itemStyle`]),s=r.getModel([`select`,`itemStyle`]),c=mM(i),l=mM(a),u=mM(s),d=mM(o),f=e.data;if(f){var p=f.getItemVisual(n,`style`),m=f.getItemVisual(n,`decal`);e.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=Cb(m,e.api))}t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState(`emphasis`).style=l,t.ensureState(`select`).style=u,t.ensureState(`blur`).style=d,mu(t)}function vM(e,t,n,r,i,a,o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension(`value`),a)),u=s&&s.getItemLayout(a);if(c||l||u&&u.showLabel){var d=c?n:a,f=void 0;(!s||a>=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;op(t,sp(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(pM(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function yM(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):X(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function bM(e,t,n,r,i){e.data||ep({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function xM(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return Iu(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&Uu(t,i,n),o}function SM(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),I(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var CM=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&r.type===`geoRoam`&&this._mapDraw.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id){var a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new gM(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension(`value`),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new vd({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),u=r.getName(n),d=l.indexOfName(u),f=r.getItemModel(n),p=f.getModel(`label`),m=l.getItemGraphicEl(d);op(c,sp(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){cu(c,e)}}i.add(c)}}})},t.type=`map`,t}(Sv),wM=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=Sk(this,{coordDimensions:[`value`],encodeDefaulter:z(mh,this)}),n=G(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return I(cM.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&N(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e==null?null:this.ecModel.getComponent(`geo`,e)},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension(`value`);isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return H_(`section`,{header:s.join(`, `),noHeader:!s.length,blocks:[H_(`nameValue`,{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=Py(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:`#000`},itemStyle:{borderWidth:.5,borderColor:`#444`,areaColor:`#eee`},emphasis:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{areaColor:`rgba(255,215,0,0.8)`}},select:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},nameProperty:`name`},t}(lv);function TM(e,t){var n={};return I(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}function EM(e){var t={};e.eachSeriesByType(`map`,function(e){var n=e.getHostGeoModel(),r=n?`o`+n.id:`i`+e.getMapType();(t[r]=t[r]||[]).push(e)}),I(t,function(e,t){for(var n=TM(L(e,function(e){return e.getData()}),e[0].get(`mapValueCalculation`)),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(var r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=r===0&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function DM(e){var t={};e.eachSeriesByType(`map`,function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};I(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&r.each(r.mapDimension(`value`),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var OM=St,kM=function(e){O(t,e);function t(t){var n=e.call(this)||this;return n.type=`view`,n.dimensions=[`x`,`y`],n._roamTransformable=new xa,n._rawTransformable=new xa,n.name=t,n}return t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Sn(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Sn(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new Sn(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Y(e[0],t.getWidth()),Y(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e||=1;var t=this.zoomLimit;t&&(t.max!=null&&(e=Math.min(t.max,e)),t.min!=null&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=St([],r,e),n=St([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),on(this.transform||=[],t.transform||rn()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],dn(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new xa;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n||=[],r?OM(n,e,r):st(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?OM([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=AM(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=AM(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=[`x`,`y`],t}(xa);function AM(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var jM={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},MM=[`lng`,`lat`],NM=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=MM,i.type=`geo`,i._nameCoordMap=G(),i.map=n;var a=r.projection,o=cM.load(n,r.nameMap,r.nameProperty),s=cM.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=jM[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u||=f.clone(),u.union(f)}else u=o.boundingRect;return i.setBoundingRect(u.x,u.y,u.width,u.height),i.aspectScale=a?1:W(r.aspectScale,l.aspectScale),i._invertLongitute=!a&&l.invertLongitute,i}return t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new Sn(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(H(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=PM(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=PM(t);return r===this?r.pointToData(n):null},t}(kM);we(NM,kM);function PM(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,is).models[0]||{}).coordinateSystem:null}function FM(e,t){var n=e.get(`boundingCoords`);if(n!=null){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,d=a.project([e+s*u,t+c*u]);Ct(r,r,d),wt(i,i,d)}};u(o,s,c,s),u(c,s,c,l),u(c,l,o,l),u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),f=e.get(`layoutCenter`),p=e.get(`layoutSize`),m=t.getWidth(),h=t.getHeight(),g=d.width/d.height*this.aspectScale,_=!1,v,y;f&&p&&(v=[Y(f[0],m),Y(f[1],h)],y=Y(p,Math.min(m,h)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(y)&&(_=!0));var b;if(_)b={},g>1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=Um(x,{width:m,height:h})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get(`center`),t),this.setZoom(e.get(`zoom`))}function IM(e,t){I(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var LM=new(function(){function e(){this.dimensions=MM}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(e,i){var a=e.get(`map`),o=new NM(a+i,a,P({nameMap:e.get(`nameMap`)},r(e)));o.zoomLimit=e.get(`scaleLimit`),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=FM,o.resize(e,t)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`geo`&&(e.coordinateSystem=n[e.get(`geoIndex`)||0])});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),I(i,function(e,i){var a=new NM(i,i,P({nameMap:xe(L(e,function(e){return e.get(`nameMap`)}))},r(e[0])));a.zoomLimit=Be.apply(null,L(e,function(e){return e.get(`scaleLimit`)})),n.push(a),a.resize=FM,a.resize(e[0],t),I(e,function(e){e.coordinateSystem=a,IM(a,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=G(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return I(cM.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&N(n,r)}),i},e}()),RM=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t,n){var r=cM.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=`#eee`)}this.mergeDefaultAndTheme(e,n),No(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=LM.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Ee(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new Ap(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},G()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ap(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(V(r))return i.status=t,r(i);if(H(r))return r.replace(`{a}`,e??``)},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type=`geo`,t.layoutMode=`box`,t.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:`#000`},itemStyle:{borderWidth:.5,borderColor:`#444`},emphasis:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},select:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},regions:[]},t}(Zm);function zM(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function BM(e,t,n,r){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(zM(e,s),r)),o!=null){if(n){var c=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),c)/i}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(zM(e,s),r),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var VM=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new gM(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;wy(e.target,function(e){return(t=X(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=X(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(vv);function HM(e,t,n){cM.registerMap(e,t,n)}function UM(e){e.registerCoordinateSystem(`geo`,LM),e.registerComponentModel(RM),e.registerComponentView(VM),e.registerImpl(`registerMap`,HM),e.registerImpl(`getMap`,function(e){return cM.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;I(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];I(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType||`series`;t.eachComponent({mainType:r,query:e},function(t){var i=t.coordinateSystem;if(i.type===`geo`){var a=BM(i,e,t.get(`scaleLimit`),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),r===`series`&&I(t.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})}function WM(e){cS(UM),e.registerChartView(CM),e.registerSeriesModel(wM),e.registerLayout(DM),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,EM),xy(`map`,e.registerAction)}function GM(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function KM(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){ZM(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=QM(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function qM(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function JM(e){return arguments.length?e:rN}function YM(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function XM(e,t){return Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ZM(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function QM(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=$M(s),a=eN(a),s&&a;){i=$M(i),o=eN(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(nN(tN(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!$M(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!eN(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function $M(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function eN(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function tN(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function nN(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function rN(e,t){return e.parentNode===t.parentNode?1:2}var iN=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),aN=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new iN},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=Y(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(cl),oN=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new J,n}return t.prototype.init=function(e,t){this._controller=new cj(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var o=this._data;r.diff(o).add(function(t){sN(r,t)&&cN(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!sN(r,t)){i&&fN(o,n,i,a,e);return}cN(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&fN(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get(`nodeScaleRatio`),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];fc(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=new kM;c.zoomLimit=e.get(`scaleLimit`),c.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),c.setCenter(e.get(`center`),t),c.setZoom(e.get(`zoom`)),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!hj(t,n,e)}),i.enable(e.get(`roam`)),a.zoomLimit=e.get(`scaleLimit`),a.zoom=e.coordinateSystem.getZoom(),i.off(`pan`).off(`zoom`).on(`pan`,function(t){fj(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:`treeRoam`,dx:t.dx,dy:t.dy})}).on(`zoom`,function(t){pj(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:`treeRoam`,zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=`tree`,t}(Sv);function sN(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function cN(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:`#fff`,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new FD(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,gf(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?$e(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(X(n).focus=k),lN(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||cu(n.__edge,t)}})}function lN(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new Qd({shape:pN(u,d,f,i,i)}),gf(h,{shape:pN(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new aN({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),gf(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(F({strokeNoScale:!0,fill:null},m)),Bu(h,c,`lineStyle`),mu(h),s.add(h))}function uN(e,t,n,r,i){var a=t.tree.root,o=dN(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?yf(d,{shape:pN(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&yf(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function dN(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function fN(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=dN(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};yf(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),a.children.forEach(function(t){uN(t,e,r,i,c)}),uN(a,e,r,i,c)}function pN(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=YM(l,d),m=YM(l,d+(f-d)*n),h=YM(u,f+(d-f)*n),g=YM(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}var mN=es();function hN(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,SN(t,n,e),I(n,function(n){I(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,z(gN,e))})}),t.wrapMethod(`cloneShallow`,z(vN,e)),I(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,z(_N,e))}),We(n[t.dataType]===t)}function gN(e,t){if(xN(this)){var n=P({},mN(this).datas);n[this.dataType]=t,SN(t,n,e)}else CN(t,this.dataType,mN(this).mainData,e);return t}function _N(e,t){return e.struct&&e.struct.update(),t}function vN(e,t){return I(mN(t).datas,function(n,r){n!==t&&CN(n.cloneShallow(),r,t,e)}),t}function yN(e){var t=mN(this).mainData;return e==null||t==null?t:mN(t).datas[e]}function bN(){var e=mN(this).mainData;return e==null?[{data:e}]:L(ke(mN(e).datas),function(t){return{type:t,data:mN(e).datas[t]}})}function xN(e){return mN(e).mainData===e}function SN(e,t,n){mN(e).datas={},I(t,function(t,r){CN(t,r,e,n)})}function CN(e,t,n,r){mN(n).datas[t]=e,mN(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=yN,e.getLinkedDataAll=bN}var wN=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){V(e)&&(n=t,t=e,e=null),e||={},H(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),TN=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,B(n)?n.length:1),a.push(e);var r=new wN(Ko(e.name,``),i);t?EN(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=BS(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new zS(c,n);return l.initData(a),r&&r(l),hN({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function EN(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function DN(e,t,n){if(e&&Se(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(H(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function ON(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function kN(e,t){return Se(ON(e),t)>=0}function AN(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var jN=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new Ap(e.leaves||{},this,this.ecModel),r=TN.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return H_(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=AN(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`view`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:`#ccc`,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(lv);function MN(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function NN(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function PN(e,t){e.eachSeriesByType(`tree`,function(e){FN(e,t)})}function FN(e,t){var n=XM(e,t);e.layoutInfo=n;var r=e.get(`layout`),i=0,a=0,o=null;r===`radial`?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=JM(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(i=n.width,a=n.height,o=JM());var s=e.getData().tree.root,c=s.children[0];if(c){GM(s),MN(c,KM,o),s.hierNode.modifier=-c.hierNode.prelim,NN(c,qM);var l=c,u=c,d=c;NN(c,function(e){var t=e.getLayout().x;t<l.getLayout().x&&(l=e),t>u.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)});var f=l===u?1:o(l,u)/2,p=f-l.getLayout().x,m=0,h=0,g=0,_=0;if(r===`radial`)m=i/(u.getLayout().x+f+p),h=a/(d.depth-1||1),NN(c,function(e){g=(e.getLayout().x+p)*m,_=(e.depth-1)*h;var t=YM(g,_);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:_},!0)});else{var v=e.getOrient();v===`RL`||v===`LR`?(h=a/(u.getLayout().x+f+p),m=i/(d.depth-1||1),NN(c,function(e){_=(e.getLayout().x+p)*h,g=v===`LR`?(e.depth-1)*m:i-(e.depth-1)*m,e.setLayout({x:g,y:_},!0)})):(v===`TB`||v===`BT`)&&(m=i/(u.getLayout().x+f+p),h=a/(d.depth-1||1),NN(c,function(e){g=(e.getLayout().x+p)*m,_=v===`TB`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:g,y:_},!0)}))}}}function IN(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();P(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function LN(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var r=t.coordinateSystem,i=BM(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})}function RN(e){e.registerChartView(oN),e.registerSeriesModel(jN),e.registerLayout(PN),e.registerVisual(IN),LN(e)}var zN=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function BN(e){for(var t=0;t<zN.length;t++)e.registerAction({type:zN[t],update:`updateView`},nt);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=DN(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=kN(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function VN(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=Th(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var HN=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};UN(n);var r=e.levels||[],i=new Ap({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=WN(r,t);var a=L(r||[],function(e){return new Ap(e,i,t)},this),o=TN.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return H_(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=AN(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},P(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=G(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VN(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,left:`center`,top:`middle`,width:`80%`,height:`80%`,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.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:[]},t}(lv);function UN(e){var t=0;I(e.children,function(e){UN(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}function WN(e,t){var n=Mo(t.get(`color`)),r=Mo(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;I(e,function(e){var t=new Ap(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var GN=8,KN=8,qN=5,JN=function(){function e(e){this.group=new J,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u={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,u,c),this._renderContent(e,u,o,s,c,l,r),Wm(a,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Ko(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+GN*2,t.emptyItemWidth);t.totalWidth+=o+KN,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o){for(var s=0,c=t.emptyItemWidth,l=e.get([`breadcrumb`,`height`]),u=Hm(t.pos,t.box),d=t.totalWidth,f=t.renderList,p=r.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>u.width&&(d-=_-c,_=c,v=null);var y=new Ud({shape:{points:YN(s,0,_,l,m===f.length-1,m===0)},style:F(n.getItemStyle(),{lineJoin:`bevel`}),textContent:new El({style:cp(i,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:z(o,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=cp(a,{text:v}),y.ensureState(`emphasis`).style=p,Iu(y,r.get(`focus`),r.get(`blurScope`),r.get(`disabled`)),this.group.add(y),XN(y,e,g),s+=_+KN}},e.prototype.remove=function(){this.group.removeAll()},e}();function YN(e,t,n,r,i,a){var o=[[i?e:e-qN,t],[e+n,t],[e+n,t+r],[i?e:e-qN,t+r]];return!a&&o.splice(2,0,[e+n+qN,t+r/2]),!i&&o.push([e,t+r/2]),o}function XN(e,t,n){X(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&AN(n,t)}}var ZN=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function QN(){return new ZN}var $N=J,eP=Sl,tP=3,nP=`label`,rP=`upperLabel`,iP=100,aP=20,oP=30,sP=Es([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),cP=function(e){var t=sP(e);return t.stroke=t.fill=t.lineWidth=null,t},lP=es(),uP=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=dP(),n}return t.prototype.render=function(e,t,n,r){if(!(Se(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=DN(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new $N,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=dP(),o=dP(),s=this._storage,c=[];function l(e,r,i,l){return fP(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,I(e,function(e,t){!e.isRemoved()&&o(t,t)})):new dS(t,e,a,a).add(o).update(o).remove(z(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=dP();return e&&I(e,function(e,n){var r=t[n];I(e,function(e){e&&(r.push(e),lP(e).willDelete=!0)})}),t}function h(){I(u,function(e){I(e,function(e){e.parent&&e.parent.remove(e)})}),I(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(V(i)?0:i)||0,s=(V(a)?null:a)||`cubicOut`,c=QN();I(t.willDeleteEls,function(e,t){I(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=lP(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),I(this._storage,function(e,n){I(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof J?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=P({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(R(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||=(this._controllerHost={target:this.group},this._controllerHost),t||(t=this._controller=new cj(e.getZr()),t.enable(this.seriesModel.get(`roam`)),n.zoomLimit=this.seriesModel.get(`scaleLimit`),n.zoom=this.seriesModel.get(`zoom`),t.on(`pan`,R(this._onPan,this)),t.on(`zoom`,R(this._onZoom,this)));var r=new Sn(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,n){return r.contain(t,n)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>tP||Math.abs(e.dy)>tP)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new Sn(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=rn();cn(m,m,[-t,-n]),un(m,m,[f,f]),cn(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Im(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new JN(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(kN(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dP(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(Sv);function dP(){return{nodeGroup:[],background:[],content:[]}}function fP(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=le(`nodeGroup`,$N);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),lP(D).nodeWidth=p,lP(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=le(`background`,eP,l,aP);O&&ie(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),ee=k.get(`disabled`),te=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)Hu(D)&&Vu(D,!1),O&&(Vu(O,!ee),d.setItemGraphicEl(o.dataIndex,O),Lu(O,te,j));else{var ne=le(`content`,eP,l,oP);ne&&ae(D,ne),O.disableMorphing=!0,O&&Hu(O)&&Vu(O,!1),Vu(D,!ee),d.setItemGraphicEl(o.dataIndex,D);var re=f.getShallow(`cursor`);re&&ne.attr(`cursor`,re),Lu(D,te,j)}return D;function ie(t,n,r){var i=X(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)oe(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=cP(S);c.fill=s;var l=sP(C);l.fill=C.get(`borderColor`);var u=sP(w);u.fill=w.get(`borderColor`);var d=sP(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;se(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,mu(n)}t.add(n)}function ae(t,n){var r=X(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)oe(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=cP(S);l.fill=c,l.decal=s.decal;var u=sP(C),d=sP(w),f=sP(T);se(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,mu(n)}t.add(n)}function oe(e){!e.invisible&&a.push(e)}function se(t,n,r,i){var a=f.getModel(i?rP:nP),s=Ko(f.get(`name`),null),c=a.getShallow(`show`);op(t,sp(f,i?rP:nP),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Ue(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,ce(d,i,u);var m=l.getState(`emphasis`);ce(m?m.style:null,i,u)}}function ce(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function le(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,ue(c,s)):g||(s=new r,s instanceof ec&&(s.z2=pP(a,o)),de(c,s)),t[e][_]=s}function ue(e,t){var n=e[_]={};t instanceof $N?(n.oldX=t.x,n.oldY=t.y):n.oldShape=P({},t.shape)}function de(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof J;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function pP(e,t){return e*iP+t}var mP=I,hP=U,gP=-1,_P=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=M(t);this.type=r,this.mappingMethod=n,this._normalizeData=kP[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(bP(i),vP(i)):n===`category`?i.categories?yP(i):bP(i,!0):(We(n!==`linear`||i.dataExtent),bP(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return R(this._normalizeData,this)},e.listVisualTypes=function(){return ke(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){U(e)?I(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=B(t)?[]:U(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&mP(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(hP(e)){var t=[];mP(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||H(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(AP(u[1],e,l[1]))return a}else if(l[1]===1/0){if(AP(u[0],l[0],e))return a}else if(AP(u[0],l[0],e)&&AP(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:CP(`color`),getColorMapper:function(){var e=this.option;return R(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),wP.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Ur(t,e.parsedVisual,r),i?r:qr(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return qr(Ur(e,this.option.parsedVisual),`rgba`)},category:wP,piecewise:function(e,t){var n=DP.call(this,t);return n??=qr(Ur(e,this.option.parsedVisual),`rgba`),n},fixed:TP}},colorHue:xP(function(e,t){return Gr(e,t)}),colorSaturation:xP(function(e,t){return Gr(e,null,t)}),colorLightness:xP(function(e,t){return Gr(e,null,null,t)}),colorAlpha:xP(function(e,t){return Kr(e,t)}),decal:{applyVisual:CP(`decal`),_normalizedToVisual:{linear:null,category:wP,piecewise:null,fixed:null}},opacity:{applyVisual:CP(`opacity`),_normalizedToVisual:EP([0,1])},liftZ:{applyVisual:CP(`liftZ`),_normalizedToVisual:{linear:TP,category:TP,piecewise:TP,fixed:TP}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:SP,category:wP,piecewise:function(e,t){var n=DP.call(this,t);return n??=SP.call(this,e),n},fixed:TP}},symbolSize:{applyVisual:CP(`symbolSize`),_normalizedToVisual:EP([0,1])}},e}();function vP(e){var t=e.pieceList;e.hasSpecialVisual=!1,I(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function yP(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(mP(t,function(e,t){n[e]=t}),!B(r)){var i=[];U(r)?mP(r,function(e,t){var r=n[t];i[r??gP]=e}):i[gP]=r,r=OP(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function bP(e,t){var n=e.visual,r=[];U(n)?mP(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),OP(e,r)}function xP(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:EP([0,1])}}function SP(e){var t=this.option.visual;return t[Math.round(ao(e,[0,1],[0,t.length-1],!0))]||{}}function CP(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function wP(e){var t=this.option.visual;return t[this.option.loop&&e!==gP?e%t.length:e]}function TP(){return this.option.visual[0]}function EP(e){return{linear:function(t){return ao(t,e,this.option.visual,!0)},category:wP,piecewise:function(t,n){var r=DP.call(this,n);return r??=ao(t,e,this.option.visual,!0),r},fixed:TP}}function DP(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[_P.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function OP(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=L(t,function(e){return zr(e)||[0,0,0,1]})),t}var kP={linear:function(e){return ao(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=_P.findPieceIndex(e,t,!0);if(n!=null)return ao(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??gP},fixed:nt};function AP(e,t,n){return e?t<=n:t<n}var jP=`itemStyle`,MP=es(),NP={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||PP(t,{},e.getViewRoot().getAncestors(),e)}};function PP(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(jP),c=FP(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=IP(c),u=LP(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=IP(c),l.fill=f;else{var m=zP(e,i,a,s,c,p);I(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&PP(e,VP(i,c,e,t,m,r),n,r)})}}}function FP(e,t,n){var r=P({},t),i=n.designatedVisualItemStyle;return I([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function IP(e){var t=RP(e,`color`);if(t){var n=RP(e,`colorAlpha`),r=RP(e,`colorSaturation`);return r&&(t=Gr(t,null,null,r)),n&&(t=Kr(t,n)),t}}function LP(e,t){return t==null?null:Gr(t,null,null,e)}function RP(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function zP(e,t,n,r,i,a){if(!(!a||!a.length)){var o=BP(t,`color`)||i.color!=null&&i.color!==`none`&&(BP(t,`colorAlpha`)||BP(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new _P(d);return MP(f).drColorMappingBy=u,f}}}function BP(e,t){var n=e.get(t);return B(n)&&n.length?{name:t,range:n}:null}function VP(e,t,n,r,i,a){var o=P({},t);if(i){var s=i.type,c=s===`color`&&MP(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var HP=Math.max,UP=Math.min,WP=Be,GP=I,KP=[`itemStyle`,`borderWidth`],qP=[`itemStyle`,`gapWidth`],JP=[`upperLabel`,`show`],YP=[`upperLabel`,`height`],XP={seriesType:`treemap`,reset:function(e,t,n,r){var i=n.getWidth(),a=n.getHeight(),o=e.option,s=Um(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=o.size||[],l=Y(WP(s.width,c[0]),i),u=Y(WP(s.height,c[1]),a),d=r&&r.type,f=DN(r,[`treemapZoomToNode`,`treemapRootToNode`],e),p=d===`treemapRender`||d===`treemapMove`?r.rootRect:null,m=e.getViewRoot(),h=ON(m);if(d!==`treemapMove`){var g=d===`treemapZoomToNode`?iF(e,f,m,l,u):p?[p.width,p.height]:[l,u],_=o.sort;_&&_!==`asc`&&_!==`desc`&&(_=`desc`);var v={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var y={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};m.setLayout(y),ZP(m,v,!1,0),y=m.getLayout(),GP(h,function(e,t){var n=(h[t+1]||m).getValue();e.setLayout(P({dataExtent:[n,n],borderWidth:0,upperHeight:0},y))})}var b=e.getData().tree.root;b.setLayout(aF(s,p,f),!0),e.setLayoutInfo(s),oF(b,new Sn(-s.x,-s.y,i,a),h,m,0)}};function ZP(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(KP),l=s.get(qP)/2,u=sF(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=HP(i-2*f,0),a=HP(a-f-p,0);var m=i*a,h=QP(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=UP(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=nF(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,rF(y,_,g,l,!1),_=UP(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&rF(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)ZP(h[b],t,n,r+1)}}}function QP(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=De(o,function(e){return!e.isRemoved()}),eF(o,s);var l=tF(t,o,s);if(l.sum===0||(l.sum=$P(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function $P(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function eF(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function tF(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=[1/0,-1/0],GP(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function nF(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?HP(l*r/c,c/(l*i)):1/0}function rF(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=HP(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=HP(v-2*r,0);m[s[o]]=n[s[o]]+UP(r,g/2),m[s[a]]=l+UP(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function iF(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(KP),_=Math.max(g,sF(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function aF(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function oF(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new Sn(t.x-a.x,t.y-a.y,t.width,t.height);GP(e.viewChildren||[],function(e){oF(e,c,n,r,i+1)})}}function sF(e){return e.get(JP)?e.get(YP):0}function cF(e){e.registerSeriesModel(HN),e.registerChartView(uP),e.registerVisual(NP),e.registerLayout(XP),BN(e)}function lF(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){Me(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function uF(e){var t={};e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){H(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);P(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function dF(e){return e instanceof Array||(e=[e,e]),e}function fF(e){e.eachSeriesByType(`graph`,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=dF(e.get(`edgeSymbol`)),i=dF(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=dF(r.getShallow(`symbol`,!0)),o=dF(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(P(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}var pF=`-->`,mF=function(e){return e.get(`autoCurveness`)||null},hF=function(e,t){var n=mF(e),r=20,i=[];if(Me(n))r=n;else if(B(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},gF=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(pF)},_F=function(e){var t=e.split(pF);return[t[0],t[2],t[1]].join(pF)},vF=function(e,t){var n=gF(e.node1,e.node2,t);return t.__edgeMap[n]},yF=function(e,t){return bF(gF(e.node1,e.node2,t),t)+bF(gF(e.node2,e.node1,t),t)},bF=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function xF(e){mF(e)&&(e.__curvenessList=[],e.__edgeMap={},hF(e))}function SF(e,t,n,r){if(mF(n)){var i=gF(e,t,n),a=n.__edgeMap,o=a[_F(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function CF(e,t,n,r){var i=mF(t),a=B(i);if(!i)return null;var o=vF(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=yF(e,t);hF(t,l),e.lineStyle=e.lineStyle||{};var u=gF(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=bF(_F(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}function wF(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),TF(n,e)}}function TF(e,t){e.eachEdge(function(e,n){var r=Ve(e.getModel().get([`lineStyle`,`curveness`]),-CF(e,t,n,!0),0),i=ct(e.node1.getLayout()),a=ct(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function EF(e,t){e.eachSeriesByType(`graph`,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];I(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}TF(r.graph,e)}else(!t||t===`none`)&&wF(e)})}function DF(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function OF(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var kF=Math.PI,AF=[];function jF(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];gt(h,h),ht(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),NF(n,e.get([`circular`,`rotateLabel`]),c,l)}MF[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=Ve(t.getModel().get([`lineStyle`,`curveness`]),CF(t,e,n),0),i=ct(t.node1.getLayout()),a=ct(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var MF={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;AF.length=o;var c=DF(e);t.eachNode(function(e){var t=OF(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=kF/2),AF[e.dataIndex]=n,s+=n*2});var l=(2*kF-s)/o/2,u=0;t.eachNode(function(e){var t=l+AF[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function NF(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);P(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function PF(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&jF(e,`symbolSize`)})}var FF=dt;function IF(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=ot(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=ct(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;ft(t,u.p,s.p);var d=pt(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),gt(t,t),!s.fixed&&FF(s.p,s.p,t,f*d*p),!u.fixed&&FF(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(ft(t,c,g.p),FF(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];ft(t,u.p,s.p);var d=pt(t);d===0&&(lt(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&FF(s.pp,s.pp,t,v),!u.fixed&&FF(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(ft(y,g.p,g.pp),FF(g.p,g.p,y,p),st(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}function LF(e){e.eachSeriesByType(`graph`,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?wF(e):s===`circular`&&jF(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=B(u)?u:[u,u],p=B(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=ao(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=IF(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=ao(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=Ve(i.getModel().get([`lineStyle`,`curveness`]),-CF(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&st(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],st(f[0],u),st(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function RF(e,t,n){return Um(P(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}function zF(e,t){var n=[];return e.eachSeriesByType(`graph`,function(e){var r=e.get(`coordinateSystem`);if(!r||r===`view`){var i=e.getData(),a=i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),o=[],s=[];fc(a,o,s),s[0]-o[0]===0&&(s[0]+=1,--o[0]),s[1]-o[1]===0&&(s[1]+=1,--o[1]);var c=(s[0]-o[0])/(s[1]-o[1]),l=RF(e,t,c);isNaN(c)&&(o=[l.x,l.y],s=[l.x+l.width,l.y+l.height]);var u=s[0]-o[0],d=s[1]-o[1],f=l.width,p=l.height,m=e.coordinateSystem=new kM;m.zoomLimit=e.get(`scaleLimit`),m.setBoundingRect(o[0],o[1],u,d),m.setViewRect(l.x,l.y,f,p),m.setCenter(e.get(`center`),t),m.setZoom(e.get(`zoom`)),n.push(m)}}),n}var BF=Jd.prototype,VF=Qd.prototype,HF=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(HF);function UF(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var WF=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new HF},t.prototype.buildPath=function(e,t){UF(t)?BF.buildPath.call(this,e,t):VF.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return UF(this.shape)?BF.pointAt.call(this,e):VF.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=UF(t)?[t.x2-t.x1,t.y2-t.y1]:VF.tangentAt.call(this,e);return gt(n,n)},t}(cl),GF=[`fromSymbol`,`toSymbol`];function KF(e){return`_`+e+`Type`}function qF(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=Fy(i),l=Iy(o||0,c);return r+c+l+(a||``)+(s||``)}function JF(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=Fy(i),l=Iy(o||0,c),u=Py(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function YF(e){var t=new WF({name:`line`,subPixelOptimize:!0});return XF(t.shape,e),t}function XF(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var ZF=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=YF(e.getItemLayout(t));i.shape.percent=0,_f(i,{shape:{percent:1}},r,t),this.add(i),I(GF,function(n){var r=JF(n,e,t);this.add(r),this[KF(n)]=qF(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};XF(o.shape,a),gf(i,o,r,t),I(GF,function(n){var r=qF(n,e,t),i=KF(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=JF(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=sp(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,I(GF,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<Gl.length;n++){var r=Gl[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);op(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||`#000`,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?oo(g):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);B(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),Iu(this,u,d,l)},t.prototype.highlight=function(){_u(this)},t.prototype.downplay=function(){vu(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);XF(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=ft([],l,c);gt(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(J),QF=function(){function e(e){this.group=new J,this._LineCtor=e||ZF}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=eI(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=eI(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!$F(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r<e.end;r++)if(nI(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(nI(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!nI(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function $F(e){return e.animators&&e.animators.length>0}function eI(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:sp(t)}}function tI(e){return isNaN(e[0])||isNaN(e[1])}function nI(e){return e&&!tI(e[0])&&!tI(e[1])}var rI=[],iI=[],aI=[],oI=pr,sI=bt,cI=Math.abs;function lI(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){rI[0]=oI(r[0],i[0],a[0],u),rI[1]=oI(r[1],i[1],a[1],u);var d=cI(sI(rI,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;iI[0]=oI(r[0],i[0],a[0],s),iI[1]=oI(r[1],i[1],a[1],s),aI[0]=oI(r[0],i[0],a[0],p),aI[1]=oI(r[1],i[1],a[1],p);var d=sI(iI,t)-c;if(cI(d)<.01)break;var m=sI(aI,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function uI(e,t){var n=[],r=_r,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[ct(c[0]),ct(c[1])],c[2]&&c.__original.push(ct(c[2])));var d=c.__original;if(c[2]!=null){if(st(i[0],d[0]),st(i[1],d[2]),st(i[2],d[1]),l&&l!==`none`){var f=OF(e.node1),p=lI(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=OF(e.node2),p=lI(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}st(c[0],i[0]),st(c[1],i[2]),st(c[2],i[1])}else{if(st(a[0],d[0]),st(a[1],d[1]),ft(o,a[1],a[0]),gt(o,o),l&&l!==`none`){var f=OF(e.node1);dt(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=OF(e.node2);dt(a[1],a[1],o,-f*t)}st(c[0],a[0]),st(c[1],a[1])}})}function dI(e){return e.type===`view`}var fI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){var n=new BD,r=new QF,i=this.group;this._controller=new cj(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if(dI(i)){var c={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(c):gf(s,c,e)}uI(e.getGraph(),DF(e));var l=e.getData();a.updateData(l);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get([`force`,`layoutAnimation`]);d&&this._startForceLayoutIteration(d,f);var p=e.get(`layout`);l.graph.eachNode(function(t){var n=t.dataIndex,i=t.getGraphicEl(),a=t.getModel();if(i){i.off(`drag`).off(`dragend`);var o=a.get(`draggable`);o&&i.on(`drag`,function(a){switch(p){case`force`:d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(n),l.setItemLayout(n,[i.x,i.y]);break;case`circular`:l.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),jF(e,`symbolSize`,t,[a.offsetX,a.offsetY]),r.updateLayout(e);break;default:l.setItemLayout(n,[i.x,i.y]),TF(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){d&&d.setUnfixed(n)}),i.setDraggable(o,!!a.get(`cursor`)),a.get([`emphasis`,`focus`])===`adjacency`&&(X(i).focus=t.getAdjacentDataIndices())}}),l.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(X(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var m=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),h=l.getLayout(`cx`),g=l.getLayout(`cy`);l.graph.eachNode(function(e){NF(e,m,h,g)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step(function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())})})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,a=this._controllerHost,o=this.group;if(i.setPointerChecker(function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!hj(t,n,e)}),!dI(e.coordinateSystem)){i.disable();return}i.enable(e.get(`roam`)),a.zoomLimit=e.get(`scaleLimit`),a.zoom=e.coordinateSystem.getZoom(),i.off(`pan`).off(`zoom`).on(`pan`,function(t){fj(a,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:`graphRoam`,dx:t.dx,dy:t.dy})}).on(`zoom`,function(t){pj(a,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:`graphRoam`,zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),uI(e.getGraph(),DF(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=DF(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){uI(e.getGraph(),DF(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type=`graph`,t}(Sv);function pI(e){return`_EC_`+e}var mI=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[pI(e)]){var r=new hI(e,t);return r.hostGraph=this,this.nodes.push(r),n[pI(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[pI(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(Me(e)&&(e=this.nodes[e]),Me(t)&&(t=this.nodes[t]),e instanceof hI||(e=r[pI(e)]),t instanceof hI||(t=r[pI(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new gI(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof hI&&(e=e.id),t instanceof hI&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof hI||(t=this._nodesMap[pI(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),hI=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=G(),t=G(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var i=[r.node1],a=[r.node2],o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(var c=0;c<s.inEdges.length;c++)e.set(s.inEdges[c].dataIndex,!0),i.push(s.inEdges[c].node1)}for(o=0;o<a.length;){var l=a[o];o++,t.set(l.dataIndex,!0);for(var c=0;c<l.outEdges.length;c++)e.set(l.outEdges[c].dataIndex,!0),a.push(l.outEdges[c].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),gI=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=G(),t=G();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(i=0;i<r.length;){var s=r[i];i++,t.set(s.dataIndex,!0);for(var o=0;o<s.outEdges.length;o++)e.set(s.outEdges[o].dataIndex,!0),r.push(s.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function _I(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}we(hI,_I(`hostGraph`,`data`)),we(gI,_I(`hostGraph`,`edgeData`));function vI(e,t,n,r,i){for(var a=new mI(r),o=0;o<e.length;o++)a.addNode(Be(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(Be(Ko(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`)m=eC(e,n);else{var h=Uh.get(p),g=h&&h.dimensions||[];Se(g,`value`)<0&&g.concat([`value`]);var _=BS(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new zS(_,n),m.initData(e)}var v=new zS([`value`],n);return v.initData(c,s),i&&i(m,v),hN({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var yI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Ck(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),No(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){xF(this);var a=vI(r,n,this,!0,o);return I(a.edges,function(e){SF(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=Ap.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),H_(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return iv({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=L(this.option.categories||[],function(e){return e.value==null?P({value:0},e):e}),t=new zS([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.type=`series.graph`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:`#aaa`,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:`#212121`}}},t}(lv),bI={type:`graphRoam`,event:`graphRoam`,update:`none`};function xI(e){e.registerChartView(fI),e.registerSeriesModel(yI),e.registerProcessor(lF),e.registerVisual(uF),e.registerVisual(fF),e.registerLayout(EF),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,PF),e.registerLayout(LF),e.registerCoordinateSystem(`graphView`,{dimensions:kM.dimensions,create:zF}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},nt),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},nt),e.registerAction(bI,function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=t.coordinateSystem,i=BM(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})}var SI=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),CI=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new SI},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(cl);function wI(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Y(n[0],t.getWidth()),cy:Y(n[1],t.getHeight()),r:Y(e.get(`radius`),a/2)}}function TI(e,t){var n=e==null?``:e+``;return t&&(H(t)?n=t.replace(`{value}`,n):V(t)&&(n=t(e))),n}var EI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=wI(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?AO:Ld,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];Ic(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),I(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=Y(h.get(`length`),f),x=Y(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,ee=new Jd({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&ee.setStyle({stroke:r(A/v)}),l.add(ee)}if(_.get(`show`)){var j=_.get(`distance`)+D,te=TI(oo(A/v*(m-p)+p),_.get(`formatter`)),ne=r(A/v),re=O*(f-b-j)+u,ie=k*(f-b-j)+d,ae=_.get(`rotate`),oe=0;ae===`radial`?(oe=-S+2*Math.PI,oe>Math.PI/2&&(oe+=Math.PI)):ae===`tangential`?oe=-S-Math.PI/2:Me(ae)&&(oe=ae*Math.PI/180),oe===0?l.add(new El({style:cp(_,{text:te,x:re,y:ie,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:ne}),silent:!0})):l.add(new El({style:cp(_,{text:te,x:re,y:ie,verticalAlign:`middle`,align:`center`},{inheritColor:ne}),silent:!0,originX:re,originY:ie,rotation:oe}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var se=0;se<=y;se++){O=Math.cos(S),k=Math.sin(S);var ce=new Jd({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&ce.setStyle({stroke:r((A+se/y)/v)}),l.add(ce),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=Y(r.get(`width`),i.r),o=Y(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=Y(c[0],i.r),u=Y(c[1],i.r),d=r.get(`keepAspect`),f=s?Py(s,l-a/2,u-o,a,o,null,d):new CI({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?AO:Ld,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=ao(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);_f(r,{rotation:-((isNaN(+n)?x[0]:ao(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);_f(i,{shape:{endAngle:ao(n,b,x,m.get(`clip`))}},e),l.add(i),Bl(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,gf(s,{rotation:-((isNaN(+r)?x[0]:ao(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);gf(v,{shape:{endAngle:ao(r,b,x,m.get(`clip`))}},e),l.add(v),Bl(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof ml){var u=s.style;s.useStyle(P({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(ao(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,Bu(s,t),Iu(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,Bu(d,t),Iu(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=Py(i,t.cx-r/2+Y(a[0],t.r),t.cy-r/2+Y(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new J,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new El({silent:!0}),f[e]=new El({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new J,g=r(ao(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+Y(v[0],i.r),b=i.cy+Y(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:cp(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+Y(C[0],i.r),T=i.cy+Y(C[1],i.r),E=Y(S.get(`width`),i.r),D=Y(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:cp(S,{x:w,y:T,text:TI(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),vp(x,{normal:S},a,function(e){return TI(e,k)}),p&&yp(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return TI(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(Sv),DI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return Sk(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,`#E6EBF8`]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:`#63677A`,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:`#63677A`,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:`#464646`,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:`#fff`,borderWidth:0,borderColor:`#5470c6`}},title:{show:!0,offsetCenter:[0,`20%`],color:`#464646`,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:`rgba(0,0,0,0)`,borderWidth:0,borderColor:`#ccc`,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:`#464646`,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(lv);function OI(e){e.registerChartView(EI),e.registerSeriesModel(DI)}var kI=[`itemStyle`,`opacity`],AI=function(e){O(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new Gd,o=new El;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(kI);c??=1,n||Sf(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,_f(r,{style:{opacity:c}},i,t)):gf(r,{style:{opacity:c},shape:{points:o.points}},i,t),Bu(r,a),this._updateLabel(e,t),Iu(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;op(i,sp(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:l,outsideFill:l});var u=s.linePoints;r.setShape({points:u}),n.textGuideLineConfig={anchor:u?new pn(u[0][0],u[0][1]):null},gf(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),ET(n,DT(o),{stroke:l})},t}(Ud),jI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new AI(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){xf(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(Sv),MI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ck(R(this.getData,this),R(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Sk(this,{coordDimensions:[`value`],encodeDefaulter:z(mh,this)})},t.prototype._defaultLabelLine=function(e){No(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:60,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:`#fff`,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:`#212121`}}},t}(lv);function NI(e,t){return Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function PI(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return V(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function FI(e){var t=e.hostModel.get(`orient`);e.each(function(n){var r=e.getItemModel(n),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(n),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,d=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=t===`horizontal`?s[3][0]:s[1][0],m=t===`horizontal`?s[3][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=t===`horizontal`?s[0][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=t===`horizontal`?s[1][0]:s[3][0],m=t===`horizontal`?s[1][1]:s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),t===`horizontal`?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}function II(e,t){e.eachSeriesByType(`funnel`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=NI(e,t),o=e.get(`orient`),s=a.width,c=a.height,l=PI(n,i),u=a.x,d=a.y,f=o===`horizontal`?[Y(e.get(`minSize`),c),Y(e.get(`maxSize`),c)]:[Y(e.get(`minSize`),s),Y(e.get(`maxSize`),s)],p=n.getDataExtent(r),m=e.get(`min`),h=e.get(`max`);m??=Math.min(p[0],0),h??=p[1];var g=e.get(`funnelAlign`),_=e.get(`gap`),v=((o===`horizontal`?s:c)-_*(n.count()-1))/n.count(),y=function(e,t){if(o===`horizontal`){var i=ao(n.get(r,e)||0,[m,h],f,!0),a=void 0;switch(g){case`top`:a=d;break;case`center`:a=d+(c-i)/2;break;case`bottom`:a=d+(c-i);break}return[[t,a],[t,a+i]]}var l=ao(n.get(r,e)||0,[m,h],f,!0),p;switch(g){case`left`:p=u;break;case`center`:p=u+(s-l)/2;break;case`right`:p=u+s-l;break}return[[p,t],[p+l,t]]};i===`ascending`&&(v=-v,_=-_,o===`horizontal`?u+=s:d+=c,l=l.reverse());for(var b=0;b<l.length;b++){var x=l[b],S=l[b+1],C=n.getItemModel(x);if(o===`horizontal`){var w=C.get([`itemStyle`,`width`]);w==null?w=v:(w=Y(w,s),i===`ascending`&&(w=-w));var T=y(x,u),E=y(S,u+w);u+=w+_,n.setItemLayout(x,{points:T.concat(E.slice().reverse())})}else{var D=C.get([`itemStyle`,`height`]);D==null?D=v:(D=Y(D,c),i===`ascending`&&(D=-D));var T=y(x,d),E=y(S,d+D);d+=D+_,n.setItemLayout(x,{points:T.concat(E.slice().reverse())})}}FI(n)})}function LI(e){e.registerChartView(jI),e.registerSeriesModel(MI),e.registerLayout(II),e.registerProcessor(pk(`funnel`))}var RI=.3,zI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new J,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=UI(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){WI(HI(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n),i=VI(a,t,c,s);a.setItemGraphicEl(t,r),gf(r,{shape:{points:i}},e,t),Sf(r),WI(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=BI(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=UI(t),s=this._progressiveEls=[],c=e.start;c<e.end;c++){var l=HI(r,this._dataGroup,c,a,i);l.incremental=!0,WI(l,r,c,o),s.push(l)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(Sv);function BI(e,t,n){var r=e.model,i=e.getRect(),a=new Sl({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),_f(a,{shape:{width:i.width,height:i.height}},t,n),a}function VI(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);GI(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function HI(e,t,n,r,i){var a=new Gd({shape:{points:VI(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function UI(e){var t=e.get(`smooth`,!0);return t===!0&&(t=RI),t=Co(t),ze(t)&&(t=0),{smooth:t}}function WI(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);Bu(e,i,`lineStyle`),Iu(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function GI(e,t){return t===`category`?e==null:e==null||isNaN(e)}var KI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return eC(null,this,{useEncodeDefaulter:R(qI,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type=`series.parallel`,t.dependencies=[`parallel`],t.defaultOption={z:2,coordinateSystem:`parallel`,parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:`solid`},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:`linear`},t}(lv);function qI(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return I(t.dimensions,function(e){n[e]=JI(e)}),n}}function JI(e){return+e.replace(`dim`,``)}var YI=[`lineStyle`,`opacity`],XI={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(YI,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function ZI(e){QI(e),$I(e)}function QI(e){if(!e.parallel){var t=!1;I(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function $I(e){I(Mo(e.parallelAxis),function(t){if(U(t)){var n=t.parallelIndex||0,r=Mo(e.parallel)[n];r&&r.parallelAxisDefault&&N(t,r.parallelAxisDefault,!1)}})}var eL=5,tL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},I(nL,function(e,t){n.getZr().on(t,this._handlers[t]=R(e,this))},this)),Mv(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){Nv(this,`_throttledDispatchExpand`),I(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(P({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(vv),nL={mousedown:function(e){rL(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(rL(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>eL)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!rL(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function rL(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var iL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&N(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){I([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];I(De(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=`parallel`,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(Zm),aL=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(tT);function oL(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=cL(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=cL(s,[0,o]),i=a=cL(s,[i,a]),r=0}t[0]=cL(t[0],n),t[1]=cL(t[1],n);var c=sL(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=cL(t[r],u);var d=sL(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=sL(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function sL(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function cL(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var lL=I,uL=Math.min,dL=Math.max,fL=Math.floor,pL=Math.ceil,mL=oo,hL=Math.PI,gL=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=G(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;lL(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new aL(e,dw(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();lL(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),uw(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=_L(e.get(`axisExpandWidth`),s),u=_L(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=_L(f[1]-f[0],s),f[1]=f[0]+p):(p=_L(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||fL(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[fL(mL(f[0]/l,1))+1,pL(mL(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),lL(n,function(t,n){var a=(r.axisExpandable?yL:vL)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:hL/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=rn();ln(u,u,l),cn(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];I(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Hf([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return M(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?oL(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[dL(0,a[1]*o/f-f/2)],r[1]=uL(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function _L(e,t){return uL(dL(e,t[0]),t[1])}function vL(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function yL(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}function bL(e,t){var n=[];return e.eachComponent(`parallel`,function(r,i){var a=new gL(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`parallel`&&(e.coordinateSystem=e.getReferringComponents(`parallel`,is).models[0].coordinateSystem)}),n}var xL={create:bL},SL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return Es([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=M(e);if(t)for(var n=t.length-1;n>=0;n--)so(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(Zm);we(SL,xw);var CL=!0,wL=Math.min,TL=Math.max,EL=Math.pow,DL=1e4,OL=6,kL=6,AL=`globalPan`,jL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ML={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},NL={brushStyle:{lineWidth:2,stroke:`rgba(210,219,238,0.3)`,fill:`#D2DBEE`},transformable:!0,brushMode:`single`,removeOnClick:!1},PL=0,FL=function(e){O(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new J,n._uid=`brushController_`+PL++,I(pR,function(e,t){this._handlers[t]=R(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||ij(t,AL,this._uid),I(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(M(NL),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;aj(e,AL,this._uid),I(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};I(e,function(e){t[e.panelId]=M(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=L(e,function(e){return N(M(NL),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new dS(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:BL(i,r[t]=o==null?LL(i,IL(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),WL(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Dt);function IL(e,t){var n=gR[t.brushType].createCover(e,t);return n.__brushOption=t,zL(n,t),e.group.add(n),n}function LL(e,t){var n=VL(t);return n.endCreating&&(n.endCreating(e,t),zL(t,t.__brushOption)),t}function RL(e,t){var n=t.__brushOption;VL(t).updateCoverShape(e,t,n.range,n)}function zL(e,t){var n=t.z;n??=DL,e.traverse(function(e){e.z=n,e.z2=n})}function BL(e,t){VL(t).updateCommon(e,t),RL(e,t)}function VL(e){return gR[e.__brushOption.brushType]}function HL(e,t,n){var r=e._panels;if(!r)return CL;var i,a=e._transform;return I(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function UL(e,t){var n=e._panels;if(!n)return CL;var r=t.__brushOption.panelId;return r==null?CL:n[r]}function WL(e){var t=e._covers,n=t.length;return I(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function GL(e,t){var n=L(e._covers,function(e){var t=e.__brushOption,n=M(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function KL(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return EL(i*i+a*a,.5)>OL}function qL(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function JL(e,t,n,r){var i=new J;return i.add(new Sl({name:`main`,style:QL(n),silent:!0,draggable:!0,cursor:`move`,drift:z(rR,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:z(GL,t,{isEnd:!0})})),I(r,function(n){i.add(new Sl({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:z(rR,e,t,i,n),ondragend:z(GL,t,{isEnd:!0})}))}),i}function YL(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=TL(i,kL),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;ZL(e,t,`main`,o,s,m,h),r.transformable&&(ZL(e,t,`w`,c,l,a,_),ZL(e,t,`e`,f,l,a,_),ZL(e,t,`n`,c,l,g,a),ZL(e,t,`s`,c,p,g,a),ZL(e,t,`nw`,c,l,a,a),ZL(e,t,`ne`,f,l,a,a),ZL(e,t,`sw`,c,p,a,a),ZL(e,t,`se`,f,p,a,a))}function XL(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(QL(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),I([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?tR(e,n[0]):nR(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?ML[a]+`-resize`:null})})}function ZL(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(sR(oR(e,t,[[r,i],[r+a,i+o]])))}function QL(e){return F({strokeNoScale:!0},e.brushStyle)}function $L(e,t,n,r){var i=[wL(e,n),wL(t,r)],a=[TL(e,n),TL(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function eR(e){return Vf(e.group)}function tR(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Uf({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],eR(e))]}function nR(e,t){var n=[tR(e,t[0]),tR(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function rR(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=aR(t,i,a);I(r,function(e){var t=jL[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange($L(s[0][0],s[1][0],s[0][1],s[1][1])),BL(t,n),GL(t,{isEnd:!1})}function iR(e,t,n,r){var i=t.__brushOption.range,a=aR(e,n,r);I(i,function(e){e[0]+=a[0],e[1]+=a[1]}),BL(e,t),GL(e,{isEnd:!1})}function aR(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function oR(e,t,n){var r=UL(e,t);return r&&r!==CL?r.clipPath(n,e._transform):M(n)}function sR(e){var t=wL(e[0][0],e[1][0]),n=wL(e[0][1],e[1][1]),r=TL(e[0][0],e[1][0]),i=TL(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function cR(e,t,n){if(!(!e._brushType||hR(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=HL(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===CL||s.panelId===a.panelId)&&gR[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function lR(e){var t=e.event;t.preventDefault&&t.preventDefault()}function uR(e,t,n){return e.childOfName(`main`).contain(t,n)}function dR(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),KL(e)||i){if(a&&!i){o.brushMode===`single`&&WL(e);var c=M(o);c.brushType=fR(c.brushType,a),c.panelId=a===CL?null:a.panelId,i=e._creatingCover=IL(e,c),e._covers.push(i)}if(i){var l=gR[fR(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(oR(e,i,e._track)),r&&(LL(e,i),l.updateCommon(e,i)),RL(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&HL(e,t,n)&&WL(e)&&(s={isEnd:r,removeOnClick:!0});return s}function fR(e,t){return e===`auto`?t.defaultBrushType:e}var pR={mousedown:function(e){if(this._dragging)mR(this,e);else if(!e.target||!e.target.draggable){lR(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=HL(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(cR(this,e,r),this._dragging){lR(e);var i=dR(this,e,r,!1);i&&GL(this,i)}},mouseup:function(e){mR(this,e)}};function mR(e,t){if(e._dragging){lR(t);var n=t.offsetX,r=t.offsetY,i=dR(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&GL(e,i)}}function hR(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var gR={lineX:_R(0),lineY:_R(1),rect:{createCover:function(e,t){function n(e){return e}return JL({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=qL(e);return $L(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){YL(e,t,n,r)},updateCommon:XL,contain:uR},polygon:{createCover:function(e,t){var n=new J;return n.add(new Gd({name:`main`,style:QL(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ud({name:`main`,draggable:!0,drift:z(iR,e,t),ondragend:z(GL,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:oR(e,t,n)})},updateCommon:XL,contain:uR}};function _R(e){return{createCover:function(t,n){return JL({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=qL(t);return[wL(n[0][e],n[1][e]),TL(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=UL(t,n);if(o!==CL&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),YL(t,n,c,i)},updateCommon:XL,contain:uR}}function vR(e){return e=xR(e),function(t){return qf(t,e)}}function yR(e,t){return e=xR(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function bR(e,t,n){var r=xR(e);return function(e,i){return r.contain(i[0],i[1])&&!hj(e,t,n)}}function xR(e){return Sn.create(e)}var SR=[`axisLine`,`axisTickLabel`,`axisName`],CR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new FL(n.getZr())).on(`brush`,R(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!wR(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new J,this.group.add(this._axisGroup),e.get(`show`)){var a=ER(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=P({strokeContainThreshold:c},u),f=new aA(e,d);I(SR,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,s,e,a,c,n),Kf(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=Sn.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:vR(l),isTargetByCursor:bR(l,a,r),getLinearBrushOtherExtent:yR(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(TR(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=L(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(vv);function wR(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function TR(e){var t=e.axis;return L(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function ER(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var DR={type:`axisAreaSelect`,event:`axisAreaSelected`};function OR(e){e.registerAction(DR,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var kR={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function AR(e){e.registerComponentView(tL),e.registerComponentModel(iL),e.registerCoordinateSystem(`parallel`,xL),e.registerPreprocessor(ZI),e.registerComponentModel(SL),e.registerComponentView(CR),Vk(e,`parallel`,SL,kR),OR(e)}function jR(e){cS(AR),e.registerChartView(zI),e.registerSeriesModel(KI),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,XI)}var MR=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),NR=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new MR},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){_u(this)},t.prototype.downplay=function(){vu(this)},t}(cl),PR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this.group,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,i.eachEdge(function(t){var n=new NR,r=X(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),FR(n.style,d,t);var k=``+i.get(`value`),A=sp(i,`edgeLabel`);op(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,Ve(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);Bu(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return FR(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var ee=j.get(`focus`);Iu(n,ee===`adjacency`?t.getAdjacentDataIndices():ee===`trajectory`?t.getTrajectoryDataIndices():ee,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Sl({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});op(f,sp(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),Bu(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),X(f).dataType=`node`;var p=u.get(`focus`);Iu(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(IR(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type=`sankey`,t}(Sv);function FR(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);H(r)&&H(i)&&(e.fill=new rf(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function IR(e,t,n){var r=new Sl({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return _f(r,{shape:{width:e.width+20}},t,n),r}var LR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)i[o].depth!=null&&i[o].depth>=0&&(a[i[o].depth]=new Ap(i[o],this,t));return vI(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return H_(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return H_(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.defaultOption={z:2,coordinateSystem:`view`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:`#314656`,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:`#212121`}},animationEasing:`linear`,animationDuration:1e3},t}(lv);function RR(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=zR(e,t);e.layoutInfo=i;var a=i.width,o=i.height,s=e.getGraph(),c=s.nodes,l=s.edges;VR(c),BR(c,l,n,r,a,o,De(c,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function zR(e,t){return Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function BR(e,t,n,r,i,a,o,s,c){HR(e,t,n,i,a,s,c),qR(e,t,a,i,r,o,s),oz(e,s)}function VR(e){I(e,function(e){var t=iz(e.outEdges,rz),n=iz(e.inEdges,rz),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function HR(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=t.indexOf(y);s[b]=0;var x=y.node2,S=e.indexOf(x);--c[S]===0&&u.indexOf(x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&WR(e,o,a,C),KR(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function UR(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function WR(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}I(e,function(e){UR(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&GR(e,r)}function GR(e,t){I(e,function(e){!UR(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function KR(e,t,n){I(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function qR(e,t,n,r,i,a,o){var s=JR(e,o);YR(s,t,n,r,i,o),XR(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,ZR(s,c,o),XR(s,i,n,r,o),az(s,c,o),XR(s,i,n,r,o)}function JR(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=us(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),I(i.keys,function(e){n.push(i.buckets.get(e))}),n}function YR(e,t,n,r,i,a){var o=1/0;I(e,function(e){var t=e.length,s=0;I(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),I(e,function(e){I(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),I(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function XR(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;I(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function ZR(e,t,n){I(e.slice().reverse(),function(e){I(e,function(e){if(e.outEdges.length){var r=iz(e.outEdges,QR,n)/iz(e.outEdges,rz);if(isNaN(r)){var i=e.outEdges.length;r=i?iz(e.outEdges,$R,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-nz(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-nz(e,n))*t;e.setLayout({y:o},!0)}}})})}function QR(e,t){return nz(e.node2,t)*e.getValue()}function $R(e,t){return nz(e.node2,t)}function ez(e,t){return nz(e.node1,t)*e.getValue()}function tz(e,t){return nz(e.node1,t)}function nz(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function rz(e){return e.getValue()}function iz(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function az(e,t,n){I(e,function(e){I(e,function(e){if(e.inEdges.length){var r=iz(e.inEdges,ez,n)/iz(e.inEdges,rz);if(isNaN(r)){var i=e.inEdges.length;r=i?iz(e.inEdges,tz,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-nz(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-nz(e,n))*t;e.setLayout({y:o},!0)}}})})}function oz(e,t){var n=t===`vertical`?`x`:`y`;I(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),I(e,function(e){var t=0,n=0;I(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),I(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function sz(e){e.eachSeriesByType(`sankey`,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;I(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),I(n,function(t){var n=new _P({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&I(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function cz(e){e.registerChartView(PR),e.registerSeriesModel(LR),e.registerLayout(RR),e.registerVisual(sz),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var lz=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];I(h,function(e,t){var n;B(e)?(n=e.slice(),e.unshift(t)):B(e.value)?(n=P({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:hS(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:hS(m),dimsDef:_.slice()}];return Sk(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:z(ph,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),uz=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.boxplot`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:`#fff`,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:`rgba(0,0,0,0.2)`}},animationDuration:800},t}(lv);we(uz,lz,!0);var dz=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.get(`layout`)===`horizontal`);r.diff(a).add(function(e){if(r.hasValue(e)){var t=mz(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(Sf(n),hz(s,n,r,e)):n=mz(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(Sv),fz=function(){function e(){}return e}(),pz=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new fz},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(cl);function mz(e,t,n,r,i){var a=e.ends,o=new pz({shape:{points:i?gz(a,r,e):a}});return hz(e,o,t,n,i),o}function hz(e,t,n,r,i){var a=n.hostModel,o=wf[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);Bu(t,s),Iu(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function gz(e,t,n){return L(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var _z=I;function vz(e){_z(yz(e),function(e){var t=e.seriesModels;t.length&&(bz(e),_z(t,function(t,n){xz(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}function yz(e){var t=[],n=[];return e.eachSeriesByType(`boxplot`,function(e){var r=e.getBaseAxis(),i=Se(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}function bz(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type===`category`)s=t.getBandWidth();else{var c=0;_z(n,function(e){c=Math.max(c,e.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/c}_z(n,function(e){var t=e.get(`boxWidth`);B(t)||(t=[t,t]),o.push([Y(t[0],s)||0,Y(t[1],s)||0])});var u=s*.8-2,d=u/r*.3,f=(u-d*(r-1))/r,p=f/2-u/2;_z(n,function(e,t){a.push(p),p+=d+f,i.push(Math.min(Math.max(f,o[t][0]),o[t][1]))})}function xz(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.get(`layout`)===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function Sz(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=so(e[o].slice()),c=xo(s,.25),l=xo(s,.5),u=xo(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=V(g)?g({value:o}):H(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var Cz={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&Oo(``);var n=Sz(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function wz(e){e.registerSeriesModel(uz),e.registerChartView(dz),e.registerLayout(vz),e.registerTransform(Cz)}var Tz=[`itemStyle`,`borderColor`],Ez=[`itemStyle`,`borderColor0`],Dz=[`itemStyle`,`borderColorDoji`],Oz=[`itemStyle`,`color`],kz=[`itemStyle`,`color0`];function Az(e,t){return t.get(e>0?Oz:kz)}function jz(e,t){return t.get(e===0?Dz:e>0?Tz:Ez)}var Mz={seriesType:`candlestick`,plan:yv(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=Az(i,r),a.stroke=jz(i,r)||a.fill,P(t.ensureUniqueItemVisual(n,`style`),a)}}}}},Nz=[`color`,`borderColor`],Pz=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&Rz(s,o))return;var c=Lz(o,n,!0);_f(c,{shape:{points:o.ends}},e,n),zz(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&Rz(s,u)){r.remove(l);return}l?(gf(l,{shape:{points:u.ends}},e,o),Sf(l)):l=Lz(u,o),zz(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Uz(e,this.group);var t=e.get(`clip`,!0)?nO(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=Lz(n.getItemLayout(i),i);zz(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){Uz(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(Sv),Fz=function(){function e(){}return e}(),Iz=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new Fz},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(cl);function Lz(e,t,n){var r=e.ends;return new Iz({shape:{points:n?Bz(r,e):r},z2:100})}function Rz(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function zz(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0,e.__simpleBox=r,Bu(e,i);var a=t.getItemLayout(n).sign;I(e.states,function(e,t){var n=i.getModel(t),r=Az(a,n),o=jz(a,n)||r,s=e.style||={};r&&(s.fill=r),o&&(s.stroke=o)});var o=i.getModel(`emphasis`);Iu(e,o.get(`focus`),o.get(`blurScope`),o.get(`disabled`))}function Bz(e,t){return L(e,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var Vz=function(){function e(){}return e}(),Hz=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new Vz},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(cl);function Uz(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new Hz({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Hz({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new Hz({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),Wz(1,o,e,i),Wz(-1,s,e,i),Wz(0,c,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function Wz(e,t,n,r){var i=jz(e,n)||Az(e,n),a=n.getModel(`itemStyle`).getItemStyle(Nz);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var Gz=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.candlestick`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(lv);we(Gz,lz,!0);function Kz(e){!e||!B(e.series)||I(e.series,function(e){U(e)&&e.type===`k`&&(e.type=`candlestick`)})}var qz={seriesType:`candlestick`,plan:yv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Yz(e,n),i=0,a=1,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=L(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Math.min(m,h),y=Math.max(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:Jz(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=Bf(a[i]+r/2,1,!1),o[i]=Bf(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=Bf(e[i],1),e}}function m(n,r){for(var o=xC(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=Jz(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function Jz(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function Yz(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=Y(W(e.get(`barMaxWidth`),i),i),o=Y(W(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):Y(s,i)}function Xz(e){e.registerChartView(Pz),e.registerSeriesModel(Gz),e.registerPreprocessor(Kz),e.registerVisual(Mz),e.registerLayout(qz)}function Zz(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var Qz=function(e){O(t,e);function t(t,n){var r=e.call(this)||this,i=new FD(t,n),a=new J;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=Py(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}Zz(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}Zz(n,e)},t.prototype.highlight=function(){_u(this)},t.prototype.downplay=function(){vu(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=Fy(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=Iy(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,Iu(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(J),$z=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new BD(Qz)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get(`clip`,!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=SO(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=fn(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(Sv),eB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return eC(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type=`series.effectScatter`,t.dependencies=[`grid`,`polar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,effectType:`ripple`,progressive:0,showEffectOn:`render`,clip:!0,rippleEffect:{period:4,scale:2.5,brushType:`fill`,number:3},universalTransition:{divideShape:`clone`},symbolSize:10},t}(lv);function tB(e){e.registerChartView($z),e.registerSeriesModel(eB),e.registerLayout(SO(`effectScatter`))}var nB=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new ZF(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);B(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=Py(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=Be(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=V(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return vt(e.__p1,e.__cp1)+vt(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=pr,c=mr;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=vt(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*vt(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(J),rB=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new Gd({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;gf(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,Iu(this,o,s,c)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape(`points`,e.getItemLayout(t))},t}(J),iB=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new rB(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=vt(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(nB),aB=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),oB=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new aB},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(Rc(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(Bc(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(Rc(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new Sn(n,r,i,a)}return e},t}(cl),sB=function(){function e(){this.group=new J}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout(`linesPoints`),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new oB({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.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 a=X(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cB={seriesType:`lines`,plan:yv(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}}},lB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=s.painter.getType()===`svg`;c||s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&!c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&nO(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=cB.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new sB:new QF(i?r?iB:rB:r?nB:ZF),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(Sv),uB=typeof Uint32Array>`u`?Array:Uint32Array,dB=typeof Float64Array>`u`?Array:Float64Array;function fB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=L(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),xe([t,e[0],e[1]])}))}var pB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],fB(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(fB(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=$e(this._flatCoords,t.flatCoords),this._flatCoordsOffset=$e(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Me(e[0])){for(var n=e.length,r=new uB(n),i=new dB(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];i[a++]=d,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new zS([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get(`name`);if(i)return i;var a=r.get(`fromName`),o=r.get(`toName`),s=[];return a!=null&&s.push(a),o!=null&&s.push(o),H_(`nameValue`,{name:s.join(` > `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(lv);function mB(e){return e instanceof Array||(e=[e,e]),e}var hB={seriesType:`lines`,reset:function(e){var t=mB(e.get(`symbol`)),n=mB(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=mB(n.getShallow(`symbol`,!0)),i=mB(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function gB(e){e.registerChartView(lB),e.registerSeriesModel(pB),e.registerLayout(cB),e.registerVisual(hB)}var _B=256,vB=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=oe.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(_B-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=oe.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=`#000`,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function yB(e,t,n){var r=e[1]-e[0];t=L(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function bB(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function xB(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var SB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):xB(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(xB(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var a=e.coordinateSystem,o=rO(a,`cartesian2d`),s,c,l,u;if(o){var d=a.getAxis(`x`),f=a.getAxis(`y`);s=d.getBandWidth()+.5,c=f.getBandWidth()+.5,l=d.scale.getExtent(),u=f.scale.getExtent()}for(var p=this.group,m=e.getData(),h=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),g=e.getModel([`blur`,`itemStyle`]).getItemStyle(),_=e.getModel([`select`,`itemStyle`]).getItemStyle(),v=e.get([`itemStyle`,`borderRadius`]),y=sp(e),b=e.getModel(`emphasis`),x=b.get(`focus`),S=b.get(`blurScope`),C=b.get(`disabled`),w=o?[m.mapDimension(`x`),m.mapDimension(`y`),m.mapDimension(`value`)]:[m.mapDimension(`time`),m.mapDimension(`value`)],T=n;T<r;T++){var E=void 0,D=m.getItemVisual(T,`style`);if(o){var O=m.get(w[0],T),k=m.get(w[1],T);if(isNaN(m.get(w[2],T))||isNaN(O)||isNaN(k)||O<l[0]||O>l[1]||k<u[0]||k>u[1])continue;var A=a.dataToPoint([O,k]);E=new Sl({shape:{x:A[0]-s/2,y:A[1]-c/2,width:s,height:c},style:D})}else{if(isNaN(m.get(w[1],T)))continue;E=new Sl({z2:1,shape:a.dataToRect([m.get(w[0],T)]).contentShape,style:D})}if(m.hasItemOption){var j=m.getItemModel(T),ee=j.getModel(`emphasis`);h=ee.getModel(`itemStyle`).getItemStyle(),g=j.getModel([`blur`,`itemStyle`]).getItemStyle(),_=j.getModel([`select`,`itemStyle`]).getItemStyle(),v=j.get([`itemStyle`,`borderRadius`]),x=ee.get(`focus`),S=ee.get(`blurScope`),C=ee.get(`disabled`),y=sp(j)}E.shape.r=v;var te=e.getRawValue(T),ne=`-`;te&&te[2]!=null&&(ne=te[2]+``),op(E,y,{labelFetcher:e,labelDataIndex:T,defaultOpacity:D.opacity,defaultText:ne}),E.ensureState(`emphasis`).style=h,E.ensureState(`blur`).style=g,E.ensureState(`select`).style=_,Iu(E,x,S,C),E.incremental=i,i&&(E.states.emphasis.hoverLayer=!0),p.add(E),m.setItemGraphicEl(T,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new vB;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?bB(v,n.option.range):yB(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new ml({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(Sv),CB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return eC(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=Uh.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:`#212121`}}},t}(lv);function wB(e){e.registerChartView(SB),e.registerSeriesModel(CB)}var TB=[`itemStyle`,`borderWidth`],EB=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],DB=new vd,OB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:EB[+s],categoryDim:EB[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=kB(i,e,BB(i,e),l),n=UB(i,l,t);i.setItemGraphicEl(e,n),r.add(n),YB(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=kB(i,e,BB(i,e),l),s=KB(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?WB(n,l,o):n=UB(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),YB(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&GB(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?nO(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){GB(r,X(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(Sv);function kB(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};AB(n,a,i,r,d),MB(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),NB(n,d.symbolScale,c,r,d);var f=d.symbolSize;return PB(n,f,i,a,o,Iy(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function AB(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(B(o)){var d=[jB(s,o[0])-c,jB(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:jB(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function jB(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function MB(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=B(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=Y(m[d.index],f),m[u.index]=Y(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function NB(e,t,n,r,i){var a=e.get(TB)||0;a&&(DB.attr({scaleX:t[0],scaleY:t[1],rotation:n}),DB.updateTransform(),a/=DB.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function PB(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=Be(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=Y(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=wo(r),w=C?r:XB((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?XB((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=P({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function FB(e){var t=e.symbolPatternSize,n=Py(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function IB(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(qB(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?JB(e,null,m(u),n,r):JB(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=FB(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);JB(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function LB(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?JB(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=FB(n),i.add(a),JB(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function RB(e,t,n){var r=P({},t.barRectShape),i=e.__pictorialBarRect;i?JB(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Sl({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function zB(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=P({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)gf(i,{shape:a},s,c);else{a[o.wh]=0,i=new Sl({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],wf[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function BB(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=VB,n.isAnimationEnabled=HB,n}function VB(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function HB(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function UB(e,t,n,r){var i=new J,a=new J;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?IB(i,t,n):LB(i,t,n),RB(i,n,r),zB(i,t,n,r),i.__pictorialShapeStr=KB(e,n),i.__pictorialSymbolMeta=n,i}function WB(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;gf(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?IB(e,t,n,!0):LB(e,t,n,!0),RB(e,n,!0),zB(e,t,n,!0)}function GB(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];qB(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),I(a,function(e){yf(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function KB(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function qB(e,t,n){I(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function JB(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&wf[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function YB(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);qB(e,function(e){if(e instanceof ml){var t=e.style;e.useStyle(P({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,op(m,sp(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:ND(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Iu(e,u,d,a.get(`disabled`))}function XB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var ZB=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=Fp(DO.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:`#212121`}}}),t}(DO);function QB(e){e.registerChartView(OB),e.registerSeriesModel(ZB),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,z(jC,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MC(`pictorialBar`))}var $B=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new dS(this._layersSeries||[],o,u,u),f=[];d.add(R(p,this,`add`)).update(R(p,this,`update`)).remove(R(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new J;y=new $D({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(eV(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,gf(y,{shape:{points:l,stackedOnPoints:u}},e),Sf(y)}op(y,sp(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),Bu(y,e),Iu(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=`themeRiver`,t}(Sv);function eV(e,t,n){var r=new Sl({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return _f(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var tV=2,nV=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ck(R(this.getData,this),R(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=us(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,is).models[0].get(`type`),r=De(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=G(),s=0,c=0;c<i.length;++c)a.push(i[c][tV]),o.get(i[c][tV])||(o.set(i[c][tV],s),s++);var l=BS(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:hS(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new zS(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=us(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){B(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return H_(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.themeRiver`,t.dependencies=[`singleAxis`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`singleAxis`,boundaryGap:[`10%`,`10%`],singleAxisIndex:0,animationEasing:`linear`,label:{margin:4,show:!0,position:`left`,fontSize:11},emphasis:{label:{show:!0}}},t}(lv);function rV(e,t){e.eachSeriesByType(`themeRiver`,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=Y(a[0],i.height),a[1]=Y(a[1],i.height),iV(t,e,i.height-a[0]-a[1])):(a[0]=Y(a[0],i.width),a[1]=Y(a[1],i.width),iV(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function iV(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=L(i,function(t){return L(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=aV(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function aV(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function oV(e){e.registerChartView($B),e.registerSeriesModel(nV),e.registerLayout(rV),e.registerProcessor(pk(`themeRiver`))}var sV=2,cV=4,lV=function(e){O(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=sV,a.textConfig={inside:!0},X(a).seriesIndex=n.seriesIndex;var o=new El({z2:cV,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;X(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=P({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=Cb(d,i)),P(l,FO(o.getModel(`itemStyle`),l,!0)),I(Gl,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=FO(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,_f(a,{shape:{r:c.r}},n,t.dataIndex)):(gf(a,{shape:l},n),Sf(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?$e(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;Iu(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),I(Kl,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=cp(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=Hc(w===`tangential`?Math.PI/2-o:o),O=D>T&&!ho(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=a===2*Math.PI&&i.r0===0?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=Hc(-o)+(O?Math.PI:0):w===`tangential`?k=Hc(Math.PI/2-o)+(O?Math.PI:0):Me(w)&&(k=w*Math.PI/180),h.rotation=Hc(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(Ld),uV=`sunburstRootToNode`,dV=`sunburstHighlight`,fV=`sunburstUnhighlight`;function pV(e){e.registerAction({type:uV,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=DN(e,[uV],t);if(r){var i=t.getViewRoot();i&&(e.direction=kN(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:dV,update:`none`},function(e,t,n){e=P({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=DN(e,[dV],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(P(e,{type:`highlight`}))}),e.registerAction({type:fV,update:`updateView`},function(e,t,n){e=P({},e),n.dispatchAction(P(e,{type:`downplay`}))})}var mV=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new dS(t,e,n,n).add(r).update(r).remove(z(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new lV(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new lV(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&Im(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:uV,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(Sv),hV=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};gV(n);var r=this._levelModels=L(e.levels||[],function(e){return new Ap(e,this,t)},this),i=TN.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=AN(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){VN(this)},t.type=`series.sunburst`,t.defaultOption={z:2,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:`rootToNode`,renderLabelForZeroData:!1,label:{rotate:`radial`,show:!0,opacity:1,align:`center`,position:`inside`,distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:`white`,borderType:`solid`,shadowBlur:0,shadowColor:`rgba(0, 0, 0, 0.2)`,shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:`descendant`},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:`expansion`,animationDuration:1e3,animationDurationUpdate:500,data:[],sort:`desc`},t}(lv);function gV(e){var t=0;I(e.children,function(e){gV(e);var n=e.value;B(n)&&(n=n[0]),t+=n});var n=e.value;B(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),B(e.value)?e.value[0]=n:e.value=n}var _V=Math.PI/180;function vV(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);B(r)||(r=[0,r]),B(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=Y(t[0],i),c=Y(t[1],a),l=Y(r[0],o/2),u=Y(r[1],o/2),d=-e.get(`startAngle`)*_V,f=e.get(`minAngle`)*_V,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&yV(m,g);var _=0;I(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=Y(_,o/2)),x!=null&&(m=Y(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;I(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function yV(e,t){var n=e.children||[];e.children=bV(n,t),n.length&&I(e.children,function(e){yV(e,t)})}function bV(e,t){if(V(t)){var n=L(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),L(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function xV(e){var t={};function n(e,n,r){for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&H(a)&&(a=Hr(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),P(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function SV(e){e.registerChartView(mV),e.registerSeriesModel(hV),e.registerLayout(z(vV,`sunburst`)),e.registerProcessor(z(pk,`sunburst`)),e.registerVisual(xV),pV(e)}var CV={color:`fill`,borderColor:`stroke`},wV={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},TV=es(),EV=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return eC(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=TV(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(lv);function DV(e,t){return t||=[0,0],L([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function OV(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R(DV,e)}}}function kV(e,t){return t||=[0,0],L([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function AV(e){var t=e.getBoundingRect();return{coordSys:{type:`geo`,x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:R(kV,e)}}}function jV(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function MV(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R(jV,e)}}}function NV(e,t){return t||=[0,0],L([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function PV(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:R(NV,e)}}}function FV(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function IV(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function LV(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return RV(o,e),I(o.rich,function(e){RV(e,e)}),{textConfig:i,textContent:a}}function RV(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function zV(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||`#000`;BV(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||`#fff`,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||`#000`),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,I(t.rich,function(e){BV(e,e)}),r}function BV(e,t){t&&(K(t,`fill`)&&(e.textFill=t.fill),K(t,`stroke`)&&(e.textStroke=t.fill),K(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),K(t,`font`)&&(e.font=t.font),K(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),K(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),K(t,`fontSize`)&&(e.fontSize=t.fontSize),K(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),K(t,`align`)&&(e.textAlign=t.align),K(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),K(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),K(t,`width`)&&(e.textWidth=t.width),K(t,`height`)&&(e.textHeight=t.height),K(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),K(t,`padding`)&&(e.textPadding=t.padding),K(t,`borderColor`)&&(e.textBorderColor=t.borderColor),K(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),K(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),K(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),K(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),K(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),K(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),K(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),K(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),K(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),K(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var VV={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},HV=ke(VV);Ee(Sa,function(e,t){return e[t]=1,e},{}),Sa.join(`, `);var UV=[``,`style`,`shape`,`extra`],WV=es();function GV(e,t,n,r,i){var a=e+`Animation`,o=mf(e,r,i)||{},s=WV(t).userDuring;return o.duration>0&&(o.during=s?R(tH,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),P(o,n[a]),o}function KV(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=WV(e),l=t.style;c.userDuring=t.during;var u={},d={};if(aH(e,t,d),rH(`shape`,t,d),rH(`extra`,t,d),!a&&s&&(iH(e,t,u),nH(`shape`,e,t,u),nH(`extra`,e,t,u),oH(e,t,l,u)),d.style=l,XV(e,d,o),QV(e,t),s)if(a){var f={};I(UV,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),P(e?f[e]:f,n.enterFrom))});var p=GV(`enter`,e,t,n,i);p.duration>0&&e.animateFrom(f,p)}else ZV(e,t,i||0,n,u);qV(e,t),l?e.dirty():e.markRedraw()}function qV(e,t){for(var n=WV(e).leaveToProps,r=0;r<UV.length;r++){var i=UV[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=WV(e).leaveToProps={},i&&(n[i]=n[i]||{}),P(i?n[i]:n,a.leaveTo))}}function JV(e,t,n,r){if(e){var i=e.parent,a=WV(e).leaveToProps;if(a){var o=GV(`update`,e,t,n,0);o.done=function(){i.remove(e),r&&r()},e.animateTo(a,o)}else i.remove(e),r&&r()}}function YV(e){return e===`all`}function XV(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function ZV(e,t,n,r,i){if(i){var a=GV(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function QV(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof ec&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof cl&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var $V={},eH={setTransform:function(e,t){return $V.el[e]=t,this},getTransform:function(e){return $V.el[e]},setShape:function(e,t){var n=$V.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=$V.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=$V.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=$V.el.style;if(t)return t[e]},setExtra:function(e,t){var n=$V.el.extra||($V.el.extra={});return n[e]=t,this},getExtra:function(e){var t=$V.el.extra;if(t)return t[e]}};function tH(){var e=this,t=e.el;if(t){var n=WV(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}$V.el=t,r(eH)}}function nH(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),YV(c))P(o,a);else for(var l=Mo(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(YV(s)||Se(s,e)>=0){!o&&(o=r[e]={});for(var p=ke(a),u=0;u<p.length;u++){var d=p[u],f=a[d];sH(i[d],f)&&(o[d]=f)}}}}}function rH(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=ke(r),o=0;o<a.length;o++){var s=a[o];i[s]=Ei(r[s])}}function iH(e,t,n){for(var r=t.transition,i=YV(r)?Sa:Mo(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function aH(e,t,n){for(var r=0;r<HV.length;r++){var i=HV[r],a=VV[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Sa.length;r++){var s=Sa[r];t[s]!=null&&(n[s]=t[s])}}function oH(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!YV(o)){var c=Mo(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(YV(s)||YV(o)||Se(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=ke(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function sH(e,t){return Te(e)?e!==t:e!=null&&isFinite(e)}var cH=es(),lH=[`percent`,`easing`,`shape`,`style`,`extra`];function uH(e){e.stopAnimation(`keyframe`),e.attr(cH(e))}function dH(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(B(t)){I(t,function(t){dH(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=mf(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=cH(e);I(UV,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),I(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=ke(c);if(n||(l=De(l,function(e){return Se(lH,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;I(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var fH=`emphasis`,pH=`normal`,mH=`blur`,hH=`select`,gH=[pH,fH,mH,hH],_H={normal:[`itemStyle`],emphasis:[fH,`itemStyle`],blur:[mH,`itemStyle`],select:[hH,`itemStyle`]},vH={normal:[`label`],emphasis:[fH,`label`],blur:[mH,`label`],select:[hH,`label`]},yH=[`x`,`y`],bH=`e\0\0`,xH={normal:{},emphasis:{},blur:{},select:{}},SH={cartesian2d:OV,geo:AV,single:MV,polar:PV,calendar:FV};function CH(e){return e instanceof cl}function wH(e){return e instanceof ec}function TH(e,t){t.copyTransform(e),wH(t)&&wH(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,CH(t)&&CH(e)&&t.setShape(e.shape))}var EH=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=MH(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){PH(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&JV(n,TV(n).option,e)}).update(function(t,c){PH(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?nO(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=MH(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=PH(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){np(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(Sv);function DH(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=JH(r);n=Nf(a,null,i,r.layout||`center`),TV(n).customPathData=a}else if(t===`image`)n=new ml({}),TV(n).customImagePath=e.style.image;else if(t===`text`)n=new El({});else if(t===`group`)n=new J;else if(t===`compoundPath`)throw Error(`"compoundPath" is not supported yet.`);else{var o=Mf(t);o||Oo(``),n=new o}return TV(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function OH(e,t,n,r,i,a,o){uH(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=yH);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;K(l,`textFill`)&&(l.fill=l.textFill),K(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=CH(t)?c.decal:null;e&&d&&(d.dirty=!0,u=Cb(d,e)),c.__decalPattern=u}if(wH(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}KV(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),dH(t,r.keyframeAnimation,a)}function kH(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),mu(a)}}function AH(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<gH.length;s++)jH(r,t,gH[s])}}function jH(e,t,n){var r=n===pH,i=r?t:BH(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function MH(e,t,n,r){var i=e.get(`renderItem`),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):SH[a.type](a));for(var s=F({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:b,style:S,ordinalRawValue:x,styleEmphasis:C,visual:E,barLayout:D,currentSeriesIndices:O,font:k},o.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:NH(e.getData())},l,u,d={},f={},p={},m={},h=0;h<gH.length;h++){var g=gH[h];p[g]=e.getModel(_H[g]),m[g]=e.getModel(vH[g])}function _(e){return e===l?u||=t.getItemModel(e):t.getItemModel(e)}function v(e,n){return t.hasItemOption?e===l?d[n]||(d[n]=_(e).getModel(_H[n])):_(e).getModel(_H[n]):p[n]}function y(e,n){return t.hasItemOption?e===l?f[n]||(f[n]=_(e).getModel(vH[n])):_(e).getModel(vH[n]):m[n]}return function(e,n){return l=e,u=null,d={},f={},i&&i(F({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),s)};function b(e,n){return n??=l,t.getStore().get(t.getDimensionIndex(e||0),n)}function x(e,n){n??=l,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function S(n,r){r??=l;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=v(r,pH).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:H(a)?a:`#000`},u=y(r,pH),d=cp(u,null,c,!1,!0);d.text=u.getShallow(`show`)?W(e.getFormattedLabel(r,pH),ND(t,r)):null;var f=lp(u,c,!1);return T(n,s),s=zV(s,d,f),n&&w(s,n),s.legacy=!0,s}function C(n,r){r??=l;var i=v(r,fH).getItemStyle(),a=y(r,fH),o=cp(a,null,null,!0,!0);o.text=a.getShallow(`show`)?Ve(e.getFormattedLabel(r,fH),e.getFormattedLabel(r,pH),ND(t,r)):null;var s=lp(a,null,!0);return T(n,i),i=zV(i,o,s),n&&w(i,n),i.legacy=!0,i}function w(e,t){for(var n in t)K(t,n)&&(e[n]=t[n])}function T(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function E(e,n){if(n??=l,K(CV,e)){var r=t.getItemVisual(n,`style`);return r?r[CV[e]]:null}if(K(wV,e))return t.getItemVisual(n,e)}function D(e){if(a.type===`cartesian2d`)return TC(F({axis:a.getBaseAxis()},e))}function O(){return n.getCurrentSeriesIndices()}function k(e){return gp(e,n)}}function NH(e){var t={};return I(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function PH(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=FH(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Iu(s,r.focus,r.blurScope,r.emphasisDisabled),s}function FH(e,t,n,r,i,a){var o=-1,s=t;t&&IH(t,r,i)&&(o=Se(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=DH(r),s&&TH(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,xH.normal.cfg=xH.normal.conOpt=xH.emphasis.cfg=xH.emphasis.conOpt=xH.blur.cfg=xH.blur.conOpt=xH.select.cfg=xH.select.conOpt=null,xH.isLegacy=!1,RH(l,n,r,i,c,xH),LH(l,n,r,i,c),OH(e,l,n,r,xH,i,c),K(r,`info`)&&(TV(l).info=r.info);for(var u=0;u<gH.length;u++){var d=gH[u];if(d!==pH){var f=BH(r,d),p=VH(r,f,d);kH(d,l,f,p,xH)}}return AH(l,r,i),r.type===`group`&&HH(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function IH(e,t,n){var r=TV(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&YH(a)&&JH(a)!==r.customPathData||i===`image`&&K(o,`image`)&&o.image!==r.customImagePath}function LH(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&IH(o,a,r)&&(o=null),o||(o=DH(a),e.setClipPath(o)),OH(null,o,t,a,null,r,i)}}function RH(e,t,n,r,i,a){if(!e.isGroup){zH(n,null,a),zH(n,fH,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=DH(o),e.setTextContent(u)),OH(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<gH.length;f++){var p=gH[f];if(p!==pH){var m=a[p].conOpt;kH(p,u,m,VH(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function zH(e,t,n){var r=t?BH(e,t):e,i=t?VH(e,r,fH):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?BH(s,t):s:null;if(i&&(n.isLegacy||IV(i,a,!!o,!!c))){n.isLegacy=!0;var l=LV(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function BH(e,t){return t?e?e[t]:null:e}function VH(e,t,n){var r=t&&t.style;return r==null&&n===fH&&e&&(r=e.styleEmphasis),r}function HH(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){WH({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,FH(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)UH(t,t.childAt(p),i)}}function UH(e,t,n){t&&JV(t,TV(e).option,n)}function WH(e){new dS(e.oldChildren,e.newChildren,GH,GH,e).add(KH).update(KH).remove(qH).execute()}function GH(e,t){return(e&&e.name)??bH+t}function KH(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];FH(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function qH(e){var t=this.context,n=t.oldChildren[e];n&&JV(n,TV(n).option,t.seriesModel)}function JH(e){return e&&(e.pathData||e.d)}function YH(e){return e&&(K(e,`pathData`)||K(e,`d`))}function XH(e){e.registerChartView(EH),e.registerSeriesModel(EV)}var ZH=es(),QH=M,$H=R,eU=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new J,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=z(tU,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}aU(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=CA(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=ZH(e).pointerEl=new wf[i.type](QH(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=ZH(e).labelEl=new El(QH(t.label));e.add(i),rU(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=ZH(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=ZH(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),rU(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Yf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Zt(e.event)},onmousedown:$H(this._onHandleDragMove,this,0,0),drift:$H(this._onHandleDragMove,this),ondragend:$H(this._onHandleDragEnd,this)}),n.add(r)),aU(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Mv(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){tU(this._axisPointerModel,!t&&this._moveAnimation,this._handle,iU(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(iU(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(iU(r)),ZH(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Nv(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function tU(e,t,n,r){nU(ZH(n).lastProp,r)||(ZH(n).lastProp=r,t?gf(n,r,e):(n.stopAnimation(),n.attr(r)))}function nU(e,t){if(U(e)&&U(t)){var n=!0;return I(t,function(t,r){n&&=nU(e[r],t)}),!!n}else return e===t}function rU(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function iU(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function aU(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function oU(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function sU(e,t,n,r,i){var a=lU(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Om(o.get(`padding`)||0),c=o.getFont(),l=Da(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),cU(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:cp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function cU(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function lU(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:mw(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function uU(e,t,n){var r=rn();return ln(r,r,n.rotation),cn(r,r,n.position),Hf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dU(e,t,n,r,i,a){var o=aA.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),sU(t,r,i,a,{position:uU(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fU(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function pU(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function mU(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var hU=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=gU(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=oU(r),d=_U[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}dU(t,e,Jk(o.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Jk(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=uU(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=gU(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(eU);function gU(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var _U={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:fU([t,n[0]],[t,n[1]],vU(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:pU([t-r/2,n[0]],[r,i],vU(e))}}};function vU(e){return e.dim===`x`?0:1}var yU=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:`#B9BEC9`,width:1,type:`dashed`},shadowStyle:{color:`rgba(210,219,238,0.2)`},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:`#fff`,padding:[5,7,5,7],backgroundColor:`auto`,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:`#333`,shadowBlur:3,shadowColor:`#aaa`,shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Zm),bU=es(),xU=I;function SU(e,t,n){if(!A.node){var r=t.getZr();bU(r).records||(bU(r).records={}),CU(r,t);var i=bU(r).records[e]||(bU(r).records[e]={});i.handler=n}}function CU(e,t){if(bU(e).initialized)return;bU(e).initialized=!0,n(`click`,z(EU,`click`)),n(`mousemove`,z(EU,`mousemove`)),n(`globalout`,TU);function n(n,r){e.on(n,function(n){var i=DU(t);xU(bU(e).records,function(e){e&&r(e,n,i.dispatchAction)}),wU(i.pendings,t)})}}function wU(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function TU(e,t,n){e.handler(`leave`,null,n)}function EU(e,t,n,r){t.handler(e,n,r)}function DU(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function OU(e,t){if(!A.node){var n=t.getZr();(bU(n).records||{})[e]&&(bU(n).records[e]=null)}}var kU=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;SU(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){OU(`axisPointer`,t)},t.prototype.dispose=function(e,t){OU(`axisPointer`,t)},t.type=`axisPointer`,t}(vv);function AU(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=$o(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(L(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var jU=es();function MU(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){HU(i)&&(i=AU({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=HU(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||HU(i),f={},p={},m={list:[],map:{}},h={showPointer:z(FU,p),showTooltip:z(IU,m)};I(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);I(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=BU(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&NU(e,o,h,!1,f)}})});var g={};return I(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&I(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,VU(t),VU(e)))),g[e.key]=a}})}),I(g,function(e,t){NU(u[t],e,h,!0,f)}),LU(p,u,f),RU(m,i,e,o),zU(u,o,n),f}}function NU(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=PU(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function PU(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.getData().indicesOfNearest(l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),I(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function FU(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function IU(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=EA(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function LU(e,t,n){var r=n.axesInfo=[];I(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function RU(e,t,n,r){if(HU(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function zU(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=jU(r)[i]||{},o=jU(r)[i]={};I(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&I(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];I(a,function(e,t){!o[t]&&c.push(e)}),I(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function BU(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function VU(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function HU(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function UU(e){OA.registerAxisPointerClass(`CartesianAxisPointer`,hU),e.registerComponentModel(yU),e.registerComponentView(kU),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=gA(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},MU)}function WU(e){cS(BA),cS(UU)}var GU=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=oU(r),d=qU[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}sU(e,n,r,i,KU(t,n,r,o,r.get([`label`,`margin`])))},t}(eU);function KU(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=rn();ln(f,f,s),cn(f,f,[r.cx,r.cy]),l=Hf([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=aA.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var qU={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:fU(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:mU(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:mU(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},JU=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(Zm),YU=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,is).models[0]},t.type=`polarAxis`,t}(Zm);we(YU,xw);var XU=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(YU),ZU=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(YU),QU=function(e){O(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(tT);QU.prototype.dataToRadius=tT.prototype.dataToCoord,QU.prototype.radiusToData=tT.prototype.coordToData;var $U=es(),eW=function(e){O(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=Da(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=$U(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(tT);eW.prototype.dataToAngle=tT.prototype.dataToCoord,eW.prototype.angleToData=tT.prototype.coordToData;var tW=[`radius`,`angle`],nW=function(){function e(e){this.dimensions=tW,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new QU,this._angleAxis=new eW,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return rW(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return rW(t)===this?this.pointToData(n):null},e}();function rW(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function iW(e,t,n){var r=t.get(`center`),i=n.getWidth(),a=n.getHeight();e.cx=Y(r[0],i),e.cy=Y(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,c=t.get(`radius`);c==null?c=[0,`100%`]:B(c)||(c=[0,c]);var l=[Y(c[0],s),Y(c[1],s)];o.inverse?o.setExtent(l[1],l[0]):o.setExtent(l[0],l[1])}function aW(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();I(yw(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),I(yw(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),uw(r.scale,r.model),uw(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function oW(e){return e.mainType===`angleAxis`}function sW(e,t){if(e.type=t.get(`type`),e.scale=dw(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),oW(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var cW={dimensions:tW,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new nW(r+``);i.update=aW;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);sW(a,s),sW(o,c),iW(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`polar`&&(e.coordinateSystem=e.getReferringComponents(`polar`,is).models[0].coordinateSystem)}),n}},lW=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function uW(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function dW(e){return+!e.getRadiusAxis().inverse}function fW(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var pW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=L(n.getViewLabels(),function(e){e=M(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});fW(s),fW(a),I(lW,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&mW[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(OA),mW={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=dW(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new wf[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new zd({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[dW(n)],l=L(r,function(e){return new Jd({shape:uW(n,[c,c+s],e.coord)})});e.add(If(l,{style:F(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[dW(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new Jd({shape:uW(n,[l,l+c],i[d][f].coord)}));e.add(If(u,{style:F(s.getModel(`lineStyle`).getLineStyle(),F(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);I(o,function(r,i){var o=c,d=r.tickValue,f=a[dW(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];U(v)&&v.textStyle&&(o=new Ap(v.textStyle,c,c.ecModel))}var y=new El({silent:aA.isLabelSilent(t),style:cp(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),u){var b=aA.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,X(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new Jd({shape:uW(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(If(l[u],{style:F({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new Jd({shape:uW(n,a,i[c][l].coord)}));e.add(If(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new Ld({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(If(l[h],{style:F({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},hW=[`axisLine`,`axisTickLabel`,`axisName`],gW=[`splitLine`,`splitArea`,`minorSplitLine`],_W=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=this._axisGroup,r=this._axisGroup=new J;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),s=i.getTicksCoords(),c=i.getMinorTicksCoords(),l=o.getExtent()[0],u=i.getExtent(),d=new aA(e,yW(a,e,l));I(hW,d.add,d),r.add(d.getGroup()),Kf(n,r,e),I(gW,function(t){e.get([t,`show`])&&!i.scale.isBlank()&&vW[t](this.group,e,a,l,u,s,c)},this)}},t.type=`radiusAxis`,t}(OA),vW={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new wf[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(If(p[m],{style:F({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new vd({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(If(c,{style:F({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new Ld({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(If(l[d],{style:F({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function yW(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}function bW(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function xW(e,t){return t.dim+e.model.componentIndex}function SW(e,t,n){var r={},i=CW(De(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&e.coordinateSystem.type===`polar`}));t.eachSeriesByType(e,function(e){if(e.coordinateSystem.type===`polar`){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=xW(n,a),s=bW(e),c=i[o][s],l=c.offset,u=c.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,p=e.coordinateSystem.cy,m=e.get(`barMinHeight`)||0,h=e.get(`barMinAngle`)||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),_=t.mapDimension(a.dim),v=XS(t,g),y=a.dim!==`radius`||!e.get(`roundCap`,!0),b=d.model.get(`startValue`),x=d.dataToCoord(b||0),S=0,C=t.count();S<C;S++){var w=t.get(g,S),T=t.get(_,S),E=w>=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var ee=d.dataToCoord(w)-x,te=a.dataToCoord(T);Math.abs(ee)<m&&(ee=(ee<0?-1:1)*m),O=D,k=D+ee,A=te-l,j=A-u,v&&(r[s][T][E]=k)}else{var ne=d.dataToCoord(w,y)-x,re=a.dataToCoord(T);Math.abs(ne)<h&&(ne=(ne<0?-1:1)*h),O=re+l,k=O+u,A=D,j=D+ne,v&&(r[s][T][E]=j)}t.setItemLayout(S,{cx:f,cy:p,r0:O,r:k,startAngle:-A*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:A>=j})}}})}function CW(e){var t={};I(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=xW(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=bW(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=Y(e.get(`barWidth`),c),p=Y(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return I(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=Y(e.categoryGap,i),o=Y(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),I(r,function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)}),l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u=0,d;I(r,function(e,t){e.width||=l,d=e,u+=e.width*(1+o)}),d&&(u-=d.width*o);var f=-u/2;I(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}var wW={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},TW={splitNumber:5},EW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(vv);function DW(e){cS(UU),OA.registerAxisPointerClass(`PolarAxisPointer`,GU),e.registerCoordinateSystem(`polar`,cW),e.registerComponentModel(JU),e.registerComponentView(EW),Vk(e,`angle`,XU,wW),Vk(e,`radius`,ZU,TW),e.registerComponentView(pW),e.registerComponentView(_W),e.registerLayout(z(SW,`bar`))}function OW(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Be(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=t.rotate;return u??=e.get([`axisLabel`,`rotate`]),i.labelRotation=a===`top`?-u:u,i.z2=1,i}var kW=[`axisLine`,`axisTickLabel`,`axisName`],AW=[`splitArea`,`splitLine`],jW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new J;var s=new aA(t,OW(t));I(kW,s.add,s),a.add(this._axisGroup),a.add(s.getGroup()),I(AW,function(e){t.get([e,`show`])&&MW[e](this,this.group,this._axisGroup,t)},this),Kf(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){jA(this)},t.type=`singleAxis`,t}(OA),MW={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel(`splitLine`),o=a.getModel(`lineStyle`),s=o.get(`color`);s=s instanceof Array?s:[s];for(var c=o.get(`width`),l=r.coordinateSystem.getRect(),u=i.isHorizontal(),d=[],f=0,p=i.getTicksCoords({tickModel:a}),m=[],h=[],g=0;g<p.length;++g){var _=i.toGlobalCoord(p[g].coord);u?(m[0]=_,m[1]=l.y,h[0]=_,h[1]=l.y+l.height):(m[0]=l.x,m[1]=_,h[0]=l.x+l.width,h[1]=_);var v=new Jd({shape:{x1:m[0],y1:m[1],x2:h[0],y2:h[1]},silent:!0});Rf(v.shape,c);var y=f++%s.length;d[y]=d[y]||[],d[y].push(v)}for(var b=o.getLineStyle([`color`]),g=0;g<d.length;++g)t.add(If(d[g],{style:F({stroke:s[g%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,r){AA(e,n,r,r)}},NW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=`singleAxis`,t.layoutMode=`box`,t.defaultOption={left:`5%`,top:`5%`,right:`5%`,bottom:`5%`,type:`value`,position:`bottom`,orient:`horizontal`,axisLine:{show:!0,lineStyle:{width:1,type:`solid`}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:`auto`},splitLine:{show:!0,lineStyle:{type:`dashed`,opacity:.2}}},t}(Zm);we(NW,xw.prototype);var PW=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(tT),FW=[`single`],IW=function(){function e(e,t,n){this.type=`single`,this.dimension=`single`,this.dimensions=FW,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new PW(r,dw(e),[0,0],e.get(`type`),e.get(`position`));i.onBand=i.type===`category`&&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},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();I(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),uw(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=Um({left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=+!!t.inverse;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return n.orient===`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},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient===`horizontal`?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i=t.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return LW(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return LW(t)===this?this.pointToData(n):null},e}();function LW(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function RW(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new IW(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,is).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var zW={create:RW,dimensions:FW},BW=[`x`,`y`],VW=[`width`,`height`],HW=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=GW(o,1-WW(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=oU(r),d=UW[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}dU(t,e,OW(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=OW(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=uU(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=WW(i),s=GW(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=GW(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(eU),UW={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:fU([t,n[0]],[t,n[1]],WW(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:pU([t-r/2,n[0]],[r,i],WW(e))}}};function WW(e){return+!e.isHorizontal()}function GW(e,t){var n=e.getRect();return[n[BW[t]],n[BW[t]]+n[VW[t]]]}var KW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(vv);function qW(e){cS(UU),OA.registerAxisPointerClass(`SingleAxisPointer`,HW),e.registerComponentView(KW),e.registerComponentView(jW),e.registerComponentModel(NW),Vk(e,`single`,NW,NW.defaultOption),e.registerCoordinateSystem(`single`,zW)}var JW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=Jm(t);e.prototype.init.apply(this,arguments),YW(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),YW(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:`#000`,width:1,type:`solid`}},itemStyle:{color:`#fff`,borderWidth:1,borderColor:`#ccc`},dayLabel:{show:!0,firstDay:0,position:`start`,margin:`50%`,color:`#000`},monthLabel:{show:!0,position:`start`,margin:5,align:`center`,formatter:null,color:`#000`},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:`#ccc`,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(Zm);function YW(e,t){var n=e.cellSize,r=B(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),qm(e,t,{type:`box`,ignoreSize:L([0,1],function(e){return Gm(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var XW=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToRect([s],!1).tl,l=new Sl({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToRect([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Gd({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToRect([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return H(e)&&e?Nm(e,t):V(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new El({z2:30,style:cp(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||H(a))&&(a&&(t=Kp(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new El({z2:30,style:P(cp(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||H(c))&&(c&&(t=Kp(c)||t),c=t.get([`time`,`dayOfWeekShort`])||L(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=Y(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToRect([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new El({z2:30,style:P(cp(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(vv),ZW=864e5,QW=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:`time`,type:`time`},`value`]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=_o(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel(`dayLabel`).get(`firstDay`),this._orient=this._model.get(`orient`),this._lineWidth=this._model.getModel(`itemStyle`).getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];I([0,1],function(e){l(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},c=this._rect=Um(a,s);I([0,1],function(e){l(i,e)||(i[e]=c[r[e]]/o[e])});function l(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){B(e)&&(e=e[0]),t??=!0;var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+ZW))return[NaN,NaN];var a=n.day,o=this._getRangeInfo([r.start.time,i]).nthWeek;return this._orient===`vertical`?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=$W(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=$W(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(B(e)&&e.length===1&&(e=e[0]),B(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 r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.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 r=Math.floor(t[1].time/ZW)-Math.floor(t[0].time/ZW)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeries(function(e){e.get(`coordinateSystem`)===`calendar`&&(e.coordinateSystem=r[e.get(`calendarIndex`)||0])}),r},e.dimensions=[`time`,`value`],e}();function $W(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function eG(e){e.registerComponentModel(JW),e.registerComponentView(XW),e.registerCoordinateSystem(`calendar`,QW)}function tG(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function nG(e,t){var n;return I(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function rG(e,t,n){var r=P({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(N(i,r,!0),qm(i,r,{ignoreSize:!0}),Ym(n,i),oG(n,i),oG(n,i,`shape`),oG(n,i,`style`),oG(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var iG=[`transition`,`enterFrom`,`leaveTo`],aG=iG.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function oG(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?iG:aG,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function sG(e,t){if(e&&(e.hv=t.hv=[nG(t,[`left`,`right`]),nG(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var cG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=Lo(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];I(o,function(e,t){var n=e.newOption;n&&(s.push(n),tG(e,n),rG(i,t,n),sG(i[t],n))},this),n.elements=De(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){I(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(Zm),lG={path:null,compoundPath:null,group:J,image:ml,text:El},uG=es(),dG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=G()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);I(t,function(t){var o=Ko(t.id,null),s=o==null?null:n.get(o),c=Ko(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&IV(d,u,!!p,!!f)){var m=LV(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=gG(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=pG(o,l,t.type,n):(b&&(uG(b).isNew=!1),uH(b)),b&&(KV(b,h,e,{isInit:y}),hG(b,t,i,a))}else if(v){mG(s,t,n,e);var x=pG(o,l,t.type,n);x&&(KV(x,h,e,{isInit:!0}),hG(x,t,i,a))}else g===`remove`&&(qV(s,t),mG(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new El(f))}else v&&S.setTextContent(new El(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||uG(D).type!==T,E=y?fG(T):D}else v&&(y=!0,E=fG(T));S.setClipPath(E),KV(E,w,e,{isInit:y}),dH(E,w.keyframeAnimation,e)}var O=uG(S);S.setTextConfig(p),O.option=t,_G(S,e,t),ep({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),dH(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=Ko(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=uG(d),h=uG(f);m.width=Y(m.option.width,p?a:h.width)||0,m.height=Y(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=Ko(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=uG(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=Wm(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!uG(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(YV(y)||Se(y,S)>=0)?b[S]=C:d[S]=C}gf(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){mG(n,uG(n).option,t,e._lastGraphicModel)}),this._elMap=G()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(vv);function fG(e){var t=new(K(lG,e)?lG[e]:Mf(e))({});return uG(t).type=e,t}function pG(e,t,n,r){var i=fG(n);return t.add(i),r.set(e,i),uG(i).id=e,uG(i).isNew=!0,i}function mG(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){mG(e,t,n,r)}),JV(e,t,r),n.removeKey(uG(e).id))}function hG(e,t,n,r){e.isGroup||I([[`cursor`,ec.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=W(t[r],n[1]):e[r]??(e[r]=n[1])}),I(ke(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=V(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function gG(e){return e=P({},e),I([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Rm),function(t){delete e[t]}),e}function _G(e,t,n){var r=X(e).eventData;!e.silent&&!e.ignore&&!r&&(r=X(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function vG(e){e.registerComponentModel(cG),e.registerComponentView(dG),e.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var yG=[`x`,`y`,`radius`,`angle`,`single`],bG=[`cartesian2d`,`polar`,`singleAxis`];function xG(e){return Se(bG,e.get(`coordinateSystem`))>=0}function SG(e){return e+`Axis`}function CG(e,t){var n=G(),r=[],i=G();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function wG(e){var t=e.ecModel,n={infoList:[],infoMap:G()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(SG(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var TG=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),EG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=DG(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=DG(e);N(this.option,e,!0),N(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;I([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=G();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return I(yG,function(n){var r=this.getReferringComponents(SG(n),as);if(r.specified){t=!0;var i=new TG;I(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new TG;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,is).models[0];o&&I(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,is).models[0]&&a.add(e.componentIndex)})}}}r&&I(yG,function(t){if(r){var i=n.findComponents({mainType:SG(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new TG;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);I([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(SG(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){I(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(SG(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;I([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;I([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(Zm);function DG(e){var t={};return I([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var OG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(EG),kG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(vv),AG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(kG),jG=I,MG=so,NG=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(xG(t)){var n=SG(this._dimName),r=t.getReferringComponents(n,is).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return M(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;jG([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u??=i[l],d=n.parse(ao(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=ao(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),MG(o),MG(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;oL(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=ao(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=PG(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;jG(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=L(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else jG(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});jG(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;jG([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=ao(i,[0,100],n,!0)-n[0]):i=ao(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=uo(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function PG(e,t,n){var r=[1/0,-1/0];jG(n,function(e){bw(r,e.getData(),t)});var i=e.getAxisModel(),a=ow(i.axis.scale,i,r).calculate();return[a.min,a.max]}var FG={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(SG(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new NG(t,r,a,e),n.push(i.__dzAxisProxy))});var r=G();return I(n,function(e){I(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function IG(e){e.registerAction(`dataZoom`,function(e,t){I(CG(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var LG=!1;function RG(e){LG||(LG=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,FG),IG(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function zG(e){e.registerComponentModel(OG),e.registerComponentView(AG),RG(e)}var BG=function(){function e(){}return e}(),VG={};function HG(e,t){VG[e]=t}function UG(e){return VG[e]}var WG=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;I(this.option.feature,function(e,n){var r=UG(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),N(e,r.defaultOption))})},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:`#666`,color:`none`},emphasis:{iconStyle:{borderColor:`#3E98C5`}},tooltip:{show:!1,position:`bottom`}},t}(Zm);function GG(e,t,n){var r=t.getBoxLayoutParams(),i=t.get(`padding`),a={width:n.getWidth(),height:n.getHeight()},o=Um(r,a,i);Vm(t.get(`orient`),e,t.get(`itemGap`),o.width,o.height),Wm(e,r,a,i)}function KG(e,t){var n=Om(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),e=new Sl({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1}),e}var qG=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];I(s,function(e,t){l.push(t)}),new dS(this._featureNames||[],l).add(u).update(u).remove(z(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new Ap(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(JG(o))m={onclick:p.option.onclick,featureName:o};else{var h=UG(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=Mp(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof BG;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?_u:vu)(r[e])},m instanceof BG&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof BG&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;H(d)?(p={},p[c]=d):p=d,H(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};I(p,function(c,d){var f=Yf(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new El({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:gp({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),ep({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||`#000`,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?_u:vu)(f),i.add(f),f.on(`click`,R(s.onclick,s,t,n,d)),h[d]=f})}GG(i,e,n),i.add(KG(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!V(c)&&t){var l=c.style||={},u=Da(t,El.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){I(this._features,function(e){e instanceof BG&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){I(this._features,function(n){n instanceof BG&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){I(this._features,function(n){n instanceof BG&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(vv);function JG(e){return e.indexOf(`my`)===0}var YG=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||`#fff`,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=A.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:`#fff`,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(BG),XG=`__ec_magicType_stack__`,ZG=[[`line`,`bar`],[`stack`]],QG=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return I(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if($G[n]){var a={series:[]};I(ZG,function(e){Se(e,n)>=0&&I(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=$G[n](t,i,e,r);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,is).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(BG),$G={line:function(e,t,n,r){if(e===`bar`)return N({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return N({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===XG;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),N({id:t,stack:i?``:XG},r.get([`option`,`stack`])||{},!0)}};Zx({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var eK=Array(60).join(`-`),tK=` `;function nK(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function rK(e){var t=[];return I(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(L(e.series,function(e){return e.name})),o=[r.model.getCategories()];I(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(tK)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(tK))}t.push(s.join(`
38
+ `))}),t.join(`
39
+
40
+ `+eK+`
41
+
42
+ `)}function iK(e){return L(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+tK:``)+r.join(tK))}),n.join(`
43
+ `)}).join(`
44
+
45
+ `+eK+`
46
+
47
+ `)}function aK(e){var t=nK(e);return{value:De([rK(t.seriesGroupByCategoryAxis),iK(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
48
+
49
+ `+eK+`
50
+
51
+ `),meta:t.meta}}function oK(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function sK(e){if(e.slice(0,e.indexOf(`
52
+ `)).indexOf(tK)>=0)return!0}var cK=RegExp(`[`+tK+`]+`,`g`);function lK(e){for(var t=e.split(/\n+/g),n=oK(t.shift()).split(cK),r=[],i=L(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=oK(t[a]).split(cK);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function uK(e){for(var t=e.split(/\n+/g),n=oK(t.shift()),r=[],i=0;i<t.length;i++){var a=oK(t[i]);if(a){var o=a.split(cK),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function dK(e,t){var n=e.split(RegExp(`
53
+ *`+eK+`
54
+ *`,`g`)),r={series:[]};return I(n,function(e,n){if(sK(e)){var i=lK(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=uK(e);r.series.push(i)}}),r}var fK=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||`#fff`;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=aK(e);if(V(l)){var f=l(t.getOption());H(f)?s.innerHTML=f:Fe(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}Yt(_,`click`,b),Yt(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=V(u)?u(s,t.getOption()):dK(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:`#fff`,textColor:`#000`,textareaColor:`#fff`,textareaBorderColor:`#333`,buttonColor:`#c23531`,buttonTextColor:`#fff`}},t}(BG);function pK(e,t){return L(e,function(e,n){var r=t&&t[n];if(U(r)&&!B(r)){U(e)&&!B(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=F(e,r),i&&delete e.name,e}else return e})}Zx({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];I(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(P({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:pK(e.data,i)})}}),t.mergeOption(F({series:n},e.newOption))});var mK=I,hK=es();function gK(e,t){var n=bK(e);mK(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function _K(e){var t=bK(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return mK(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function vK(e){hK(e).snapshots=null}function yK(e){return bK(e).length}function bK(e){var t=hK(e);return t.snapshots||=[{}],t.snapshots}var xK=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){vK(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(BG);Zx({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var SK=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],CK=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=TK(t,e);I(EK,function(e,t){(!n||!n.include||Se(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=kK[e.brushType](0,n,t);e.__rangeOffset={offset:jK[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){I(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&I(r.coordSyses,function(r){n(e,kK[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){I(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=kK[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?jK[e.brushType](r.values,i.offset,NK(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return L(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:vR(r),isTargetByCursor:bR(r,e,n.coordSysModel),getLinearBrushOtherExtent:yR(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&Se(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=TK(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<DK.length;s++)if(DK[s](r,a))return a}return!0},e}();function wK(e){return e[0]>e[1]&&e.reverse(),e}function TK(e,t){return ns(e,t,{includeMainTypes:SK})}var EK={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=G(),o={},s={};!n&&!r&&!i||(I(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),I(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),I(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];I(i.getCartesians(),function(e,t){(Se(n,e.getAxis(`x`).model)>=0||Se(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:OK.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){I(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OK.geo})})}},DK=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],OK={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Vf(e)),t}},kK={lineX:z(AK,0),lineY:z(AK,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[wK([i[0],a[0]]),wK([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:L(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function AK(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=wK(L([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var jK={lineX:z(MK,0),lineY:z(MK,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return L(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function MK(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function NK(e,t){var n=PK(e),r=PK(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function PK(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var FK=I,IK=Yo(`toolbox-dataZoom_`),LK=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new FL(n.getZr()),this._brushController.on(`brush`,R(this._onBrush,this)).mount()),VK(e,t,this,r,n),BK(e,t)},t.prototype.onclick=function(e,t,n){RK[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new CK(zK(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),gK(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=oL(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];FK(e,function(e,n){t.push(M(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:`rgba(210,219,238,0.2)`}}},t}(BG),RK={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(_K(this.ecModel))}};function zK(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function BK(e,t){e.setIconStatus(`back`,yK(t)>1?`emphasis`:`normal`)}function VK(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new CK(zK(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}bh(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=ns(e,zK(r));FK(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),FK(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:IK+t+a};o[n]=a,i.push(o)}return i});function HK(e){e.registerComponentModel(WG),e.registerComponentView(qG),HG(`saveAsImage`,YG),HG(`magicType`,QG),HG(`dataView`,fK),HG(`dataZoom`,LK),HG(`restore`,xK),cS(zG)}var UK=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,displayMode:`single`,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:`#fff`,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:`#999`,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:`#666`,fontSize:14}},t}(Zm);function WK(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function GK(e){if(A.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var KK=GK([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),qK=GK([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function JK(e,t){if(!e)return t;t=Dm(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function YK(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var XK=JK(qK,`transition`),ZK=JK(KK,`transform`),QK=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(A.transform3dSupported?`will-change:transform;`:``);function $K(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function eq(e,t,n){if(!H(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Fm(t);var a=$K(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=ZK+`:`,l;Se([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function tq(e,t){var n=`cubic-bezier(0.23,1,0.32,1)`,r=` `+e/2+`s `+n,i=`opacity`+r+`,visibility`+r;return t||(r=` `+e+`s `+n,i+=A.transformSupported?`,`+ZK+r:`,left`+r+`,top`+r),XK+`:`+i}function nq(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!A.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=A.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+ZK+`:`+o+`;`:[[`top`,0],[`left`,0],[KK,o]]}function rq(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),I([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function iq(e,t,n){var r=[],i=e.get(`transitionDuration`),a=e.get(`backgroundColor`),o=e.get(`shadowBlur`),s=e.get(`shadowColor`),c=e.get(`shadowOffsetX`),l=e.get(`shadowOffsetY`),u=e.getModel(`textStyle`),d=nv(e,`html`),f=c+`px `+l+`px `+o+`px `+s;return r.push(`box-shadow:`+f),t&&i&&r.push(tq(i,n)),a&&r.push(`background-color:`+a),I([`width`,`color`,`radius`],function(t){var n=`border-`+t,i=Dm(n),a=e.get(i);a!=null&&r.push(n+`:`+a+(t===`color`?``:`px`))}),r.push(rq(u)),d!=null&&r.push(`padding:`+Om(d).join(`px `)+`px`),r.join(`;`)+`;`}function aq(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Nt(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var oq=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,A.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(H(i)?document.querySelector(i):Fe(i)?i:V(i)&&i(e.getDom()));aq(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;qt(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=YK(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QK+iq(e,!this._firstShow,this._longHide)+nq(i[0],i[1],!0)+(`border-color:`+Fm(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!WK(n)&&(o=eq(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s<e.length;s++)Fe(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(aq(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;I(nq(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility=`hidden`,t.opacity=`0`,A.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),sq=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uq(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;U(e)&&Oo(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new El({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:nv(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),I([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),I([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=lq(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;uq(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=cq(i.borderWidth||0),o=lq(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function cq(e){return Math.max(0,e)}function lq(e){var t=cq(e.shadowBlur||0),n=cq(e.shadowOffsetX||0),r=cq(e.shadowOffsetY||0);return{left:cq(t-n),right:cq(t+n),top:cq(t-r),bottom:cq(t+r)}}function uq(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var dq=new Sl({shape:{x:-1,y:-1,width:2,height:2}}),fq=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(A.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=ls(n.get(`renderMode`));this._tooltipContent=r===`richText`?new sq(t):new oq(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(A.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Mv(this,`_updatePosition`,50,`fixRate`):Nv(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);SU(`itemTooltip`,this._api,R(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||A.node||!n.getDom())){var i=mq(r,n);this._ticket=``;var a=r.dataByCoordSys,o=yq(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=dq;c.x=r.x,c.y=r.y,c.update(),X(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=AU(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(mq(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&pq([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(X(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;wy(n,function(e){if(X(e).dataIndex!=null)return i=e,!0;if(X(e).tooltipConfig!=null)return a=e,!0},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=R(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=pq([t.tooltipOption],r),o=this._renderMode,s=[],c=H_(`section`,{blocks:[],noHeader:!0}),l=[],u=new rv;I(e,function(e){I(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=lU(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=H_(`section`,{header:a,noHeader:!Ge(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),I(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=mw(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,Fm(m.color),o);var h=Qg(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=pq([f],r).get(`valueFormatter`);d.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=J_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
55
+
56
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=X(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=pq([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new rv;h.marker=g.makeTooltipMarker(`item`,Fm(h.color),d);var _=Qg(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?J_(y?P({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=X(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=Bt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=pq(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new rv;this._showOrMove(d,function(){var n=M(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`)).color;if(u)if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=cm(m.axisValue,d,p)),d=Mm(d,n,!0)}else if(V(u)){var g=R(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){if(n===`axis`||B(t))return{color:r||(this._renderMode===`html`?`#fff`:`none`)};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Y(t[0],s),r=Y(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=Um(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=_q(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=hq(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=vq(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=vq(d)?l[1]/2:d===`bottom`?l[1]:0),WK(e)){var h=gq(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&I(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&I(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&I(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&I(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){A.node||!t.getDom()||(Nv(this,`_updatePosition`),this._tooltipContent.dispose(),OU(`itemTooltip`,t))},t.type=`tooltip`,t}(vv);function pq(e,t,n){var r=t.ecModel,i;n?(i=new Ap(n,r,r),i=new Ap(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ap&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new Ap(o,i,r)))}return i}function mq(e,t){return e.dispatchAction||R(t.dispatchAction,t)}function hq(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function gq(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _q(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function vq(e){return e===`center`||e===`middle`}function yq(e,t,n){var r=rs(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=os(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=X(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function bq(e){cS(UU),e.registerComponentModel(UK),e.registerComponentView(fq),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},nt),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},nt)}var xq=[`rect`,`polygon`,`keep`,`clear`];function Sq(e,t){var n=Mo(e?e.brush:[]);if(n.length){var r=[];I(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),Cq(s),t&&!s.length&&s.push.apply(s,xq)}}function Cq(e){var t={};I(e,function(e){t[e]=1}),e.length=0,I(t,function(t,n){e.push(n)})}var wq=I;function Tq(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Eq(e,t,n){var r={};return wq(t,function(t){var a=r[t]=i();wq(e[t],function(e,r){if(_P.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new _P(i),r===`opacity`&&(i=M(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new _P(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function Dq(e,t,n){var r;I(n,function(e){t.hasOwnProperty(e)&&Tq(t[e])&&(r=!0)}),r&&I(n,function(n){t.hasOwnProperty(n)&&Tq(t[n])?e[n]=M(t[n]):delete e[n]})}function Oq(e,t,n,r,i,a){var o={};I(e,function(e){o[e]=_P.prepareVisualTypes(t[e])});var s;function c(e){return vy(n,s,e)}function l(e,t){by(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function kq(e,t,n,r){var i={};return I(e,function(e){i[e]=_P.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return vy(a,l,e)}function c(e,t){by(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function Aq(e){var t=e.brushType,n={point:function(r){return jq[t].point(r,n,e)},rect:function(r){return jq[t].rect(r,n,e)}};return n}var jq={lineX:Mq(0),lineY:Mq(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&ww(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(ww(r,i,a)||ww(r,i+o,a)||ww(r,i,a+s)||ww(r,i+o,a+s)||Sn.create(e).contain(c[0],c[1])||Xf(i,a,i+o,a,r)||Xf(i,a,i,a+s,r)||Xf(i+o,a,i+o,a+s,r)||Xf(i,a+s,i+o,a+s,r))return!0}}};function Mq(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return Nq(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),Nq(s[0],o)||Nq(s[1],o)||Nq(o[0],s)||Nq(o[1],s)}}}}function Nq(e,t){return t[0]<=e&&e<=t[1]}var Pq=[`inBrush`,`outOfBrush`],Fq=`__ecBrushSelect`,Iq=`__ecInBrushSelectEvent`;function Lq(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new CK(t.option,e)).setInputRanges(t.areas,e)})}function Rq(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),Lq(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:M(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=L(t.areas,function(e){var t=Uq[e.brushType],n=F({boundingRect:t?t(e):void 0},e);return n.selectors=Aq(n),n}),m=Eq(t.option,Pq,function(e){e.mappingMethod=`fixed`});B(c)&&I(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||Hq(t,r))&&(I(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){Vq(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return Vq(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&Oq(Pq,m,i,a)})}),zq(t,i,a,r,n)}function zq(e,t,n,r,i){if(i){var a=e.getZr();a[Iq]||(a[Fq]||(a[Fq]=Bq),Mv(a,Fq,n,t)(e,r))}}function Bq(e,t){if(!e.isDisposed()){var n=e.getZr();n[Iq]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[Iq]=!1}}function Vq(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function Hq(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(B(n)?Se(n,t)<0:t!==n)}var Uq={rect:function(e){return Wq(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&Wq(t)}};function Wq(e){return new Sn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Gq=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new FL(t.getZr())).on(`brush`,R(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){Lq(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:M(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:M(n),$from:t})},t.type=`brush`,t}(vv),Kq=`#ddd`,qq=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Dq(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Kq},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=L(e,function(e){return Jq(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=Jq(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:`rgba(210,219,238,0.3)`,borderColor:`#D2DBEE`},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4},t}(Zm);function Jq(e,t){return N({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ap(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Yq=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],Xq=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,I(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return I(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r!==n&&n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:Yq.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(BG);function Zq(e){e.registerComponentView(Gq),e.registerComponentModel(qq),e.registerPreprocessor(Sq),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Rq),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},nt),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},nt),HG(`brush`,Xq)}var Qq=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:0,top:0,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:`#464646`},subtextStyle:{fontSize:12,color:`#6E7079`}},t}(Zm),$q=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new El({style:cp(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new El({style:cp(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Im(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Im(p,`_`+e.get(`subtarget`))}),X(c).eventData=X(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Um(g,{width:n.getWidth(),height:n.getHeight()},e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Sl({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(vv);function eJ(e){e.registerComponentModel(Qq),e.registerComponentView($q)}var tJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],I(t,function(e,t){var n=Ko(Fo(e),``),a;U(e)?(a=M(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new zS([{name:`value`,type:a}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:5,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:`#000`},data:[]},t}(Zm),nJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=Fp(tJ.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:`#DAE1F5`},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:`#A4B1D7`},itemStyle:{color:`#A4B1D7`,borderWidth:1},checkpointStyle:{symbol:`circle`,symbolSize:15,color:`#316bf3`,borderColor:`#fff`,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:`rgba(0, 0, 0, 0.3)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z`,stopIcon:`path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z`,nextIcon:`M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z`,prevIcon:`M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z`,prevBtnSize:18,nextBtnSize:18,color:`#A4B1D7`,borderColor:`#A4B1D7`,borderWidth:1},emphasis:{label:{show:!0,color:`#6f778d`},itemStyle:{color:`#316BF3`},controlStyle:{color:`#316BF3`,borderColor:`#316BF3`,borderWidth:2}},progress:{lineStyle:{color:`#316BF3`},itemStyle:{color:`#316BF3`},label:{color:`#6f778d`}},data:[]}),t}(tJ);we(nJ,Zg.prototype);var rJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(vv),iJ=function(e){O(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(tT),aJ=Math.PI,oJ=es(),sJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return H_(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},I([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=lJ(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:H(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:aJ/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*aJ/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=rn(),o=i.x,s=i.y+i.height;cn(a,a,[-o,-s]),ln(a,a,-aJ/2),cn(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||H(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=cJ(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new iJ(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new J;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new Jd({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:P({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Jd({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:F({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],I(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=dJ(s,c,t,{x:o,y:0,onclick:R(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),Pu(d);var f=X(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],I(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new El({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:R(i._changeTimeline,i,o),silent:!1,style:cp(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=cp(l),d.ensureState(`progress`).style=cp(u),t.add(d),Pu(d),oJ(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,R(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,R(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,R(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=ja(W(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=uJ(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),Pu(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=R(s._handlePointerDrag,s),e.ondragend=R(s._handlePointerDragend,s),fJ(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){fJ(e,s._progressLine,a,n,r)}};this._currentPointer=dJ(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=so(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return Hf(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,oJ(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(rJ);function cJ(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new gC({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case`time`:return new LC({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new vC}}function lJ(e,t){return Um(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get(`padding`))}function uJ(e,t,n,r){var i=r.style,a=Yf(e.get([`controlStyle`,t]),r||{},new Sn(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function dJ(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=Py(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=N({rectHover:!0,z2:100},r,!0);var c=Fy(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=Iy(e.get(`symbolOffset`),c);l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]);var u=e.get(`symbolRotate`);return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function fJ(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}function pJ(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),F({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function mJ(e){var t=e&&e.timeline;B(t)||(t=t?[t]:[]),I(t,function(e){e&&hJ(e)})}function hJ(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),gJ(e),_J(e,`controlPosition`)){var r=e.controlStyle||={};_J(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!_J(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}I(e.data||[],function(e){U(e)&&!B(e)&&(!_J(e,`value`)&&_J(e,`name`)&&(e.value=e.name),gJ(e))})}function gJ(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};I(r,function(e,t){!a[t]&&!_J(i,t)&&(i[t]=e)}),n.label&&!_J(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function _J(e,t){return e.hasOwnProperty(t)}function vJ(e){e.registerComponentModel(nJ),e.registerComponentView(sJ),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),pJ(e),e.registerPreprocessor(mJ)}function yJ(e,t){if(!e)return!1;for(var n=B(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function bJ(e){No(e,`label`,[`show`])}var xJ=es(),SJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(A.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=xJ(e)[i];if(!n||!n.data){xJ(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&bJ(n),I(n.data,function(e){e instanceof Array?(bJ(e[0]),bJ(e[1])):bJ(e)}),a=this.createMarkerModelFromSeries(n,this,t),P(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),xJ(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return H_(`section`,{header:this.name,blocks:[H_(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=Zg.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return xJ(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(Zm);we(SJ,Zg.prototype);var CJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markPoint`,t.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(SJ);function wJ(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function TJ(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function EJ(e,t,n,r,i,a){var o=[],s=XS(t,r)?t.getCalculationInfo(`stackResultDimension`):r,c=PJ(t,s,e),l=t.indicesOfNearest(s,c)[0];o[i]=t.get(n,l),o[a]=t.get(s,l);var u=t.get(r,l),d=co(t.get(r,l));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,u]}var DJ={min:z(EJ,`min`),max:z(EJ,`max`),average:z(EJ,`average`),median:z(EJ,`median`)};function OJ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!TJ(t)&&!B(t.coord)&&B(i)){var a=kJ(t,n,r,e);if(t=M(t),t.type&&DJ[t.type]&&a.baseAxis&&a.valueAxis){var o=Se(i,a.baseAxis.dim),s=Se(i,a.valueAxis.dim),c=DJ[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!B(i))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)DJ[l[u]]&&(l[u]=PJ(n,n.mapDimension(i[u]),l[u]));return t}}function kJ(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(AJ(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function AJ(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function jJ(e,t){return e&&e.containData&&t.coord&&!wJ(t)?e.containData(t.coord):!0}function MJ(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!wJ(t)&&!wJ(n)?e.containZone(t.coord,n.coord):!0}function NJ(e,t){return e?function(e,n,r,i){return n_(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return n_(e.value,t[i])}}function PJ(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var FJ=es(),IJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=G()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){FJ(e).keep=!1}),t.eachSeries(function(e){var i=SJ.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!FJ(e).keep&&r.group.remove(e.group)})},t.prototype.markKeep=function(e){FJ(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;I(e,function(e){var r=SJ.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?yu(e):bu(e))})})},t.type=`marker`,t}(vv);function LJ(e,t,n){var r=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Y(a.get(`x`),n.getWidth()),c=Y(a.get(`y`),n.getHeight());if(!isNaN(s)&&!isNaN(c))o=[s,c];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var l=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);o=r.dataToPoint([l,u])}isNaN(s)||(o[0]=s),isNaN(c)||(o[1]=c),e.setItemLayout(i,o)})}var RJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=SJ.getMarkerModelFromSeries(e,`markPoint`);t&&(LJ(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new BD),l=zJ(i,e,t);t.setData(l),LJ(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(V(r)||V(i)||V(a)||V(s)){var u=t.getRawValue(e),d=t.getDataParams(e);V(r)&&(r=r(u,d)),V(i)&&(i=i(u,d)),V(a)&&(a=a(u,d)),V(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=yy(o,`color`);f.fill||=p,l.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){X(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(IJ);function zJ(e,t,n){var r=e?L(e&&e.dimensions,function(e){return P(P({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new zS(r,n),a=L(n.get(`data`),z(OJ,t));e&&(a=De(a,z(jJ,e)));var o=NJ(!!e,r);return i.initData(a,null,o),i}function BJ(e){e.registerComponentModel(CJ),e.registerComponentView(RJ),e.registerPreprocessor(function(e){yJ(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var VJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(SJ),HJ=es(),UJ=function(e,t,n,r){var i=e.getData(),a;if(B(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=Be(r.yAxis,r.xAxis);else{var l=kJ(r,i,t,e);s=l.valueAxis,c=PJ(i,ZS(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=M(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&Me(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[OJ(e,a[0]),OJ(e,a[1]),P({},a[2])];return h[2].type=h[2].type||null,N(h[2],h[0]),N(h[2],h[1]),h};function WJ(e){return!isNaN(e)&&!isFinite(e)}function GJ(e,t,n,r){var i=1-e,a=r.dimensions[e];return WJ(t[i])&&WJ(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function KJ(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(GJ(1,n,r,e)||GJ(0,n,r,e)))return!0}return jJ(e,t[0])&&jJ(e,t[1])}function qJ(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Y(o.get(`x`),i.getWidth()),l=Y(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(rO(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;WJ(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):WJ(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var JJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=SJ.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=HJ(t).from,a=HJ(t).to;i.each(function(t){qJ(i,t,!0,e,n),qJ(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new QF);this.group.add(c.group);var l=YJ(i,e,t),u=l.from,d=l.to,f=l.line;HJ(t).from=u,HJ(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);B(p)||(p=[p,p]),B(m)||(m=[m,m]),B(h)||(h=[h,h]),B(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e).getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),t.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:t})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){X(e).dataModel=t,e.traverse(function(e){X(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);qJ(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=yy(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:W(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:W(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:W(a.get(`symbolSize`),m[+!i]),symbol:W(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(IJ);function YJ(e,t,n){var r=e?L(e&&e.dimensions,function(e){return P(P({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new zS(r,n),a=new zS(r,n),o=new zS([],n),s=L(n.get(`data`),z(UJ,t,e,n));e&&(s=De(s,z(KJ,e)));var c=NJ(!!e,r);return i.initData(L(s,function(e){return e[0]}),null,c),a.initData(L(s,function(e){return e[1]}),null,c),o.initData(L(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function XJ(e){e.registerComponentModel(VJ),e.registerComponentView(JJ),e.registerPreprocessor(function(e){yJ(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var ZJ=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(SJ),QJ=es(),$J=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=OJ(e,i),s=OJ(e,a),c=o.coord,l=s.coord;c[0]=Be(c[0],-1/0),c[1]=Be(c[1],-1/0),l[0]=Be(l[0],1/0),l[1]=Be(l[1],1/0);var u=xe([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function eY(e){return!isNaN(e)&&!isFinite(e)}function tY(e,t,n,r){var i=1-e;return eY(t[i])&&eY(n[i])}function nY(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return rO(e,`cartesian2d`)?n&&r&&(tY(1,n,r,e)||tY(0,n,r,e))?!0:MJ(e,i,a):jJ(e,i)||jJ(e,a)}function rY(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Y(o.get(n[0]),i.getWidth()),l=Y(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(rO(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);eY(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):eY(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var iY=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],aY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=SJ.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=L(iY,function(i){return rY(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new J});this.group.add(c.group),this.markKeep(c);var l=oY(i,e,t);t.setData(l),l.each(function(t){var n=L(iY,function(n){return rY(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];so(d),so(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t).getModel(`itemStyle`).getItemStyle(),h=yy(o,`color`);m.fill||(m.fill=h,H(m.fill)&&(m.fill=Kr(m.fill,.4))),m.stroke||=h,l.setItemVisual(t,`style`,m)}),l.diff(QJ(c).data).add(function(e){var t=l.getItemLayout(e);if(!t.allClipped){var n=new Ud({shape:{points:t.points}});l.setItemGraphicEl(e,n),c.group.add(n)}}).update(function(e,n){var r=QJ(c).data.getItemGraphicEl(n),i=l.getItemLayout(e);i.allClipped?r&&c.group.remove(r):(r?gf(r,{shape:{points:i.points}},t,e):r=new Ud({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=QJ(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),op(e,sp(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:H(i.fill)?Kr(i.fill,1):`#000`}),Bu(e,r),Iu(e,null,null,r.get([`emphasis`,`disabled`])),X(e).dataModel=t}),QJ(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(IJ);function oY(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=L(e&&e.dimensions,function(e){var n=t.getData();return P(P({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=L(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new zS(i,n)}else i=[{name:`value`,type:`float`}],r=new zS(i,n);var s=L(n.get(`data`),z($J,t,e,n));e&&(s=De(s,z(nY,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return n_(a,i[r])}:function(e,t,n,r){return n_(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function sY(e){e.registerComponentModel(ZJ),e.registerComponentView(aY),e.registerPreprocessor(function(e){yJ(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var cY=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},lY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&I(t,function(e,r){H(e)&&(e={type:e}),t[r]=N(e,cY(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&qo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=G(),a=L(r,function(e){return(H(e)||Me(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Ap(e,this,this.ecModel))},this);this._data=De(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;I(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;I(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;I(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Se(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,top:0,align:`auto`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:`#ccc`,inactiveBorderColor:`#ccc`,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:`#ccc`,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:`#333`},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:`#666`,borderWidth:1,borderColor:`#666`},emphasis:{selectorLabel:{show:!0,color:`#eee`,backgroundColor:`#666`}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Zm),uY=z,dY=I,fY=J,pY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new fY),this.group.add(this._selectorGroup=new fY),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},u=e.get(`padding`),d=Um(c,l,u),f=this.layoutInner(e,i,d,r,o,s),p=Um(F({width:f.width,height:f.height},c),l,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KG(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=G(),l=t.get(`selectedMode`),u=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&u.push(e.id)}),dY(t.getData(),function(i,a){var o=i.get(`name`);if(!this.newlineDisabled&&(o===``||o===`
57
+ `)){var d=new fY;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(o)[0];if(!c.get(o))if(f){var p=f.getData(),m=p.getVisual(`legendLineStyle`)||{},h=p.getVisual(`legendIcon`),g=p.getVisual(`style`),_=this._createItem(f,o,a,i,t,e,m,g,h,l,r);_.on(`click`,uY(gY,o,null,r,u)).on(`mouseover`,uY(vY,f.name,null,r,u)).on(`mouseout`,uY(yY,f.name,null,r,u)),n.ssr&&_.eachChild(function(e){var t=X(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}else n.eachRawSeries(function(s){if(!c.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var f=d.indexOfName(o),p=d.getItemVisual(f,`style`),m=d.getItemVisual(f,`legendIcon`),h=zr(p.fill);h&&h[3]===0&&(h[3]=.2,p=P(P({},p),{fill:qr(h,`rgba`)}));var g=this._createItem(s,o,a,i,t,e,{},p,m,l,r);g.on(`click`,uY(gY,null,o,r,u)).on(`mouseover`,uY(vY,null,o,r,u)).on(`mouseout`,uY(yY,null,o,r,u)),n.ssr&&g.eachChild(function(e){var t=X(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();dY(e,function(e){var r=e.type,i=new El({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),op(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Pu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=mY(c,r,o,s,d,m,u),y=new fY,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(hY({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t??``):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new El({style:cp(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Sl({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&ep({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Pu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Vm(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Vm(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(vv);function mY(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),dY(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Cb(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function hY(e){var t=e.icon||`roundRect`,n=Py(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n}function gY(e,t,n,r){yY(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),vY(e,t,n,r)}function _Y(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function vY(e,t,n,r){_Y(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function yY(e,t,n,r){_Y(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function bY(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function xY(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),SY(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){I(i,function(t,n){e[t?`select`:`unSelect`](n)}),SY(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function SY(e,t){var n=t||{};return I(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
58
+ `||r===``)){var i=e.isSelected(r);K(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function CY(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,z(xY,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,z(xY,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,z(xY,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,z(xY,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,z(xY,`unSelect`))}function wY(e){e.registerComponentModel(lY),e.registerComponentView(pY),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,bY),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),CY(e)}var TY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Jm(t);e.prototype.init.call(this,t,n,r),EY(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),EY(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Fp(lY.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:`#2f4554`,pageIconInactiveColor:`#aaa`,pageIconSize:15,pageTextStyle:{color:`#333`},animationDurationUpdate:800}),t}(lY);function EY(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,qm(t,n,{type:`box`,ignoreSize:!!i})}var DY=J,OY=[`width`,`height`],kY=[`x`,`y`],AY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new DY),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new DY)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=B(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new El({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Yf(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:R(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=OY[s],l=kY[s],u=OY[1-s],d=kY[1-s];i&&Vm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=M(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Vm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),Vm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Sl({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&gf(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;I([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=OY[i],o=kY[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(pY);function jY(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function MY(e){cS(wY),e.registerComponentModel(TY),e.registerComponentView(AY),jY(e)}function NY(e){cS(wY),cS(MY)}var PY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=Fp(EG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(EG),FY=es();function IY(e,t,n){FY(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function LY(e,t){for(var n=FY(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||RY(n,o))}}}function RY(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function zY(e,t){var n={model:t,containsPoint:z(VY,t),dispatchAction:z(BY,e),dataZoomInfoMap:null,controller:null},r=n.controller=new cj(e.getZr());return I([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function BY(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function VY(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function HY(e){var t,n=`type_`,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=a.get(`disabled`,!0)?!1:!a.get(`zoomLock`,!0)||`move`;r[n+o]>r[n+t]&&(t=o),i&&=a.get(`preventDefaultMouseMove`,!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function UY(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=FY(t),r=n.coordSysRecordMap||=G();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){I(wG(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,zY(t,n.model));(a.dataZoomInfoMap||=G()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t=e.controller,n,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];a!=null&&(n=i.get(a))}if(!n){RY(r,e);return}var o=HY(i);t.enable(o.controlType,o.opt),t.setPointerChecker(e.containsPoint),Mv(e,`dispatchAction`,n.model.get(`throttle`,!0),`fixRate`)})})}var WY=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),IY(r,t,{pan:R(GY.pan,this),zoom:R(GY.zoom,this),scrollMove:R(GY.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){LY(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(kG),GY={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=qY[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(oL(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:KY(function(e,t,n,r,i,a){var o=qY[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:KY(function(e,t,n,r,i,a){return qY[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function KY(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(oL(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var qY={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function JY(e){RG(e),e.registerComponentModel(PY),e.registerComponentView(WY),UY(e)}var YY=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=Fp(EG.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`}}}),t}(EG),XY=Sl,ZY=7,QY=1,$Y=30,eX=7,tX=`horizontal`,nX=`vertical`,rX=5,iX=[`line`,`bar`,`candlestick`,`scatter`],aX={easing:`cubicOut`,duration:100,delay:0},oX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=R(this._onBrush,this),this._onBrushEnd=R(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Mv(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()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Nv(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new J;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?eX:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===tX?{right:i.width-r.x-r.width,top:i.height-$Y-ZY-n,width:r.width,height:$Y}:{right:ZY,top:r.y,width:$Y,height:r.height},o=Jm(e.option);I([`right`,`top`,`width`,`height`],function(e){o[e]===`ph`&&(o[e]=a[e])});var s=Um(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===nX&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===tX&&!i?{scaleY:o?1:-1,scaleX:1}:n===tX&&i?{scaleY:o?1:-1,scaleX:-1}:n===nX&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new XY({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new XY({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:R(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=(l[1]-l[0])*.3;l=[l[0]-u,l[1]+u];var d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],h=f[1]/(i.count()-1),g=0,_=Math.round(i.count()/t[0]),v;i.each([o],function(e,t){if(_>0&&t%_){g+=h;return}var n=e==null||isNaN(e)||e===``,r=n?0:ao(e,l,d,!0);n&&!v&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&v&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=h,v=n}),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var y=this.dataZoomModel;function b(e){var t=y.getModel(e?`selectedDataBackground`:`dataBackground`),n=new J,r=new Ud({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Gd({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var x=0;x<3;x++){var S=b(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){I(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&Se(iX,e.get(`type`))<0)){var o=r.getComponent(SG(i),a).axis,s=sX(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:i,otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new XY({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new XY({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:QY,fill:`rgba(0,0,0,0)`}})),I([0,1],function(t){var a=o.get(`handleIcon`);!jy[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=Py(a,-1,0,2,2,null,!0);s.attr({cursor:cX(this._orient),draggable:!0,drift:R(this._onDragMove,this,t),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Y(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Pu(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new El({silent:!0,invisible:!f,style:cp(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Y(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Sl({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=Py(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,`#fff`,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Sl({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:cX(this._orient),drift:R(this._onDragMove,this,`all`),ondragstart:R(this._showDataInfo,this,!0),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[ao(e[0],[0,100],t,!0),ao(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];oL(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:ao(a.minSpan,o,i,!0),a.maxSpan==null?null:ao(a.maxSpan,o,i,!0));var s=this._range,c=this._range=so([ao(r[0],i,o,!0),ao(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=so(n.slice()),i=this._size;I([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new Sl,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=so(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=Vf(n.handles[e].parent,this.group),o=Uf(e===0?`right`:`left`,t),s=this._handleWidth/2+rX,c=Hf([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===tX?`middle`:o,align:i===tX?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return V(r)?r(e,a):H(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Zt(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Hf([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new pn(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=so([ao(n.x,r,i,!0),ao(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Zt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new XY({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?aX:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=wG(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(kG);function sX(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function cX(e){return e===`vertical`?`ns-resize`:`ew-resize`}function lX(e){e.registerComponentModel(YY),e.registerComponentView(oX),RG(e)}function uX(e){cS(JY),cS(lX)}var dX={get:function(e,t,n){var r=M((fX[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},fX={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]}},pX=_P.mapVisual,mX=_P.eachVisual,hX=B,gX=I,_X=so,vX=ao,yX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Dq(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=R(e,this),this.controllerVisuals=Eq(this.option.controller,t,e),this.targetVisuals=Eq(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return e==null||e===`all`?this.ecModel.eachSeries(function(e,n){t.push(n)}):t=Mo(e),t},t.prototype.eachTargetSeries=function(e,t){I(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(H(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(V(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=_X([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};N(r,n),N(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){hX(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},gX(r,function(e,t){if(_P.isValidType(t)){var n=dX.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;gX(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&M(t)||(a?i:[i]),c.symbolSize??=n&&M(n)||(a?s[0]:[s[0],s[0]]),c.symbol=pX(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;mX(l,function(e){e>u&&(u=e)}),c.symbolSize=pX(l,function(e){return vX(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,seriesIndex:`all`,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,contentColor:`#5793f3`,inactiveColor:`#aaa`,borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:`#333`}},t}(Zm),bX=[20,140],xX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=bX[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=bX[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=so((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=SX(this,`outOfRange`,this.getExtent()),n=SX(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=Fp(yX.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:`#fff`,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:`#fff`,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:`rgba(0,0,0,0.2)`}}),t}(yX);function SX(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var CX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Om(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Sl({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return I(_P.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),_P.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Wm(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(vv),wX=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function TX(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=wX[o],c=[0,null,10],l={},u=0;u<3;u++)l[wX[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Um(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function EX(e,t){return I(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var DX=ao,OX=I,kX=Math.min,AX=Math.max,jX=12,MX=6,NX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=R(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=R(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new El({style:cp(d,{x:c[0],y:c[1],verticalAlign:u===`horizontal`?`middle`:l,align:u===`horizontal`?l:`center`,text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=TX(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new J;s.add(c),c.add(n.outOfRange=PX()),c.add(n.inRange=PX(null,a?LX(this._orient):null,R(this._dragHandle,this,`all`,!1),R(this._dragHandle,this,`all`,!0))),c.setClipPath(new Sl({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=AX(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=R(this._dragHandle,this,n,!1),s=R(this._dragHandle,this,n,!0),c=ja(e.get(`handleSize`),r[0]),l=Py(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=LX(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Zt(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Vu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new El({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Zt(e.event)},ondragend:s,style:cp(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=ja(e.get(`indicatorSize`),n[0]),o=Py(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof ml){var c=o.style;o.useStyle(P({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new El({silent:!0,invisible:!0,style:cp(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:MX)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():IX(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[DX(t[0],n,r,!0),DX(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];oL(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[DX(r[0],i,a,!0),DX(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new rf(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new J(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);OX([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=DX(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=Hf(n.handleLabelPoints[l],Vf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=DX(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Hf(c.indicatorLabelPoint,Vf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=kX(AX(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=kX(AX(i[0],e),i[1]);var o=FX(n,a,i),s=[e-o,e+o],c=DX(e,i,a,!0),l=[DX(s[0],i,a,!0),DX(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||IX(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Qo(u,d);this._dispatchHighDown(`downplay`,EX(f[0],n)),this._dispatchHighDown(`highlight`,EX(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(wy(e.target,function(e){var n=X(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,EX(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Vf(t,r?null:this.group);return B(e)?Hf(e,i,n):Uf(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(CX);function PX(e,t,n,r){return new Ud({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Zt(e.event)},ondragend:r})}function FX(e,t,n){var r=jX/2,i=e.get(`hoverLinkDataSize`);return i&&(r=DX(i,t,n,!0)/2),r}function IX(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function LX(e){return e===`vertical`?`ns-resize`:`ew-resize`}var RX={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},zX=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},BX=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(kq(t.stateList,t.targetVisuals,R(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(R(VX,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function VX(e,t,n,r){for(var i=t.targetVisuals[r],a=_P.prepareVisualTypes(i),o={color:yy(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var HX=I;function UX(e){var t=e&&e.visualMap;B(t)||(t=t?[t]:[]),HX(t,function(e){if(e){WX(e,`splitList`)&&!WX(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&B(t)&&HX(t,function(e){U(e)&&(WX(e,`start`)&&!WX(e,`min`)&&(e.min=e.start),WX(e,`end`)&&!WX(e,`max`)&&(e.max=e.end))})}})}function WX(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var GX=!1;function KX(e){GX||(GX=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(RX,zX),I(BX,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(UX))}function qX(e){e.registerComponentModel(xX),e.registerComponentView(NX),KX(e)}var JX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],YX[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=M(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=L(this._pieceList,function(e){return e=M(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=_P.listVisualTypes(),i=this.isCategory();I(t.pieces,function(e){I(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),I(n,function(e,n){var r=!1;I(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&I(this.stateList,function(e){(t[e]||(t[e]={}))[n]=dX.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,I(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;I(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=M(e)},t.prototype.getValueState=function(e){var t=_P.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){_P.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return I(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=Fp(yX.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(yX),YX={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),So(e),I(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;I(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),XX(t,e)},pieces:function(e){var t=this.option;I(t.pieces,function(t,n){U(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=_P.retrieveVisuals(t),e.push(r)},this),XX(t,e),So(e),I(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function XX(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var ZX=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,c=this._getViewData(),l=c.endsText,u=Be(t.get(`showLabel`,!0),!l),d=!t.get(`selectedMode`);l&&this._renderEndsText(e,l[0],s,u,o),I(c.viewPieceList,function(r){var c=r.piece,l=new J;l.onclick=R(this._onItemClick,this,c),this._enableHoverLink(l,r.indexInModelPieceList);var f=t.getRepresentValue(c);if(this._createItemSymbol(l,f,[0,0,s[0],s[1]],d),u){var p=this.visualMapModel.getValueState(f);l.add(new El({style:{x:o===`right`?-n:s[0]+n,y:s[1]/2,text:c.text,verticalAlign:`middle`,align:o,font:i,fill:a,opacity:p===`outOfRange`?.5:1},silent:d}))}e.add(l)},this),l&&this._renderEndsText(e,l[1],s,u,o),Vm(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:EX(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return TX(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new J,o=this.visualMapModel.textStyleModel;a.add(new El({style:cp(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=L(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Py(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=M(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,I(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(CX);function QX(e){e.registerComponentModel(JX),e.registerComponentView(ZX),KX(e)}function $X(e){cS(qX),cS(QX)}var eZ={label:{enabled:!0},decal:{show:!1}},tZ=es(),nZ={};function rZ(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=M(eZ);N(r.label,e.getLocaleModel().get(`aria`),!1),N(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=G();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),tZ(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(V(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=Th(t.ecModel,t.name,nZ,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=tZ(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=Th(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?P(P({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=F(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=l>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?De(i.getValues(_),function(e,t){return Se(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(o(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function o(e,t){if(!H(e))return e;var n=e;return I(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function s(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function c(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function iZ(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},I([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function aZ(e){e.registerPreprocessor(iZ),e.registerVisual(e.PRIORITY.VISUAL.ARIA,rZ)}var oZ={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},sZ=function(){function e(e){(this._condVal=H(e)?new RegExp(e):Re(e)?e:null)??Oo(``)}return e.prototype.evaluate=function(e){var t=typeof e;return H(t)?this._condVal.test(e):Me(t)?this._condVal.test(e+``):!1},e}(),cZ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),lZ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),uZ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),dZ=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),fZ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function pZ(e,t){if(e===!0||e===!1){var n=new cZ;return n.value=e,n}return _Z(e)||Oo(``),e.and?mZ(`and`,e,t):e.or?mZ(`or`,e,t):e.not?hZ(e,t):gZ(e,t)}function mZ(e,t,n){var r=t[e],i=``;B(r)||Oo(i),r.length||Oo(i);var a=e===`and`?new lZ:new uZ;return a.children=L(r,function(e){return pZ(e,n)}),a.children.length||Oo(i),a}function hZ(e,t){var n=e.not,r=``;_Z(n)||Oo(r);var i=new dZ;return i.child=pZ(n,t),i.child||Oo(r),i}function gZ(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=ke(e),o=e.parser,s=o?i_(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=K(oZ,l)?oZ[l]:l,d=e[l],f=s?s(d):d,p=l_(u,f)||u===`reg`&&new sZ(f);p||Oo(n),i.push(p)}}i.length||Oo(n);var m=new fZ;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function _Z(e){return U(e)&&!Te(e)}var vZ=function(){function e(e,t){this._cond=pZ(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function yZ(e,t){return new vZ(e,t)}var bZ={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=yZ(e.config,{valueGetterAttrMap:G({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;K(e,`dimension`)||Oo(n);var i=t.getDimensionInfo(r);return i||Oo(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},xZ={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=Mo(n);i.length||Oo(r);var a=[];I(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??Oo(r),i!==`asc`&&i!==`desc`&&Oo(r),s&&s!==`min`&&s!==`max`&&Oo(``),i!==`asc`&&i!==`desc`&&Oo(``);var c=t.getDimensionInfo(n);c||Oo(r);var l=o?i_(o):null;o&&!l&&Oo(r),a.push({dimIdx:c.index,parser:l,comparator:new s_(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&Oo(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function SZ(e){e.registerTransform(bZ),e.registerTransform(xZ)}var CZ=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new N_(this),P_(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),P_(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:lh},t}(Zm),wZ=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(vv);function TZ(e){e.registerComponentModel(CZ),e.registerComponentView(wZ)}var EZ=Lc.CMD;function DZ(e,t){return Math.abs(e-t)<1e-5}function OZ(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){DZ(e,n)&&DZ(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===EZ.L||_===EZ.C||_===EZ.Q)&&(i=[s,c])),_){case EZ.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case EZ.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case EZ.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case EZ.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case EZ.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case EZ.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case EZ.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function kZ(e,t,n,r,i,a,o,s,c,l){if(DZ(e,n)&&DZ(t,r)&&DZ(i,o)&&DZ(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];q(e,n,i,o,.5,T),q(t,r,a,s,.5,E),kZ(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),kZ(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function AZ(e,t){var n=OZ(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];kZ(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function jZ(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function MZ(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=jZ([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function NZ(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=jZ([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function PZ(e,t,n,r){return e*r-n*t}function FZ(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=PZ(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=PZ(e-i,t-a,u,d)/f;return p<0||p>1?null:new pn(p*c+e,p*l+t)}function IZ(e,t,n){var r=new pn;pn.sub(r,n,t),r.normalize();var i=new pn;return pn.sub(i,e,t),i.dot(r)}function LZ(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function RZ(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=FZ(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:IZ(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)LZ(m,e[a].slice());LZ(m,p),LZ(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)LZ(h,e[a%r].slice());return LZ(h,f),LZ(h,p),[{points:m},{points:h}]}function zZ(e){var t=e.points,n=[],r=[];fc(t,n,r);var i=new Sn(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new pn,u=new pn;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),RZ(t,l,u)}function BZ(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);BZ(e,a[0],i,r),BZ(e,a[1],n-i,r)}return r}function VZ(e,t){for(var n=[],r=0;r<t;r++)n.push(gd(e));return n}function HZ(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function UZ(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function WZ(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:NZ(r,t,n),i=Sl;break;case`sector`:MZ(r,t,n),i=Ld;break;case`circle`:MZ({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=Ld;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=L(AZ(e.getUpdatedPathProxy(),o),function(e){return UZ(e)}),c=s.length;if(c===0)BZ(zZ,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=L(s,function(e){var t=[],n=[];fc(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(BZ(zZ,{points:p.poly},m,n),f-=m)}}i=Ud;break}if(!i)return VZ(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),HZ(e,g),h.push(g)}return h}function GZ(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;q(m,g,v,b,w,i),q(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function KZ(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function qZ(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=GZ(c,l),u=n[0],d=n[1],r=u,i=d):(d=KZ(i||c,c),u=c):(u=KZ(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function JZ(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function YZ(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function XZ(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function ZZ(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=JZ(s),u=JZ(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=XZ(s));for(var _=YZ(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var ee=A-E,te=j-D;T+=ee*ee+te*te}if(T<m){m=T,p=S;for(var ne=0;ne<h.length;ne++)f[ne]=h[ne]}}else for(var re=0;re<g;re+=2)f[re]=c[re]-u[0],f[re+1]=c[re+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function QZ(e){return e.__isCombineMorphing}var $Z=`__mOriginal_`;function eQ(e,t,n){var r=$Z+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function tQ(e,t){var n=$Z+t;e[n]&&(e[t]=e[n],e[n]=null)}function nQ(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function rQ(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=qZ(OZ(n),OZ(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&nQ(a,s),c&&nQ(o,c),eQ(t,`updateTransform`,{replace:l}),t.transform=null;var u=ZZ(a,o,10,Math.PI),d=[];eQ(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);xt(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function iQ(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;rQ(e,t),t.__morphT=0;function a(){tQ(t,`buildPath`),tQ(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},F({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function aQ(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function oQ(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return L(L(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:aQ(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function sQ(e){return WZ(e.path,e.count)}function cQ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function lQ(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];QZ(n)?i(n.childrenRef()):n instanceof cl&&r.push(n)}}i(e);var a=r.length;if(!a)return cQ();var o=(n.dividePath||sQ)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),cQ();r=oQ(r),o=oQ(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new xa,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||rQ(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}eQ(t,`addSelfToZr`,{after:function(e){m(e)}}),eQ(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,tQ(t,`addSelfToZr`),tQ(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?F({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;iQ(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},F({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)tQ(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function uQ(e,t,n){var r=t.length,i=[],a=n.dividePath||sQ;function o(e){for(var t=0;t<e.length;t++){var n=e[t];QZ(n)?o(n.childrenRef()):n instanceof cl&&i.push(n)}}if(QZ(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(gd(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),cQ()}i=oQ(i),t=oQ(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?F({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;iQ(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function dQ(e){return B(e[0])}function fQ(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var pQ={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=gd(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function mQ(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=mf(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;dQ(e)&&(l=e,u=t),dQ(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(QZ(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?F({delay:s(r,i)},c):c;iQ(f,p,m),a(f,p,f,p,m)}}else for(var h=F({dividePath:pQ[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?lQ(l,u,h):uQ(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?F({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?fQ(u,l):fQ(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function hQ(e){if(!e)return[];if(B(e)){for(var t=[],n=0;n<e.length;n++)t.push(hQ(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof cl&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var gQ=1e4,_Q=0,vQ=1,yQ=2,bQ=es();function xQ(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function SQ(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function CQ(e,t,n,r){var i=xQ(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return SQ(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function wQ(e){var t=[];return I(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>gQ))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:CQ(n,a,r,!1),childGroupId:CQ(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function TQ(e,t,n){e.traverse(function(e){e instanceof cl&&_f(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function EQ(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function DQ(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function OQ(e,t,n){var r=mf(`update`,n,t);r&&e.traverse(function(e){if(e instanceof ec){var t=Cf(e);t&&e.animateFrom({style:t},r)}})}function kQ(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function AQ(e,t,n){var r=wQ(e),i=wQ(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?P(P({},n.style),e.style):e.style},i)}var o=!1,s=_Q,c=G(),l=G();r.forEach(function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=vQ;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=yQ;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===vQ?n.childGroupId:n.groupId:s===yQ?n.childGroupId:n.groupId}}var m=kQ(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&OQ(u,s.dataIndex,c);return}l&&h[l.id]||u&&(DQ(u),l?(DQ(l),EQ(l),o=!0,mQ(hQ(l),hQ(u),s.divide,c,e,a)):TQ(u,c,e))}new dS(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=De(L(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(DQ(l),u.length?(I(u,function(e){DQ(e),EQ(e)}),o=!0,mQ(hQ(u),hQ(l),n.divide,c,e,a)):TQ(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=De(L(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(I(c,function(e){return DQ(e)}),s?(DQ(s),EQ(s),o=!0,mQ(hQ(s),hQ(c),n.divide,l,e[0],a)):I(c,function(t){return TQ(t,l,e[0])}))}}).updateManyToMany(function(e,t){new dS(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&I(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=mf(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof cl&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function jQ(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function MQ(e){return B(e)?e.sort().join(`,`):e}function NQ(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function PQ(e,t){var n=G(),r=G(),i=G();return I(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=jQ(t),c=MQ(s);r.set(c,{dataGroupId:a,data:o}),B(s)&&I(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),I(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=jQ(e),s=MQ(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:NQ(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:NQ(a),data:a}]});else if(B(o)){var l=[];I(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:NQ(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:NQ(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:NQ(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:NQ(a)})}}}}),n}function FQ(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function IQ(e,t,n,r){var i=[],a=[];I(Mo(e.from),function(e){var n=FQ(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:NQ(t.oldData[n]),groupIdDim:e.dimension})}),I(Mo(e.to),function(e){var r=FQ(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:NQ(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&AQ(i,a,r)}function LQ(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){I(Mo(n.seriesTransition),function(e){I(Mo(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][cv]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=bQ(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)I(Mo(i),function(e){IQ(e,r,n,t)});else{var a=PQ(r,n);I(a.keys(),function(e){var n=a.get(e);AQ(n.oldSeries,n.newSeries,t)})}I(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[cv]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<gQ&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}cS([jD]),cS([xD]),cS([EO,ok,Dk,VA,nj,WM,RN,cF,xI,OI,LI,jR,cz,wz,Xz,tB,gB,wB,QB,oV,SV,XH]),cS(WU),cS(DW),cS(UM),cS(qW),cS(AR),cS(eG),cS(vG),cS(HK),cS(bq),cS(UU),cS(Zq),cS(eJ),cS(vJ),cS(BJ),cS(XJ),cS(sY),cS(NY),cS(uX),cS(JY),cS(lX),cS($X),cS(qX),cS(QX),cS(aZ),cS(SZ),cS(TZ),cS(LQ),cS(UT);var RQ=1;function zQ(e){var t=`\r
59
+ >/= `,n=0;return RQ=1,BQ(function r(){for(var i=[];e[n];){if(e.charCodeAt(n)==60){if(e.charCodeAt(n+1)===47)return n=e.indexOf(`>`,n),i;if(e.charCodeAt(n+1)===33){if(e.charCodeAt(n+2)==45){for(;e.charCodeAt(n)!==62||e.charCodeAt(n-1)!=45||e.charCodeAt(n-2)!=45||n==-1;)n=e.indexOf(`>`,n+1);n===-1&&(n=e.length)}else for(n+=2;e.charCodeAt(n)!==62;n++);n++;continue}if(e.charCodeAt(n+1)===63){n=e.indexOf(`>`,n),n++;continue}for(var a=++n;t.indexOf(e[n])===-1;n++);for(var o=e.slice(a,n),s=!1,c={};e.charCodeAt(n)!==62;n++){var l=e.charCodeAt(n);if(l>64&&l<91||l>96&&l<123){for(a=n;t.indexOf(e[n])===-1;n++);for(var u=e.slice(a,n),d=e.charCodeAt(n);d!==39&&d!==34;)n++,d=e.charCodeAt(n);var f=e[n],p=++n;n=e.indexOf(f,p);var m=e.slice(p,n);s||=(c={},!0),c[u]=m}}var h=[];e.charCodeAt(n-1)!==47&&(n++,h=r()),i.push({children:h,tagName:o,attrs:c})}else{var g=n;(n=e.indexOf(`<`,n)-1)==-2&&(n=e.length);var _=e.slice(g,n+1);_.length>0&&i.push(_)}n++}return i}())}function BQ(e){var t={};if(e===void 0)return{};if(e.length===1&&typeof e[0]==`string`)return e[0];for(var n in e.forEach((function(e){if(t[e.tagName]||(t[e.tagName]=[]),typeof e==`object`){var n=BQ(e.children);typeof n==`object`&&(e.attrs&&(n.attrs=e.attrs),n.attrs===void 0?n.attrs={order:RQ}:n.attrs.order=RQ),RQ++,t[e.tagName].push(n)}})),t)t[n].length==1&&(t[n]=t[n][0]);return t}function VQ(e){return Math.abs(e)>2e4?`emu`:`point`}function HQ(e){return e/12700}function UQ(e){return e/20}function WQ(e){return e/100}function GQ(e){return e/6e4}function KQ(e){return e/1e5}function qQ(e){var t=Math.ceil(e/26),n=(e%26||26)-1+65;return String.fromCharCode(n).repeat(t)}function JQ(e,t,n){var r={type:`solidFill`};if(e[`a:srgbClr`])r.color=`#`+e[`a:srgbClr`].attrs.val;else if(e[`a:schemeClr`]){var i=e[`a:schemeClr`].attrs.val;n&&(i=n.getColorThemeName(i)),r.color=t.getColor(i)}else e[`a:sysClr`]?r.color=`#`+e[`a:sysClr`].attrs.lastClr:e[`a:prstClr`]&&(r.color=function(e){var t,n=`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`.split(`.`),r=`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`.split(`.`),i=n.indexOf(e);return i!=-1&&(t=r[i]),`#${t||`000000`}`}((0,E.get)(e[`a:prstClr`],[`attrs`,`val`])));var a=e[`a:srgbClr`]||e[`a:schemeClr`]||e[`a:sysClr`];r.alpha=(0,E.get)(a,[`a:alpha`,`attrs`,`val`],1e5)/1e5;var o=(0,E.get)(a,[`a:shade`,`attrs`,`val`]);o&&(r.shade=o/1e5);var s=(0,E.get)(a,[`a:lumMod`,`attrs`,`val`]);s&&(r.lumMod=s/1e5);var c=(0,E.get)(a,[`a:lumOff`,`attrs`,`val`]);c&&(r.lumOff=c/1e5);var l=(0,E.get)(a,[`a:tint`,`attrs`,`val`]);return l&&(r.tint=l/1e5),r}function YQ(e,t,n){var r={type:`blipFill`},i=(0,E.get)(e,[`a:blip`,`attrs`,`r:embed`]);if(i){var a=n.rels[i]?.target;a&&(r.base64=t.getMedia(a))}var o=(0,E.get)(e,[`a:blip`,`a:alphaModFix`,`attrs`,`amt`]);o&&(r.alpha=o/1e5);var s=(0,E.get)(e,[`a:stretch`,`a:fillRect`,`attrs`]);return s&&(r.fillRect={},s.b&&(r.fillRect.b=s.b/1e5),s.t&&(r.fillRect.t=s.t/1e5),s.r&&(r.fillRect.r=s.r/1e5),s.l&&(r.fillRect.l=s.l/1e5)),r}function XQ(e,t,n){var r={type:`gradFill`,tileRect:{},lin:{},gsList:[]};return r.flip=e.attrs.flip,r.path=(0,E.get)(e,[`a:path`,`attrs`,`path`])||`linear`,r.rotWithShape=e.attrs.rotWithShape===`1`,(0,E.get)(e,[`a:lin`,`attrs`,`ang`])&&(r.lin.ang=GQ(e[`a:lin`].attrs.ang)),(0,E.get)(e,[`a:lin`,`attrs`,`scaled`])&&(r.lin.scaled=e[`a:lin`].attrs.scaled===`1`),r.gsList=((0,E.get)(e,[`a:gsLst`,`a:gs`])||[]).map((function(e){return{color:JQ(e,t,n),pos:KQ(e.attrs.pos)}})),(0,E.get)(e,[`a:tileRect`,`attrs`,`l`])&&(r.tileRect.l=KQ(e[`a:tileRect`].attrs.l)),(0,E.get)(e,[`a:tileRect`,`attrs`,`t`])&&(r.tileRect.t=KQ(e[`a:tileRect`].attrs.t)),(0,E.get)(e,[`a:tileRect`,`attrs`,`r`])&&(r.tileRect.r=KQ(e[`a:tileRect`].attrs.r)),(0,E.get)(e,[`a:tileRect`,`attrs`,`b`])&&(r.tileRect.b=KQ(e[`a:tileRect`].attrs.b)),r}function ZQ(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function QQ(e){return e<.0031308?12.92*e:1.055*e**(1/2.4)-.055}function $Q(e,t){var n=e[0],r=e[1],i=e[2],a=ZQ(n/255)*t,o=ZQ(r/255)*t,s=ZQ(i/255)*t;return[Math.round(255*QQ(a)),Math.round(255*QQ(o)),Math.round(255*QQ(s))]}function e$(e,t,n){var r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=0,u=(o+s)/2;return c===0?l=0:o===r?l=(i-a)/c%6:o===i?l=(a-r)/c+2:o===a&&(l=(r-i)/c+4),(l=Math.round(60*l))<0&&(l+=360),{h:l,s:c===0||u===0||u===1?0:c/(1-Math.abs(2*u-1)),l:u}}function t$(e,t,n){var r,i,a,o=(1-Math.abs(2*n-1))*t,s=o*(1-Math.abs(e/60%2-1)),c=n-o/2;return e<60?(r=o,i=s,a=0):e<120?(r=s,i=o,a=0):e<180?(r=0,i=o,a=s):e<240?(r=0,i=s,a=o):e<300?(r=s,i=0,a=o):(r=o,i=0,a=s),[r=Math.round(255*(r+c)),i=Math.round(255*(i+c)),a=Math.round(255*(a+c))]}function n$(e,t){if(!e||e.type===`none`)return``;if(e.type===`solidFill`&&/^#[\da-fA-F]{3,6}$/.test(e.color)){var n=parseInt(e.color.substr(1,2),16),r=parseInt(e.color.substr(3,2),16),i=parseInt(e.color.substr(5,2),16);if(e.shade){var a=$Q([n,r,i],e.shade);n=a[0],r=a[1],i=a[2]}if(e.lumMod){var o=function(e,t,n,r){var i=e$(e,t,n),a=i.h,o=i.l*r;return o>=1&&(o=1),t$(a,i.s,o)}(n,r,i,e.lumMod);n=o[0],r=o[1],i=o[2]}if(e.lumOff&&(o=function(e,t,n,r){var i=e$(e,t,n),a=i.h,o=r+i.l;return o>1&&(o=1),t$(a,i.s,o)}(n,r,i,e.lumOff),n=o[0],r=o[1],i=o[2]),e.tint||t?.light){var s=function(e,t,n,r){var i=e$(e,t,n),a=i.h,o=i.l;return r>=1&&(r=1),t$(a,i.s,o*r+(1-r))}(n,r,i,e.tint||t?.light);n=s[0],r=s[1],i=s[2]}if(t?.dark){var c=$Q([n,r,i],t?.dark);n=c[0],r=c[1],i=c[2]}var l=e.alpha;return`rgba(${n},${r},${i},${l})`}}var r$=function(){function e(e,t,n){this.uuid=w(),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 r=(0,E.get)(e,[`p:nvSpPr`,`p:nvPr`]);if(r){var i=(0,E.get)(r,`p:ph`);i&&i.attrs&&(this.idx=i.attrs.idx,this.type=i.attrs.type),(0,E.get)(r,[`attrs`,`userDrawn`])&&(this.userDrawn=(0,E.get)(r,[`attrs`,`userDrawn`])===`1`)}if(this.order=(0,E.get)(e,`attrs.order`,0),this.source[`p:spPr`]){if(o=this.getXfrm()){var a=this.group&&(this.ctx.pptx?.wps||VQ(parseInt(o[`a:off`].attrs.x))===`point`)?UQ:HQ;this.offset={x:Math.round(a(parseInt(o[`a:off`].attrs.x))),y:Math.round(a(parseInt(o[`a:off`].attrs.y)))},this.extend={w:Math.round(a(parseInt(o[`a:ext`].attrs.cx))),h:Math.round(a(parseInt(o[`a:ext`].attrs.cy||`0`)))},this.rotate=GQ(parseInt((0,E.get)(o,`attrs.rot`,0))),this.flipV=(0,E.get)(o,`attrs.flipV`)===`1`,this.flipH=(0,E.get)(o,`attrs.flipH`)===`1`}}else if(this.source[`p:xfrm`]){var o=this.source[`p:xfrm`];a=this.group&&(this.ctx.pptx?.wps||VQ(parseInt(o[`a:off`].attrs.x))===`point`)?UQ:HQ,this.offset={x:Math.round(a(parseInt(o[`a:off`].attrs.x))),y:Math.round(a(parseInt(o[`a:off`].attrs.y)))},this.extend={w:Math.round(a(parseInt(o[`a:ext`].attrs.cx))),h:Math.round(a(parseInt(o[`a:ext`].attrs.cy)))}}if(n){var s=n.extend,c=n.chExtend,l=n.chOffset,u=c.w===0?0:s.w/c.w,d=c.h===0?0:s.h/c.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*d,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*d}}return Object.defineProperty(e.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),e.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},e.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},e}(),i$=function(){function e(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return e.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,n=this.node.type,r=this.node.idx;if(n||r)switch(t.slideType){case`slideMaster`:break;case`slideLayout`:(e=n?t.slideMaster.getNodeByType(n):t.slideMaster.getNodeByIdx(r))&&(this.inheritProps=(0,E.get)(e,[`textBody`,`props`])||{});break;case`slide`:(e=n?t.slideLayout.slideMaster.getNodeByType(n):t.slideLayout.slideMaster.getNodeByIdx(r))&&Object.assign(this.inheritProps,(0,E.get)(e,[`textBody`,`props`])||{}),(e=n?t.slideLayout.getNodeByType(n):t.slideLayout.getNodeByIdx(r))&&Object.assign(this.inheritProps,(0,E.get)(e,[`textBody`,`props`])||{})}},e.prototype._parseBodyProps=function(){var e=this,t=(0,E.get)(this.source,[`a:bodyPr`,`attrs`])||{};Object.keys(t).forEach((function(n){switch(n){case`anchor`:e.props.anchor=t[n];break;case`rtlCol`:e.props.rtlCol=t[n]===`1`;break;case`lIns`:case`rIns`:case`tIns`:case`bIns`:e.props[n]=HQ(parseInt(t[n]));break;case`order`:break;default:e.props[n]=t[n]}}));var n=(0,E.get)(this.source,[`a:bodyPr`,`a:normAutofit`,`attrs`]);if(n){this.props.normAutofit={};var r=n.fontScale;r&&(this.props.normAutofit.fontScale=KQ(parseInt(r)));var i=n.lnSpcReduction;i&&(this.props.normAutofit.lnSpcReduction=KQ(parseInt(i)))}},e.prototype._parseLstStyle=function(){var e=this,t={},n=(0,E.get)(this.source,`a:lstStyle`)||{};Object.keys(n).forEach((function(r){if(r.startsWith(`a:`)&&r.endsWith(`pPr`)){var i=r.substr(2,r.length-5);t[i]={props:e._formatPPr(n[r])};var a=(0,E.get)(n[r],[`a:defRPr`]);t[i].defRPr=e._formatRPr(a)}})),this.lstStyle=t},e.prototype._parseText=function(){var e=this,t=(0,E.get)(this.source,[`a:p`])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map((function(t){return e._parseParagraph(t)}))},e.prototype._parseParagraph=function(e){var t=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},r=(0,E.get)(e,[`a:pPr`])||{};n.props=this._formatPPr(r);var i=(0,E.get)(e,[`a:endParaRPr`]);n.endParaRProps=this._formatRPr(i);var a=(0,E.get)(e,[`a:r`])||[];Array.isArray(a)||(a=[a]);var o=(0,E.get)(e,[`a:br`])||[];return Array.isArray(o)||(o=[o]),(a=a.concat(o.map((function(e){return f({isBr:!0},e)})))).sort((function(e,t){return(0,E.get)(e,[`attrs`,`order`])-(0,E.get)(t,[`attrs`,`order`])})),n.rows=a.map((function(e){return t._parseRow(e)})),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},e.prototype._getInheritPProps=function(e){e===void 0&&(e=`0`);var t,n={},r=this.node.ctx,i=this.node.type,a=this.node.idx;switch(r.slideType){case`slideMaster`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.defaultTextStyle,[`lvl${e?+e+1:1}`,`props`])||{}):Object.assign(n,(0,E.get)(r,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`props`])||{});break;case`slideLayout`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.slideMaster.defaultTextStyle,[`lvl${e?+e+1:1}`,`props`])||{}):Object.assign(n,(0,E.get)(r.slideMaster,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`props`])||{}),(i||a)&&(t=i?r.slideMaster.getNodeByType(i):r.slideMaster.getNodeByIdx(a))&&Object.assign(n,(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`props`])||{});break;case`slide`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.slideLayout.slideMaster.defaultTextStyle,[`lvl${e?+e+1:1}`,`props`])||{}):Object.assign(n,(0,E.get)(r.slideLayout.slideMaster,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`props`])||{}),(i||a)&&([`subTitle`,`ctrTitle`,`title`].includes(i)&&Object.assign(n,(0,E.get)(r.slideLayout.slideMaster,[`textStyles`,`titleStyle`,`lvl${e?+e+1:1}`,`props`])||{}),(t=i?r.slideLayout.slideMaster.getNodeByType(i):r.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(n,(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`props`])||{}),(t=i?r.slideLayout.getNodeByType(i):r.slideLayout.getNodeByIdx(a))&&Object.assign(n,(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`props`])||{}))}return n},e.prototype._getInheritRProps=function(e){e===void 0&&(e=`0`);var t,n={},r=this.node.ctx,i=this.node.type,a=this.node.idx;switch(r.slideType){case`slideMaster`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.defaultTextStyle,[`lvl${e?+e+1:1}`,`defRPr`])||{}):Object.assign(n,(0,E.get)(r,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{});break;case`slideLayout`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.slideMaster.defaultTextStyle,[`lvl${e?+e+1:1}`,`defRPr`])||{}):Object.assign(n,(0,E.get)(r.slideMaster,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{}),(i||a)&&(t=i?r.slideMaster.getNodeByType(i):r.slideMaster.getNodeByIdx(a))&&(n=(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{});break;case`slide`:this.node.isTextBox?Object.assign(n,(0,E.get)(r.slideLayout.slideMaster.defaultTextStyle,[`lvl${e?+e+1:1}`,`defRPr`])||{}):Object.assign(n,(0,E.get)(r.slideLayout.slideMaster,[`textStyles`,`otherStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{}),(i||a)&&([`subTitle`,`ctrTitle`,`title`].includes(i)&&Object.assign(n,(0,E.get)(r.slideLayout.slideMaster,[`textStyles`,`titleStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{}),(t=i?r.slideLayout.slideMaster.getNodeByType(i):r.slideLayout.slideMaster.getNodeByIdx(a))&&Object.assign(n,(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{}),(t=i?r.slideLayout.getNodeByType(i):r.slideLayout.getNodeByIdx(a))&&Object.assign(n,(0,E.get)(t,[`textBody`,`lstStyle`,`lvl${e?+e+1:1}`,`defRPr`])||{}))}var o=(0,E.get)(this.node.source,[`p:style`,`a:fontRef`]);return(0,E.get)(o,`a:schemeClr`)&&(n.color=JQ(o,this.node.theme,this.node)),(0,E.get)(this.lstStyle,[`lvl${e?+e+1:1}`,`defRPr`])&&Object.assign(n,(0,E.get)(this.lstStyle,[`lvl${e?+e+1:1}`,`defRPr`])),n},e.prototype._formatPPr=function(e){var t={},n=(0,E.get)(e,`attrs`)||{};return Object.keys(n).forEach((function(e){switch(e){case`algn`:t.align=n[e];break;case`marL`:t.marginLeft=HQ(parseInt(n[e]));break;case`indent`:t.indent=HQ(parseInt(n[e]));break;case`lvl`:t.level=n[e]}})),(0,E.get)(e,[`a:lnSpc`,`a:spcPct`,`attrs`,`val`])&&(t.lineHeight=parseInt(e[`a:lnSpc`][`a:spcPct`].attrs.val)/1e5),(0,E.get)(e,[`a:buAutoNum`,`attrs`,`type`])&&(t.buAutoNum=e[`a:buAutoNum`].attrs.type),(0,E.get)(e,[`a:buChar`,`attrs`,`char`])&&(t.buChar=e[`a:buChar`].attrs.char),(0,E.get)(e,[`a:spcBef`,`a:spcPts`,`attrs`,`val`])&&(t.spaceBefore=WQ(parseInt(e[`a:spcBef`][`a:spcPts`].attrs.val))),(0,E.get)(e,[`a:spcAft`,`a:spcPts`,`attrs`,`val`])&&(t.spaceAfter=WQ(parseInt(e[`a:spcAft`][`a:spcPts`].attrs.val))),(0,E.get)(e,[`a:defRPr`])&&(t.defRPr=this._formatRPr((0,E.get)(e,[`a:defRPr`]))),t},e.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:``},n=(0,E.get)(e,[`a:rPr`])||{};return t.props=this._formatRPr(n),t.text=(0,E.get)(e,`a:t`)||``,t},e.prototype._formatRPr=function(e){var t={},n=(0,E.get)(e,`attrs`)||{};Object.keys(n).forEach((function(e){switch(e){case`sz`:t.size=parseInt(n[e])/100;break;case`b`:t.bold=n[e]===`1`;break;case`i`:t.italic=n[e]===`1`;break;case`u`:t.underline=n[e];break;case`strike`:t.strike=n[e];break;case`order`:case`dirty`:break;default:t[e]=n[e]}}));var r=(0,E.get)(e,`a:solidFill`);r&&(t.color=JQ(r,this.node.theme,this.node));var i=(0,E.get)(e,`a:highlight`);return i&&(t.background=JQ(i,this.node.theme,this.node)),t.typeface=(0,E.get)(e,[`a:ea`,`attrs`,`typeface`]),t},e}();function a$(e,t,n){var r={};if(!(0,E.get)(e,`a:noFill`)){(0,E.get)(e,`attrs.w`)&&(r.width=HQ(parseInt((0,E.get)(e,`attrs.w`))));var i=(0,E.get)(e,`a:solidFill`);i&&(r.color=JQ(i,t,n));var a=(0,E.get)(e,`a:prstDash`);if(a&&(r.type=a.attrs.val),(0,E.get)(e,[`a:miter`])&&(r.lineJoin=`miter`),(0,E.get)(e,[`a:bevel`])&&(r.lineJoin=`bevel`),(0,E.get)(e,[`a:round`])&&(r.lineJoin=`round`),(0,E.get)(e,[`a:miter`,`attrs`,`lim`])&&(r.miterLim=HQ(parseInt((0,E.get)(e,[`a:miter`,`attrs`,`lim`])))),(0,E.get)(e,[`a:headEnd`])){var o=(0,E.get)(e,[`a:headEnd`,`attrs`]);r.headEnd={type:o.type,len:o.len,w:o.w}}if((0,E.get)(e,[`a:tailEnd`])){var s=(0,E.get)(e,[`a:tailEnd`,`attrs`]);r.tailEnd={type:s.type,len:s.len,w:s.w}}return r}}var o$=function(e){function t(t,n,r,i){var a=e.call(this,t,r,i)||this;return a.border={},a.prstGeom={},a.isTextBox=!1,a.pptx=n,a._parseShape(),a._parIsTextBox(),a._parsePrstGeom(),a._parseBackground(),a._parseBorder(),a._parseTxt(),a}return d(t,e),t.prototype._parseShape=function(){if(this.shape=(0,E.get)(this.source,[`p:spPr`,`a:prstGeom`,`attrs`,`prst`]),!this.shape&&(0,E.get)(this.source,[`p:spPr`,`a:custGeom`])){this.shape=`customGeom`;var e=(0,E.get)(this.source,[`p:spPr`,`a:custGeom`,`a:pathLst`,`a:path`]),t=[],n=[],r=function(r){switch(r){case`a:moveTo`:case`a:cubicBezTo`:case`a:lnTo`:n=Array.isArray(e[r])?e[r]:[e[r]],t=t.concat(n.map((function(e){return{order:e.attrs.order,type:r.split(`:`)[1],points:(Array.isArray(e[`a:pt`])?e[`a:pt`]:[e[`a:pt`]]).map((function(e){return[HQ(parseInt((0,E.get)(e,[`attrs`,`x`]))),HQ(parseInt((0,E.get)(e,[`attrs`,`y`])))]}))}})));break;case`a:close`:n=Array.isArray(e[r])?e[r]:[e[r]],t=t.concat(n.map((function(e){return{order:e.attrs.order,type:r.split(`:`)[1]}})))}};for(var i in e)r(i);t.sort((function(e,t){return e.order-t.order})),this.prstGeom.pathList=t,(0,E.get)(e,[`attrs`,`w`])&&(this.prstGeom.w=HQ(parseInt((0,E.get)(e,[`attrs`,`w`])))),(0,E.get)(e,[`attrs`,`h`])&&(this.prstGeom.h=HQ(parseInt((0,E.get)(e,[`attrs`,`h`]))))}},t.prototype._parIsTextBox=function(){this.isTextBox=(0,E.get)(this.source,[`p:nvSpPr`,`p:cNvSpPr`,`attrs`,`txBox`])===`1`},t.prototype._parsePrstGeom=function(){var e=this,t=(0,E.get)((0,E.get)(this.source,[`p:spPr`,`a:prstGeom`]),[`a:avLst`,`a:gd`]);t&&(Array.isArray(t)||(t=[t]),this.prstGeom.gd=t.map((function(t){var n=[`pie`,`chord`,`arc`].includes(e.shape)||[`blockArc`].includes(e.shape)&&[`adj1`,`adj2`].includes(t.attrs.name)?GQ(parseInt(t.attrs.fmla.split(` `)[1])):KQ(parseInt(t.attrs.fmla.split(` `)[1]));return{name:t.attrs.name,fmla:n}})))},t.prototype._parseBackground=function(){if(!(0,E.get)(this.source,[`p:spPr`,`a:noFill`]))if((0,E.get)(this.source,[`p:spPr`,`a:grpFill`])&&this.group)this.background=this.group.getBackground();else{var e=(0,E.get)(this.source,[`p:spPr`,`a:solidFill`]);if(e)this.background=JQ(e,this.theme,this);else{var t=(0,E.get)(this.source,[`p:spPr`,`a:gradFill`]);if(t)this.background=XQ(t,this.theme,this);else{var n=(0,E.get)(this.source,[`p:spPr`,`a:blipFill`]);if(n)this.background=YQ(n,this.pptx,this.ctx);else{var r=(0,E.get)(this.source,[`p:style`,`a:fillRef`]);r&&(this.background=JQ(r,this.theme,this))}}}}},t.prototype._parseBorder=function(){var e=(0,E.get)(this.source,[`p:style`,`a:lnRef`]);if(e){var n=parseInt(e.attrs.idx),r=this.theme.getLineStyle(n);this.border=f(f({},r),this.border),this.border.color&&this.border.color.color||(this.border.color=JQ(e,this.theme,this))}var i=(0,E.get)(this.source,[`p:spPr`,`a:ln`]);i&&Object.assign(this.border,a$(i,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=t.defaultBorderWidth)},t.prototype._parseTxt=function(){this.textBody=new i$((0,E.get)(this.source,[`p:txBody`]),this)},t.defaultBorderWidth=.75,t}(r$),s$=function(e){function t(t,n,r,i,a){var o=e.call(this,n,i,a)||this;o.userDrawn=!0,o.pptx=r,o.path=t;var s=(0,E.get)(o.source,[`p:blipFill`,`a:srcRect`]);s&&(o.clip={},s.attrs.b&&(o.clip.b=parseInt(s.attrs.b)/1e5),s.attrs.t&&(o.clip.t=parseInt(s.attrs.t)/1e5),s.attrs.l&&(o.clip.l=parseInt(s.attrs.l)/1e5),s.attrs.r&&(o.clip.r=parseInt(s.attrs.r)/1e5));var c=(0,E.get)(n,[`p:nvPicPr`,`p:nvPr`,`a:audioFile`,`attrs`,`r:link`]);if(c){var l=o.ctx.rels[c]?.target;o.audioFile=o.pptx.getMedia(l)}var u=(0,E.get)(n,[`p:nvPicPr`,`p:nvPr`,`a:videoFile`,`attrs`,`r:link`]);if(u){var d=o.ctx.rels[u]?.target;o.videoFile=o.pptx.getMedia(d)}return o}return d(t,e),Object.defineProperty(t.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),t}(r$),c$=function(e){function t(t,n,r,i){var a=e.call(this,t,r,i)||this;return a.userDrawn=!0,a.props={tableStyleId:``},a.tableGrid={gridCol:[]},a.tr=[],a.tableStyles={},a.pptx=n,a._parseTableProps(),a._parseTableGrid(),a._parseTr(),a._parseInheritStyles(),a}return d(t,e),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype._parseTableProps=function(){var e=(0,E.get)(this.source,[`a:graphic`,`a:graphicData`,`a:tbl`,`a:tblPr`]);this.props.tableStyleId=(0,E.get)(e,`a:tableStyleId`),this.tableStyles=(0,E.get)(this.slideMaster.tableStyles,this.props.tableStyleId)||{},(0,E.get)(e,[`attrs`,`bandCol`])===`1`&&(this.props.bandCol=!0),(0,E.get)(e,[`attrs`,`bandRow`])===`1`&&(this.props.bandRow=!0),(0,E.get)(e,[`attrs`,`firstCol`])===`1`&&(this.props.firstCol=!0),(0,E.get)(e,[`attrs`,`firstRow`])===`1`&&(this.props.firstRow=!0),(0,E.get)(e,[`attrs`,`lastCol`])===`1`&&(this.props.lastCol=!0),(0,E.get)(e,[`attrs`,`lastRow`])===`1`&&(this.props.lastRow=!0)},t.prototype._parseTableGrid=function(){var e=(0,E.get)(this.source,[`a:graphic`,`a:graphicData`,`a:tbl`,`a:tblGrid`,`a:gridCol`]);if(e)for(var t=0;t<e.length;t++){var n=(0,E.get)(e[t],[`attrs`,`w`]);this.tableGrid.gridCol.push({width:HQ(parseInt(n))})}},t.prototype._parseTr=function(){var e=[],t=(0,E.get)(this.source,[`a:graphic`,`a:graphicData`,`a:tbl`,`a:tr`]);Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++){var r={props:{},td:[]},i=t[n];r.props.height=HQ(parseInt((0,E.get)(i,[`attrs`,`h`])));var a=(0,E.get)(i,[`a:tc`]);Array.isArray(a)||(a=[a]);for(var o=0;o<a.length;o++)r.td.push(this._parseTd(a[o]));e.push(r)}this.tr=e},t.prototype._parseTd=function(e){var t,n,r,i,a=this,o={props:{border:{}},paragraphs:[]},s=(0,E.get)(e,[`a:tcPr`,`attrs`]);s!=null&&s.marB&&(o.props.marB=HQ(parseInt(s?.marB))),s!=null&&s.marT&&(o.props.marT=HQ(parseInt(s?.marT))),s!=null&&s.marL&&(o.props.marL=HQ(parseInt(s?.marL))),s!=null&&s.marR&&(o.props.marR=HQ(parseInt(s?.marR))),s!=null&&s.anchor&&(o.props.anchor=s?.anchor);var c=(0,E.get)(e,[`a:tcPr`]);(0,E.get)(c,[`a:lnR`])&&(o.props.border.right=a$((0,E.get)(c,[`a:lnR`]),this.theme,this.ctx)),(0,E.get)(c,[`a:lnL`])&&(o.props.border.left=a$((0,E.get)(c,[`a:lnL`]),this.theme,this.ctx)),(0,E.get)(c,[`a:lnT`])&&(o.props.border.top=a$((0,E.get)(c,[`a:lnT`]),this.theme,this.ctx)),(0,E.get)(c,[`a:lnB`])&&(o.props.border.bottom=a$((0,E.get)(c,[`a:lnB`]),this.theme,this.ctx)),(t=e?.attrs)!=null&&t.rowSpan&&(o.props.rowSpan=parseInt(e.attrs.rowSpan)),(n=e?.attrs)!=null&&n.gridSpan&&(o.props.gridSpan=parseInt(e.attrs.gridSpan)),(r=e?.attrs)!=null&&r.vMerge&&(o.props.vMerge=e.attrs.vMerge===`1`),(i=e?.attrs)!=null&&i.hMerge&&(o.props.hMerge=e.attrs.hMerge===`1`);var l=(0,E.get)(e,[`a:tcPr`,`a:solidFill`]);l&&(o.props.background=JQ(l,this.theme,this.ctx));var u=(0,E.get)((0,E.get)(e,[`a:txBody`]),[`a:p`]);return Array.isArray(u)||(u=[u]),o.paragraphs=u.map((function(e){return a._parseParagraph(e)})),o},t.prototype._parseParagraph=function(e){var t=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},r=(0,E.get)(e,[`a:pPr`])||{};n.props=this._formatPPr(r);var i=(0,E.get)(e,[`a:endParaRPr`]);n.endParaRProps=this._formatRPr(i);var a=(0,E.get)(e,[`a:r`])||[];Array.isArray(a)||(a=[a]);var o=(0,E.get)(e,[`a:br`])||[];return Array.isArray(o)||(o=[o]),(a=a.concat(o.map((function(e){return f({isBr:!0},e)})))).sort((function(e,t){return(0,E.get)(e,[`attrs`,`order`])-(0,E.get)(t,[`attrs`,`order`])})),n.rows=a.map((function(e){return t._parseRow(e)})),n},t.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:``},n=(0,E.get)(e,[`a:rPr`])||{};return t.props=this._formatRPr(n),t.text=(0,E.get)(e,`a:t`)||``,t},t.prototype._formatPPr=function(e){var t={},n=(0,E.get)(e,`attrs`)||{};return Object.keys(n).forEach((function(e){e===`algn`&&(t.align=n[e])})),(0,E.get)(e,[`a:lnSpc`,`a:spcPct`,`attrs`,`val`])&&(t.lineHeight=parseInt(e[`a:lnSpc`][`a:spcPct`].attrs.val)/1e5),(0,E.get)(e,[`a:buAutoNum`,`attrs`,`type`])&&(t.buAutoNum=e[`a:buAutoNum`].attrs.type),(0,E.get)(e,[`a:buChar`,`attrs`,`char`])&&(t.buChar=e[`a:buChar`].attrs.char),(0,E.get)(e,[`a:spcBef`,`a:spcPts`,`attrs`,`val`])&&(t.spaceBefore=WQ(parseInt(e[`a:spcBef`][`a:spcPts`].attrs.val))),(0,E.get)(e,[`a:spcAft`,`a:spcPts`,`attrs`,`val`])&&(t.spaceAfter=WQ(parseInt(e[`a:spcAft`][`a:spcPts`].attrs.val))),t},t.prototype._formatRPr=function(e){var t={},n=(0,E.get)(e,`attrs`)||{};Object.keys(n).forEach((function(e){switch(e){case`sz`:t.size=parseInt(n[e])/100;break;case`b`:t.bold=n[e]===`1`;break;case`i`:t.italic=n[e]===`1`;break;case`u`:t.underline=n[e];break;case`strike`:t.strike=n[e];break;case`order`:case`dirty`:break;default:t[e]=n[e]}}));var r=(0,E.get)(e,`a:solidFill`);r&&(t.color=JQ(r,this.theme,this.ctx));var i=(0,E.get)(e,`a:highlight`);return i&&(t.background=JQ(i,this.theme,this.ctx)),t.typeface=(0,E.get)(e,[`a:ea`,`attrs`,`typeface`]),t},t.prototype._isLastCol=function(e,t){if(t===e.length-1)return!0;for(var n=t+1;n<e.length;n++)if(!e[n].props?.hMerge&&!e[n].props?.vMerge)return!1;return!0},t.prototype._isBandRow=function(e){return this.props?.firstRow?e%2==1:e%2==0},t.prototype._isBandCol=function(e){return this.props?.firstCol?e%2==1:e%2==0},t.prototype._parseInheritStyles=function(){var e=this,t=this.tableStyles?.wholeTbl?.tcStyle,n=this.tableStyles?.wholeTbl?.tcTxStyle,r=this.slideMaster.defaultTextStyle?.lvl1?.props,i=this.slideMaster.defaultTextStyle?.lvl1?.defRPr;this.tr.forEach((function(a,o){a.td.forEach((function(s,c){var l=f(f({},r),t),u=f(f({},i),n);e.props.firstRow&&o===0?(l=f(f(f({},l),e.tableStyles?.firstRow?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.firstRow?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.firstRow?.tcTxStyle)):e.props.lastRow&&o===e.tr.length-1?(l=f(f(f({},l),e.tableStyles?.lastRow?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.lastRow?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.lastRow?.tcTxStyle)):e.props.firstCol&&c===0?(l=f(f(f({},l),e.tableStyles?.firstCol?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.firstCol?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.firstCol?.tcTxStyle)):e.props.lastCol&&e._isLastCol(a.td,c)?(l=f(f(f({},l),e.tableStyles?.lastCol?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.lastCol?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.lastCol?.tcTxStyle)):(e.props.bandRow&&(e._isBandRow(o)?(l=f(f(f({},l),e.tableStyles?.band1H?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.band1H?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.band1H?.tcTxStyle)):(l=f(f(f({},l),e.tableStyles?.band2V?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.band2V?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.band2V?.tcTxStyle))),e.props.bandCol&&(e._isBandCol(c)?(l=f(f(f({},l),e.tableStyles?.band1V?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.band1V?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.band1V?.tcTxStyle)):(l=f(f(f({},l),e.tableStyles?.band2H?.tcStyle),{border:f(f({},l?.border),e.tableStyles?.band2H?.tcStyle?.border)}),u=f(f({},u),e.tableStyles?.band2H?.tcTxStyle)))),s.inheritTcStyle=l,s.inheritTcTxStyle=u}))}))},t}(r$),l$=function(){function e(e,t,n,r){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=(0,E.get)(e,[`attrs`,`order`]),this.pptx=t,this.ctx=n,this.source=e,this.group=r,this.source[`p:grpSpPr`]){var i=(0,E.get)(this.source,[`p:grpSpPr`,`a:xfrm`]);if(i&&(this.offset={x:Math.round(this.group&&this.pptx.wps?UQ(parseInt(i[`a:off`].attrs.x)):HQ(parseInt(i[`a:off`].attrs.x))),y:Math.round(this.group&&this.pptx.wps?UQ(parseInt(i[`a:off`].attrs.y)):HQ(parseInt(i[`a:off`].attrs.y)))},this.chOffset={x:Math.round(VQ(i[`a:chOff`].attrs.x)===`point`||this.pptx.wps?UQ(parseInt(i[`a:chOff`].attrs.x)):HQ(parseInt(i[`a:chOff`].attrs.x))),y:Math.round(VQ(i[`a:chOff`].attrs.y)===`point`||this.pptx.wps?UQ(parseInt(i[`a:chOff`].attrs.y)):HQ(parseInt(i[`a:chOff`].attrs.y)))},this.chExtend={w:Math.round(VQ(i[`a:chExt`].attrs.cx)===`point`||this.pptx.wps?UQ(parseInt(i[`a:chExt`].attrs.cx)):HQ(parseInt(i[`a:chExt`].attrs.cx))),h:Math.round(VQ(i[`a:chExt`].attrs.cy)===`point`||this.pptx.wps?UQ(parseInt(i[`a:chExt`].attrs.cy)):HQ(parseInt(i[`a:chExt`].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?UQ(parseInt(i[`a:ext`].attrs.cx)):HQ(parseInt(i[`a:ext`].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?UQ(parseInt(i[`a:ext`].attrs.cy)):HQ(parseInt(i[`a:ext`].attrs.cy)))},this.rotate=GQ(parseInt((0,E.get)(i,`attrs.rot`,0))),this.flipV=(0,E.get)(i,`attrs.flipV`)===`1`,this.flipH=(0,E.get)(i,`attrs.flipH`)===`1`),r){var a=r.extend,o=r.chExtend,s=r.chOffset,c=a.w/o.w,l=a.h/o.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*l,this.offset.x=(this.offset.x-s.x)*c,this.offset.y=(this.offset.y-s.y)*l}}this._parseBackground(),this._parseNodes()}return e.prototype.getBackground=function(){return this.background&&this.background.type!==`none`?this.background:this.group?this.group.getBackground():void 0},e.prototype._parseBackground=function(){var e=(0,E.get)(this.source,[`p:grpSpPr`]);e&&e[`a:solidFill`]?this.background=JQ(e[`a:solidFill`],this.ctx.theme,this.ctx):e&&e[`a:gradFill`]?this.background=XQ(e[`a:gradFill`],this.ctx.theme,this.ctx):e&&e[`a:blipFill`]&&(this.background=YQ(e[`a:blipFill`],this.pptx,this.ctx))},e.prototype._parseNodes=function(){var e=this.source;m$(this.nodes,e,this.pptx,this.ctx,this)},e}(),u$=function(e){function t(t,n,r,i){var a=e.call(this,t,r,i)||this;return a.nodes=[],a.pptx=n,a}return d(t,e),t.prototype.parseNode=function(){return p(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,c;return m(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),(e=(0,E.get)(this.source,[`a:graphic`,`a:graphicData`,`dgm:relIds`,`attrs`,`r:dm`]))&&this.ctx.rels[e]?(t=this.ctx.rels[e].target,r=zQ,[4,this.pptx.getXmlByPath(t)]):[2];case 1:return n=r.apply(void 0,[l.sent()]),(i=(0,E.get)(n,[`dgm:dataModel`,`dgm:extLst`,`a:ext`,`dsp:dataModelExt`,`attrs`,`relId`]))&&this.ctx.rels[i]?(a=this.ctx.rels[i].target,[4,this.pptx.getXmlByPath(a)]):[2];case 2:return o=(o=l.sent()).replace(/dsp:/g,`p:`),s=zQ(o),c=(0,E.get)(s,[`p:drawing`,`p:spTree`]),m$(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return l.sent(),[3,4];case 4:return[2]}}))}))},t}(r$),d$=function(e){function t(t,n,r,i){var a=e.call(this,t,r,i)||this;return a.options={title:{},tooltip:{},legend:{},series:[],color:[]},a.userDrawn=!0,a.pptx=n,a}return d(t,e),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.parseNode=function(){return p(this,void 0,void 0,(function(){var e,t,n,r,i,a;return m(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),(e=(0,E.get)(this.source,[`a:graphic`,`a:graphicData`,`c:chart`,`attrs`,`r:id`]))&&this.ctx.rels[e]?(t=this.ctx.rels[e].target,r=zQ,[4,this.pptx.getXmlByPath(t)]):[2];case 1:return n=r.apply(void 0,[o.sent()]),i=(0,E.get)(n,[`c:chartSpace`,`c:chart`]),a=(0,E.get)(i,[`c:plotArea`]),(0,E.get)(a,[`c:lineChart`])?this.parseLine((0,E.get)(a,[`c:lineChart`]),i):(0,E.get)(a,[`c:line3DChart`])?this.parseLine((0,E.get)(a,[`c:line3DChart`]),i):(0,E.get)(a,[`c:areaChart`])?this.parseAreaLine((0,E.get)(a,[`c:areaChart`]),i):(0,E.get)(a,[`c:area3DChart`])?this.parseAreaLine((0,E.get)(a,[`c:area3DChart`]),i):(0,E.get)(a,[`c:barChart`])?this.parseBar((0,E.get)(a,[`c:barChart`]),i):(0,E.get)(a,[`c:bar3DChart`])?this.parseBar((0,E.get)(a,[`c:bar3DChart`]),i):(0,E.get)(a,[`c:pieChart`])?this.parsePie((0,E.get)(a,[`c:pieChart`])):(0,E.get)(a,[`c:pie3DChart`])?this.parsePie((0,E.get)(a,[`c:pie3DChart`])):(0,E.get)(a,[`c:doughnutChart`])&&this.parseDoughnutChart((0,E.get)(a,[`c:doughnutChart`])),[3,3];case 2:return o.sent(),[3,3];case 3:return[2]}}))}))},t.prototype.parseAreaLine=function(e,t){this.parseLine(e,t),this.options.series=this.options.series.map((function(e){return e.areaStyle={},e}))},t.prototype.parseLine=function(e,t){var n=(0,E.get)(e,[`c:ser`]);Array.isArray(n)||(n=[n]),this.options.title={top:`top`,left:`center`,text:this.parseChartTitle((0,E.get)(t,[`c:title`]))},this.options.xAxis={type:`category`,data:this.getCategory(n[0])},this.options.yAxis={type:`value`},this.options.series=this.parseLineSeries(n,e),this.options.color=this.parseLineColors(n),this.options.legend={bottom:`bottom`,left:`center`},(0,E.get)(e,[`c:grouping`,`attrs`,`val`])===`percentStacked`&&(this.options.tooltip.valueFormatter=function(e){return(100*e).toFixed(2)+`%`})},t.prototype.parseBar=function(e,t){var n=(0,E.get)(e,[`c:ser`]);Array.isArray(n)||(n=[n]),this.options.title={top:`top`,left:`center`,text:this.parseChartTitle((0,E.get)(t,[`c:title`]))},(0,E.get)(e,[`c:barDir`,`attrs`,`val`])===`bar`?(this.options.yAxis={type:`category`,data:this.getCategory(n[0])},this.options.xAxis={type:`value`}):(this.options.xAxis={type:`category`,data:this.getCategory(n[0])},this.options.yAxis={type:`value`}),this.options.series=this.parseBarSeries(n,e),this.options.color=this.parseBarColors(n),this.options.legend={bottom:`bottom`,left:`center`},(0,E.get)(e,[`c:grouping`,`attrs`,`val`])===`percentStacked`&&(this.options.tooltip.valueFormatter=function(e){return(100*e).toFixed(2)+`%`})},t.prototype.parsePie=function(e){var t=(0,E.get)(e,[`c:ser`]);this.options.title={top:`top`,left:`center`,text:this.parsePieTitle(t)},this.options.color=this.parsePieColors(t),this.options.series=[this.parsePieSeries(t,e)],this.options.legend={bottom:`bottom`,left:`center`}},t.prototype.parseDoughnutChart=function(e){var t=(0,E.get)(e,[`c:ser`]);this.options.title.text=this.parsePieTitle(t),this.options.color=this.parsePieColors(t),this.options.series=[this.parsePieSeries(t,e)],this.options.legend={bottom:`bottom`,left:`center`}},t.prototype.parsePieTitle=function(e){return(0,E.get)(e,[`c:tx`,`c:strRef`,`c:strCache`,`c:pt`,`c:v`])},t.prototype.parseChartTitle=function(e){var t=(0,E.get)(e,[`c:tx`,`c:rich`,`a:p`]);return Array.isArray(t)||(t=[t]),t.map((function(e){var t=(0,E.get)(e,[`a:r`]);return Array.isArray(t)||(t=[t]),t.map((function(e){return(0,E.get)(e,[`a:t`])||``})).join(``)})).join(``)||`图表标题`},t.prototype.parseBarColors=function(e){var t=this;return e.map((function(e){return n$(JQ((0,E.get)(e,[`c:spPr`,`a:solidFill`]),t.theme,t.ctx))}))},t.prototype.parseLineColors=function(e){var t=this;return e.map((function(e){return n$(JQ((0,E.get)(e,[`c:spPr`,`a:ln`,`a:solidFill`])||(0,E.get)(e,[`c:spPr`,`a:solidFill`]),t.theme,t.ctx))}))},t.prototype.parsePieColors=function(e){var t=this,n=[],r=(0,E.get)(e,[`c:dPt`]);return Array.isArray(r)||(r=[r]),r.forEach((function(e){n.push(n$(JQ((0,E.get)(e,[`c:spPr`,`a:solidFill`]),t.theme,t.ctx)))})),n},t.prototype.parsePieSeries=function(e,t){var n={type:`pie`,radius:`80%`,startAngle:90,data:[]};(0,E.get)(t,[`c:holeSize`,`attrs`,`val`])&&(n.radius=[`${.8*(0,E.get)(t,[`c:holeSize`,`attrs`,`val`])}%`,`80%`]);var r=(0,E.get)(t,[`c:firstSliceAng`,`attrs`,`val`]);r&&(n.startAngle=90-r);for(var i=this.getCategory(e),a=this.getVal(e),o=0;o<i.length;o++)n.data.push({name:i[o],value:a[o]});return n},t.prototype.parseBarSeries=function(e,t){var n,r=this,i=(0,E.get)(t,[`c:grouping`,`attrs`,`val`]);i===`stacked`?n=`Ad`:i===`percentStacked`&&(n=`total`);var a=e.map((function(e){return{type:`bar`,name:(0,E.get)(e,[`c:tx`,`c:strRef`,`c:strCache`,`c:pt`,`c:v`]),data:r.getVal(e),stack:n}}));if(i===`percentStacked`){var o=[];a.forEach((function(e,t){o=t===0?h([],e.data,!0):o.map((function(t,n){return t+e.data[n]}))})),a.forEach((function(e){e.data=e.data.map((function(e,t){return o[t]<=0?0:e/o[t]}))}))}return a},t.prototype.parseLineSeries=function(e,t){var n,r=this,i=(0,E.get)(t,[`c:grouping`,`attrs`,`val`]);i===`stacked`?n=`Ad`:i===`percentStacked`&&(n=`total`);var a=e.map((function(e){return{type:`line`,name:(0,E.get)(e,[`c:tx`,`c:strRef`,`c:strCache`,`c:pt`,`c:v`]),data:r.getVal(e),stack:n}}));if(n===`total`){var o=[];a.forEach((function(e,t){o=t===0?h([],e.data,!0):o.map((function(t,n){return t+e.data[n]}))})),a.forEach((function(e){e.data=e.data.map((function(e,t){return o[t]<=0?0:e/o[t]}))}))}return a},t.prototype.getCategory=function(e){if((0,E.get)(e,[`c:cat`,`c:strRef`])){var t=(0,E.get)(e,[`c:cat`,`c:strRef`,`c:strCache`,`c:pt`]);return Array.isArray(t)||(t=[t]),t.map((function(e){return(0,E.get)(e,[`c:v`])}))}if((0,E.get)(e,[`c:cat`,`c:numRef`]))return t=(0,E.get)(e,[`c:cat`,`c:numRef`,`c:numCache`,`c:pt`]),Array.isArray(t)||(t=[t]),t.map((function(e){return(0,E.get)(e,[`c:v`])}))},t.prototype.getVal=function(e){var t=(0,E.get)(e,[`c:val`,`c:numRef`,`c:numCache`,`c:pt`]);return Array.isArray(t)||(t=[t]),t.map((function(e){return+(0,E.get)(e,[`c:v`])}))},t}(r$);function f$(e){var t={},n=(0,E.get)(e,`attrs`)||{};return Object.keys(n).forEach((function(e){switch(e){case`algn`:t.align=n[e];break;case`marL`:t.marginLeft=HQ(parseInt(n[e]));break;case`indent`:t.indent=HQ(parseInt(n[e]));break;case`lvl`:t.level=n[e]}})),(0,E.get)(e,[`a:lnSpc`,`a:spcPct`,`attrs`,`val`])&&(t.lineHeight=parseInt(e[`a:lnSpc`][`a:spcPct`].attrs.val)/1e5),t}function p$(e,t,n){var r={},i=(0,E.get)(e,`attrs`)||{};Object.keys(i).forEach((function(e){switch(e){case`sz`:r.size=parseInt(i[e])/100;break;case`b`:r.bold=i[e]===`1`;break;case`i`:r.italic=i[e]===`1`;break;case`u`:r.underline=i[e];break;case`strike`:r.strike=i[e];break;case`order`:case`dirty`:break;default:r[e]=i[e]}}));var a=(0,E.get)(e,`a:solidFill`);return a&&(r.color=JQ(a,t,n)),r}function m$(e,t,n,r,i){return p(this,void 0,void 0,(function(){var a,o,s,c,l,u,d,f,p,h,g,_,v,y,b,x,S,C,w,T,D;return m(this,(function(m){switch(m.label){case 0:for(s in o=[],a=t)o.push(s);c=0,m.label=1;case 1:if(!(c<o.length))return[3,17];if(!((s=o[c])in a))return[3,16];switch(l=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(u=Array.isArray(t[l])?t[l]:[t[l]],T=0;T<u.length;T++)v=u[T],e.push(new o$(v,n,r,i));return[3,16];case 3:for(d=Array.isArray(t[l])?t[l]:[t[l]],T=0;T<d.length;T++)f=d[T],p=f[`p:blipFill`][`a:blip`].attrs[`r:embed`],h=r.rels[p].target,g=new s$(h,f,n,r,i),e.push(g);return[3,16];case 4:for(_=Array.isArray(t[l])?t[l]:[t[l]],T=0;T<_.length;T++)v=_[T],e.push(new o$(v,n,r,i));return[3,16];case 5:y=Array.isArray(t[l])?t[l]:[t[l]],T=0,m.label=6;case 6:if(!(T<y.length))return[3,13];switch(b=y[T],x=(0,E.get)(b,[`a:graphic`,`a:graphicData`,`attrs`,`uri`]),x){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 e.push(new c$(b,n,r,i)),[3,12];case 8:return[4,(S=new u$(b,n,r,i)).parseNode()];case 9:return m.sent(),e.push(S),[3,12];case 10:return[4,(C=new d$(b,n,r,i)).parseNode()];case 11:return m.sent(),e.push(C),[3,12];case 12:return T++,[3,6];case 13:return[3,16];case 14:for(w=Array.isArray(t[l])?t[l]:[t[l]],T=0;T<w.length;T++)D=w[T],e.push(new l$(D,n,r,i));return[3,16];case 15:return[3,16];case 16:return c++,[3,1];case 17:return[2]}}))}))}var h$=function(){function e(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(e.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(e.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_relsPath",{get:function(){return this.name.replace(`slides/slide`,`slides/_rels/slide`)+`.rels`},enumerable:!1,configurable:!0}),e.prototype.load=function(){return p(this,void 0,void 0,(function(){return m(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]}}))}))},e.prototype._loadRels=function(){return p(this,void 0,void 0,(function(){var e,t,n,r=this;return m(this,(function(i){switch(i.label){case 0:return t=zQ,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=(0,E.get)(e,[`Relationships`,`Relationship`])||[],Array.isArray(n)||(n=[n]),n.forEach((function(e){switch((0,E.get)(e,[`attrs`,`Type`])){case`http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout`:var t=e.attrs.Target.replace(`../`,`ppt/`);t.startsWith(`/ppt`)&&(t=t.substr(1)),r.slideLayout=r.pptx.getSlideLayout(t);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 n=e.attrs.Target.replace(`../`,`ppt/`);n.startsWith(`/ppt`)&&(n=n.substr(1)),r.rels[e.attrs.Id]={type:e.attrs.Type.split(`/`).pop(),target:n}}})),[2]}}))}))},e.prototype._loadBackground=function(){var e=(0,E.get)(this.source,[`p:sld`,`p:cSld`,`p:bg`,`p:bgPr`]);e&&e[`a:solidFill`]?this.background=JQ(e[`a:solidFill`],this.theme,this):e&&e[`a:gradFill`]?this.background=XQ(e[`a:gradFill`],this.theme,this):e&&e[`a:blipFill`]&&(this.background=YQ(e[`a:blipFill`],this.pptx,this))},e.prototype._loadNodes=function(){return p(this,void 0,void 0,(function(){var e;return m(this,(function(t){switch(t.label){case 0:return e=(0,E.get)(this.source,[`p:sld`,`p:cSld`,`p:spTree`]),[4,m$(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}}))}))},e.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},e.prototype.getNodeInheritAttrsByType=function(e,t){return(0,E.get)(this.slideLayout.getNodeByType(e).source,t)||this.slideLayout.getNodeInheritAttrsByType(e,t)},e.prototype.getNodeInheritAttrsByIdx=function(e,t){return(0,E.get)(this.slideLayout.getNodeByIdx(e).source,t)||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},e}(),g$=function(){function e(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(e.prototype,"_relsPath",{get:function(){return this.name.replace(`slideLayouts/slideLayout`,`slideLayouts/_rels/slideLayout`)+`.rels`},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.load=function(){return p(this,void 0,void 0,(function(){return m(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]}}))}))},e.prototype._loadRels=function(){return p(this,void 0,void 0,(function(){var e,t,n,r=this;return m(this,(function(i){switch(i.label){case 0:return t=zQ,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=(0,E.get)(e,[`Relationships`,`Relationship`])||[],Array.isArray(n)||(n=[n]),n.forEach((function(e){switch((0,E.get)(e,[`attrs`,`Type`])){case`http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster`:var t=e.attrs.Target.replace(`../`,`ppt/`);t.startsWith(`/ppt`)&&(t=t.substr(1)),r.slideMaster=r.pptx.getSlideMaster(t);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 n=e.attrs.Target.replace(`../`,`ppt/`);n.startsWith(`/ppt`)&&(n=n.substr(1)),r.rels[e.attrs.Id]={type:e.attrs.Type.split(`/`).pop(),target:n}}})),[2]}}))}))},e.prototype._loadBackground=function(){return p(this,void 0,void 0,(function(){var e;return m(this,(function(t){return(e=(0,E.get)(this.source,[`p:sldLayout`,`p:cSld`,`p:bg`,`p:bgPr`]))&&e[`a:solidFill`]?this.background=JQ(e[`a:solidFill`],this.theme):e&&e[`a:gradFill`]?this.background=XQ(e[`a:gradFill`],this.theme,this):e&&e[`a:blipFill`]&&(this.background=YQ(e[`a:blipFill`],this.pptx,this)),[2]}))}))},e.prototype._loadNodes=function(){return p(this,void 0,void 0,(function(){var e;return m(this,(function(t){return e=(0,E.get)(this.source,[`p:sldLayout`,`p:cSld`,`p:spTree`]),m$(this.nodes,e,this.pptx,this),[2]}))}))},e.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},e.prototype.getNodeByType=function(e){return this.nodes.find((function(t){return t.type===e}))},e.prototype.getNodeByIdx=function(e){return this.nodes.find((function(t){return t.idx===e}))},e.prototype.getNodeInheritAttrsByType=function(e,t){var n=this.slideMaster.getNodeByType(e);return n&&(0,E.get)(n.source,t)},e.prototype.getNodeInheritAttrsByIdx=function(e,t){var n=this.slideMaster.getNodeByIdx(e);return n&&(0,E.get)(n.source,t)},e}(),_$=function(){function e(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(e.prototype,"_relsPath",{get:function(){return this.name.replace(`slideMasters/slideMaster`,`slideMasters/_rels/slideMaster`)+`.rels`},enumerable:!1,configurable:!0}),e.prototype.load=function(){return p(this,void 0,void 0,(function(){return m(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]}}))}))},e.prototype._parseRels=function(){return p(this,void 0,void 0,(function(){var e,t,n,r=this;return m(this,(function(i){switch(i.label){case 0:return t=zQ,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[i.sent()]),n=(0,E.get)(e,[`Relationships`,`Relationship`])||[],Array.isArray(n)||(n=[n]),n.forEach((function(e){switch((0,E.get)(e,[`attrs`,`Type`])){case`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`:var t=e.attrs.Target.replace(`../`,`ppt/`);t.startsWith(`/ppt`)&&(t=t.substr(1)),r.theme=r.pptx.getTheme(t);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 n=e.attrs.Target.replace(`../`,`ppt/`);n.startsWith(`/ppt`)&&(n=n.substr(1)),r.rels[e.attrs.Id]={type:e.attrs.Type.split(`/`).pop(),target:n}}})),[2]}}))}))},e.prototype._parseColorMap=function(){this.colorMap=(0,E.omit)((0,E.get)(this.source,[`p:sldMaster`,`p:clrMap`,`attrs`])||{},[`order`])},e.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},e.prototype._parseBackground=function(){var e=(0,E.get)(this.source,[`p:sldMaster`,`p:cSld`,`p:bg`,`p:bgPr`]),t=(0,E.get)(this.source,[`p:sldMaster`,`p:cSld`,`p:bg`,`p:bgRef`]);e&&e[`a:solidFill`]?this.background=JQ(e[`a:solidFill`],this.theme,this):e&&e[`a:gradFill`]?this.background=XQ(e[`a:gradFill`],this.theme,this):e&&e[`a:blipFill`]?this.background=YQ(e[`a:blipFill`],this.pptx,this):t&&(this.background=JQ(t,this.theme,this))},e.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach((function(n){if(n.startsWith(`a:`)&&n.endsWith(`pPr`)){var r=n.substr(2,n.length-5),i=(0,E.get)(t[n],[`a:defRPr`]);e.defaultTextStyle[r]={props:f$(t[n]),defRPr:p$(i,e.theme,e)}}}))},e.prototype._parseTextStyles=function(){var e=this,t=(0,E.get)(this.source,[`p:sldMaster`,`p:txStyles`]);[`titleStyle`,`bodyStyle`,`otherStyle`].forEach((function(n){var r=e.textStyles[n],i=(0,E.get)(t,`p:${n}`)||{};Object.keys(i).forEach((function(t){if(t.startsWith(`a:`)&&t.endsWith(`pPr`)){var n=t.substr(2,t.length-5);r[n]={},r[n].props=f$(i[t]);var a=(0,E.get)(i[t],[`a:defRPr`]);r[n].defRPr=p$(a,e.theme,e)}}))}))},e.prototype._parseTableStyles=function(){var e=this,t={},n=(0,E.get)(this.pptx.tableStyles,[`a:tblStyleLst`,`a:tblStyle`])||[];Array.isArray(n)||(n=[n]),n.forEach((function(n){var r=(0,E.get)(n,[`attrs`,`styleId`]);t[r]={},Object.keys(n).forEach((function(i){if(i.startsWith(`a:`)){var a=i.substr(2);t[r][a]={};var o=(0,E.get)(n[i],[`a:tcStyle`]);if(o){var s={};(0,E.get)(o,[`a:fill`,`a:solidFill`])&&(s.background=JQ((0,E.get)(o,[`a:fill`,`a:solidFill`]),e.theme,e));var c=(0,E.get)(o,`a:tcBdr`);c&&(s.border={},Object.keys(c).forEach((function(t){if(t.startsWith(`a:`)){var n=t.substr(2),r=(0,E.get)(c[t],[`a:ln`]);s.border[n]=a$(r,e.theme,e)}}))),t[r][a].tcStyle=s}var l=(0,E.get)(n[i],[`a:tcTxStyle`]);if(l){var u={};u.color=JQ(l,e.theme,e),(0,E.get)(l,[`attrs`,`b`])===`on`&&(u.bold=!0),t[r][a].tcTxStyle=u}}}))})),this.tableStyles=t},e.prototype._loadNodes=function(){return p(this,void 0,void 0,(function(){var e;return m(this,(function(t){return e=(0,E.get)(this.source,[`p:sldMaster`,`p:cSld`,`p:spTree`]),m$(this.nodes,e,this.pptx,this),[2]}))}))},e.prototype.getNodeByType=function(e){return this.nodes.find((function(t){return t.type===e}))},e.prototype.getNodeByIdx=function(e){return this.nodes.find((function(t){return t.idx===e}))},e.prototype.getNodeInheritAttrsByType=function(e,t){},e.prototype.getNodeInheritAttrsByIdx=function(e,t){},e}(),v$=function(){function e(e,t,n){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return e.prototype._parseClrScheme=function(){var e=(0,E.get)(this.source,[`a:theme`,`a:themeElements`,`a:clrScheme`]);for(var t in e)if(t.startsWith(`a:`)){var n=t.substring(2),r=(0,E.get)(e[t],[`a:sysClr`,`attrs`,`lastClr`])||(0,E.get)(e[t],[`a:srgbClr`,`attrs`,`val`]);this.clrScheme[n]=`#`+r}},e.prototype._parseLineStyleLst=function(){var e=this,t=(0,E.get)(this.source,[`a:theme`,`a:themeElements`,`a:fmtScheme`,`a:lnStyleLst`,`a:ln`])||[];this.borderScheme=t.map((function(t){var n={color:{}};return(0,E.get)(t,[`attrs`,`w`])&&(n.width=HQ(parseInt((0,E.get)(t,[`attrs`,`w`])))),(0,E.get)(t,[`attrs`,`algn`])&&(n.algn=(0,E.get)(t,[`attrs`,`algn`])),(0,E.get)(t,[`attrs`,`cap`])&&(n.cap=(0,E.get)(t,[`attrs`,`cap`])),(0,E.get)(t,[`attrs`,`cmpd`])&&(n.cmpd=(0,E.get)(t,[`attrs`,`cmpd`])),(0,E.get)(t,[`a:miter`,`attrs`,`lim`])&&(n.miterLim=HQ(parseInt((0,E.get)(t,[`a:miter`,`attrs`,`lim`])))),(0,E.get)(t,[`a:prstDash`,`attrs`,`val`])&&(n.type=(0,E.get)(t,[`a:prstDash`,`attrs`,`val`])),(0,E.get)(t,[`a:solidFill`])&&(n.color=JQ((0,E.get)(t,[`a:solidFill`]),e)),n}))},e.prototype.getColor=function(e){if(e!==`phClr`)return this.clrScheme[e]||this.defaultColor},e.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},e}(),y$=function(){function e(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return e.prototype.load=function(e){return p(this,void 0,void 0,(function(){var t,n;return m(this,(function(r){switch(r.label){case 0:return t=new T.default,n=this,[4,t.loadAsync(e)];case 1:return n._zipContents=r.sent(),[4,this._loadThumbnail()];case 2:return r.sent(),[4,this._loadMedia()];case 3:return r.sent(),[4,this._loadPresentation()];case 4:return r.sent(),[4,this._loadContentTypes()];case 5:return r.sent(),[2]}}))}))},e.prototype._loadThumbnail=function(){return p(this,void 0,void 0,(function(){var e;return m(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]}}))}))},e.prototype._loadPresentation=function(){return p(this,void 0,void 0,(function(){var e,t,n,r,i,a;return m(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this._zipContents.files[`ppt/presentation.xml`].async(`text`)];case 1:return e=o.sent(),t=zQ(e),n=t[`p:presentation`][`p:sldSz`].attrs,this.width=HQ(parseInt(n.cx)),this.height=HQ(parseInt(n.cy)),this.defaultTextStyleSource=(0,E.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:r=o.sent(),i=zQ(r),a=(0,E.get)(i,[`Properties`,`Application`]),this.wps=a?.includes(`WPS`)||!1,o.label=3;case 3:return[3,5];case 4:return o.sent(),[3,5];case 5:return[2]}}))}))},e.prototype._loadContentTypes=function(){return p(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,c,l,u,d,f,p,h,g,_,v,y,b,x;return m(this,(function(m){switch(m.label){case 0:return m.trys.push([0,22,,23]),t=zQ,[4,this._zipContents.files[`[Content_Types].xml`].async(`text`)];case 1:if(e=t.apply(void 0,[m.sent()]),n=e.Types.Override,!(r=n.filter((function(e){return e.attrs.ContentType===`application/vnd.openxmlformats-officedocument.theme+xml`}))))return[3,5];i=0,a=r,m.label=2;case 2:return i<a.length?(o=a[i],v=o.attrs.PartName.substr(1),s=zQ,[4,this._zipContents.files[v].async(`text`)]):[3,5];case 3:y=s.apply(void 0,[m.sent()]),this.themes.push(new v$(v,y,this)),m.label=4;case 4:return i++,[3,2];case 5:return(c=n.find((function(e){return e.attrs.ContentType===`application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml`})))?(v=c.attrs.PartName.substr(1),l=zQ,[4,this._zipContents.files[v].async(`text`)]):[3,7];case 6:y=l.apply(void 0,[m.sent()]),this.tableStyles=y,m.label=7;case 7:u=n.filter((function(e){return e.attrs.ContentType===`application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml`})),_=0,m.label=8;case 8:return _<u.length?(v=u[_].attrs.PartName.substr(1),d=zQ,[4,this._zipContents.files[v].async(`text`)]):[3,11];case 9:y=d.apply(void 0,[m.sent()]),this.slideMaster.push(new _$(v,y,this)),m.label=10;case 10:return _++,[3,8];case 11:f=n.filter((function(e){return e.attrs.ContentType===`application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml`})),_=0,m.label=12;case 12:return _<f.length?(v=f[_].attrs.PartName.substr(1),p=zQ,[4,this._zipContents.files[v].async(`text`)]):[3,16];case 13:return y=p.apply(void 0,[m.sent()]),[4,(h=new g$(v,y,this)).load()];case 14:m.sent(),this.slideLayouts.push(h),m.label=15;case 15:return _++,[3,12];case 16:g=n.filter((function(e){return e.attrs.ContentType===`application/vnd.openxmlformats-officedocument.presentationml.slide+xml`})),_=0,m.label=17;case 17:return _<g.length?(v=g[_].attrs.PartName.substr(1),b=zQ,[4,this._zipContents.files[v].async(`text`)]):[3,21];case 18:return y=b.apply(void 0,[m.sent()]),[4,(x=new h$(v,y,this)).load()];case 19:m.sent(),this.slides.push(x),m.label=20;case 20:return _++,[3,17];case 21:return this.slides.sort((function(e,t){return e.index-t.index})),[3,23];case 22:return m.sent(),[3,23];case 23:return[2]}}))}))},e.prototype._loadMedia=function(){return p(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,c,l,u,d,f,p=this;return m(this,(function(m){switch(m.label){case 0:e=Object.keys(this._zipContents.files).filter((function(e){return e.startsWith(`ppt/media/image`)})).map((function(e){return p._zipContents.files[e]})),t=0,n=e,m.label=1;case 1:return t<n.length?(r=n[t],i=function(e){var t;switch(e){case`jpg`:case`jpeg`:t=`image/jpeg`;break;case`png`:t=`image/png`;break;case`gif`:t=`image/gif`;break;case`emf`:t=`image/x-emf`;break;case`wmf`:t=`image/x-wmf`;break;default:t=`image/*`}return t}((h=r.name).substr(2+(~-h.lastIndexOf(`.`)>>>0))),[4,r.async(`base64`)]):[3,4];case 2:a=m.sent(),this.medias[r.name]=`data:${i};base64,${a}`,m.label=3;case 3:return t++,[3,1];case 4:o=Object.keys(this._zipContents.files).filter((function(e){return e.startsWith(`ppt/media/media`)&&[`mp3`,`wav`,`ogg`,`mp4`,`webm`].includes(e.split(`.`).pop().toLowerCase())})).map((function(e){return p._zipContents.files[e]})),s=0,c=o,m.label=5;case 5:return s<c.length?(l=c[s],u=l.name.split(`.`).pop().toLowerCase(),[4,l.async(`arraybuffer`)]):[3,8];case 6:d=m.sent(),f=new Blob([d],{type:`${[`mp3`,`wav`].includes(u)?`audio`:`video`}/${u}`}),this.medias[l.name]=URL.createObjectURL(f),m.label=7;case 7:return s++,[3,5];case 8:return[2]}var h}))}))},e.prototype.getXmlByPath=function(e){return p(this,void 0,void 0,(function(){return m(this,(function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw Error(`文件不存在`);return[4,this._zipContents.files[e].async(`text`)];case 1:return[2,t.sent()]}}))}))},e.prototype.getSlideLayout=function(e){return this.slideLayouts.find((function(t){return t.name===e}))},e.prototype.getSlideMaster=function(e){return this.slideMaster.find((function(t){return t.name===e}))},e.prototype.getTheme=function(e){return this.themes.find((function(t){return t.name===e}))},e.prototype.getMedia=function(e){return this.medias[e]},e}();function b$(e){var t=e.extend,n=e.offset,r=e.clip,i=e.base64,a=e.audioFile,o=e.videoFile,s=document.createElement(`div`);s.style.setProperty(`position`,`absolute`),s.style.setProperty(`left`,n.x+`px`),s.style.setProperty(`top`,n.y+`px`);var c,l,u,d,f=document.createElement(`div`);f.style.setProperty(`position`,`absolute`),f.style.setProperty(`left`,`0`),f.style.setProperty(`top`,`0`),f.style.setProperty(`width`,t.w+`px`),f.style.setProperty(`height`,t.h+`px`),f.style.setProperty(`overflow`,`hidden`),r?(c=t.w/(1-(r.l===void 0?0:r.l)-(r.r===void 0?0:r.r)),l=t.h/(1-(r.t===void 0?0:r.t)-(r.b===void 0?0:r.b)),u=-1*c*(r.l===void 0?0:r.l),d=-1*l*(r.t===void 0?0:r.t)):(c=t.w,l=t.h,u=0);var p=document.createElement(`img`);if(p.src=i,p.width=c,p.height=l,p.style.setProperty(`position`,`absolute`),p.style.setProperty(`left`,u+`px`),p.style.setProperty(`top`,d+`px`),f.append(p),s.append(f),a){var m=document.createElement(`audio`);m.style.position=`absolute`,m.style.left=`0`,m.style.top=`0`,m.src=a,m.controls=!0,m.style.transform=`translate(-50%)`,s.append(m)}if(o){var h=document.createElement(`video`);h.style.position=`absolute`,h.style.left=`0`,h.style.top=`0`,h.width=t.w,h.height=t.h,h.src=o,h.controls=!0,s.append(h)}return s}function x$(e,t,n){var r=e.props,i=e.text,a=f(f({},t),r),o=document.createElement(`span`);o.innerHTML=typeof i==`string`?i:``;var s=18;a.size&&(n?.normAutofit?.fontScale?(s=a.size*n.normAutofit.fontScale,o.style.fontSize=s+`px`):(s=a.size,o.style.fontSize=s+`px`));var c=n$(a.color);c&&(o.style.color=c);var l=/^[^\u4e00-\u9fff]+$/;if(a.typeface)switch(o.style.fontFamily=a.typeface,a.typeface){case`DengXian`:l.test(i)&&(o.style.letterSpacing=-.04*s+`px`);break;case`DengXian Light`:l.test(i)&&(o.style.letterSpacing=-.05*s+`px`);break;case`STLiti`:case`SimSun`:case`NSimSun`:case`SimHei`:l.test(i)&&(o.style.fontSize=.85*parseInt(o.style.fontSize)+`px`);break;case`华文中宋`:case`Fira Sans Extra Condensed Medium`:o.style.fontSize=.85*parseInt(o.style.fontSize)+`px`;break;case`FangSong`:o.style.letterSpacing=-.08*s+`px`}else l.test(i)&&(o.style.letterSpacing=-.04*s+`px`);return a.bold&&(o.style.fontWeight=`bold`),a.italic&&(o.style.fontStyle=`italic`),a.underline&&a.underline!==`none`&&(o.style.textDecoration=`underline`),a.background&&(o.style.backgroundColor=n$(a.background)),o.style.wordBreak=`break-word`,o}function S$(e,t,n){var r=document.createElement(`span`),i=e.firstElementChild;switch(r.style.fontSize=i.style.fontSize,r.style.color=i.style.color,r.style.fontWeight=i.style.fontWeight,r.style.fontStyle=i.style.fontStyle,r.style.marginRight=`10px`,t.buAutoNum){case`arabicPeriod`:default:r.textContent=n+`.`;break;case`circleNumDbPlain`:r.textContent=[`①`,`②`,`③`,`④`,`⑤`,`⑥`,`⑦`,`⑧`,`⑨`,`⑩`,`⑪`,`⑫`,`⑬`,`⑭`,`⑮`,`⑯`,`⑰`,`⑱`,`⑲`,`⑳`][n-1]||n+``;break;case`romanUcPeriod`:r.textContent=function(e){var t=[{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 e!=`number`||e<1||e>3999)throw Error(`Input must be a number between 1 and 3999.`);for(var n=``,r=0;r<t.length;r++)for(;e>=t[r].value;)n+=t[r].numeral,e-=t[r].value;return n}(n)+`.`;break;case`alphaUcPeriod`:r.textContent=qQ(n)+`.`;break;case`alphaLcPeriod`:r.textContent=qQ(n).toLowerCase()+`.`;break;case`alphaLcParenR`:r.textContent=qQ(n).toLowerCase()+`)`;break;case`ea1JpnChsDbPeriod`:r.textContent=function(e){var t=[`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`];if(!Number.isInteger(e)||e<0)return``;for(var n=``,r=e.toString(),i=0;i<r.length;i++)n+=t[parseInt(r[i],10)];return n}(n)+`.`}e.prepend(r)}function C$(e,t,n){var r;t===void 0&&(t=0),n===void 0&&(n={});var i=e.inheritProps,a=e.inheritRProps,o=e.props,s=e.rows,c=f(f({},i),o),l=function(){for(var e=0,t=0,r=s;t<r.length;t++){var i=r[t];i.props&&i.props.size&&(e=Math.max(e,i.props.size))}var o=n?.bodyProps?.normAutofit?.fontScale||1;return(e||a.size||18)*o},u=document.createElement(`div`),d=n.isFirst?0:c.spaceBefore||0,p=n.isLast?0:c.spaceAfter||0;u.style.margin=`${Math.floor(.2*l())}px 0 0 0`,u.style.padding=`${Math.floor(d)}px 0px ${Math.floor(p)}px 0px`;var m=document.createElement(`p`);m.style.margin=`0`,m.style.padding=`0px`,m.style.wordBreak=`break-word`,m.style.textAlign=c.align&&{ctr:`center`,l:`left`,r:`right`,dist:`justify`}[c.align]||`center`,c.align===`dist`&&(m.style.textAlignLast=`justify`);var h=c.hasOwnProperty(`lineHeight`)?c.lineHeight:1;if((r=n.bodyProps?.normAutofit)!=null&&r.lnSpcReduction&&(h*=1-n.bodyProps?.normAutofit?.lnSpcReduction),m.style.lineHeight=h+``,m.style.fontSize=l()+`px`,s.length){for(var g=0,_=s;g<_.length;g++){var v=_[g];v.isBr?m.appendChild(document.createElement(`br`)):m.appendChild(x$(v,f(f({},a),{marginTop:Math.floor(.2*l())}),n.bodyProps))}c.buAutoNum?S$(m,c,t):c.buChar&&function(e,t){var n=document.createElement(`span`),r=e.firstElementChild;n.style.color=r.style.color,n.style.fontSize=r.style.fontSize,n.textContent={n:`■`,l:`●`,u:`◆`,p:`□`,ü:`✔`,Ø:`➢`,"•":`•`}[t.buChar]||`■`,n.style.marginRight=`10px`,e.prepend(n)}(m,c),m.style.paddingLeft=(c.marginLeft||0)+(c.indent||0)+`px`}else{var y=document.createElement(`span`);y.innerHTML=`&nbsp;`,y.style.fontSize=a.size+`px`,m.appendChild(y)}return u.appendChild(m),u}var w$=`http://www.w3.org/2000/svg`;function Z(e){return document.createElementNS(w$,e)}function T$(e){var t=e.extend;return .16667*Math.min(t.w,t.h)}function Q(e,t,n){n===void 0&&(n=0);var r=(t.prstGeom?.gd||[]).find((function(t){return t.name===e}));return r?r.fmla:n}function $(e,t,n){n===void 0&&(n=0);var r=t.extend,i=(t.prstGeom?.gd||[]).find((function(t){return t.name===e}));return i?Math.min(r.w,r.h)*i.fmla:n}function E$(e,t,n){n===void 0&&(n=0);var r=t.extend,i=(t.prstGeom?.gd||[]).find((function(t){return t.name===e}));return i?Math.max(r.w,r.h)*i.fmla:n}function D$(e,t){var n=0;switch(e){case`sm`:n=1*t;break;case`med`:n=1.5*t;break;case`lg`:n=2.5*t}return Math.max(n,2)}function O$(e,t,n,r){r===void 0&&(r=!1);var i=e.border,a=i===void 0?{}:i,o=e.uuid,s=a.headEnd,c=a.width,l=a.color,u=a.tailEnd,d=r?s:u,f=d.len,p=f===void 0?`med`:f,m=d.w,h=m===void 0?`med`:m,g=D$(p,c),_=D$(h,c),v=Z(`defs`),y=Z(`marker`),b=`marker-${o}-${r?`start`:`end`}`;y.setAttribute(`id`,b),y.setAttribute(`viewBox`,`0 0 ${2*g} ${2*_}`),y.setAttribute(`refX`,g+`px`),y.setAttribute(`refY`,_+`px`),y.setAttribute(`markerWidth`,2*g+`px`),y.setAttribute(`markerHeight`,2*_+`px`),y.setAttribute(`orient`,`auto`),y.setAttribute(`markerUnits`,`userSpaceOnUse`);var x=Z(`ellipse`);x.setAttribute(`cx`,g+`px`),x.setAttribute(`cy`,_+`px`),x.setAttribute(`rx`,g+`px`),x.setAttribute(`ry`,_+`px`),x.setAttribute(`fill`,n$(l)||`transparent`),y.appendChild(x),v.appendChild(y),t.appendChild(v),n.setAttribute(r?`marker-start`:`marker-end`,`url(#${b})`)}function k$(e,t,n,r){r===void 0&&(r=!1);var i=e.border,a=i===void 0?{}:i,o=e.uuid,s=a.headEnd,c=a.width,l=a.color,u=a.tailEnd,d=r?s:u,f=d.len,p=f===void 0?`med`:f,m=d.w,h=m===void 0?`med`:m,g=D$(p,c),_=D$(h,c),v=Z(`defs`),y=Z(`marker`),b=`marker-${o}-${r?`start`:`end`}`;y.setAttribute(`id`,b),y.setAttribute(`viewBox`,`0 0 ${2*g} ${2*_}`),y.setAttribute(`refX`,(r?.9*g:1.1*g)+`px`),y.setAttribute(`refY`,_+`px`),y.setAttribute(`markerWidth`,2*g+`px`),y.setAttribute(`markerHeight`,2*_+`px`),y.setAttribute(`orient`,`auto`),y.setAttribute(`markerUnits`,`userSpaceOnUse`);var x=Z(`path`),S=r?[`M ${2*g},0`,`L 0,${_}`,`L ${2*g},${2*_}`,`Z`].join(` `):[`M 0,0`,`L ${2*g},${_}`,`L 0,${2*_}`,`Z`].join(` `);x.setAttribute(`d`,S),x.setAttribute(`fill`,n$(l)||`transparent`),y.appendChild(x),v.appendChild(y),t.appendChild(v),n.setAttribute(r?`marker-start`:`marker-end`,`url(#${b})`)}function A$(e,t,n,r){r===void 0&&(r=!1);var i=e.border,a=i===void 0?{}:i,o=e.uuid,s=a.headEnd,c=a.width,l=a.color,u=a.tailEnd,d=r?s:u,f=d.len,p=f===void 0?`med`:f,m=d.w,h=m===void 0?`med`:m,g=D$(p,c),_=D$(h,c),v=Z(`defs`),y=Z(`marker`),b=`marker-${o}-${r?`start`:`end`}`;y.setAttribute(`id`,b),y.setAttribute(`viewBox`,`0 0 ${2*g} ${2*_}`),y.setAttribute(`refX`,g+`px`),y.setAttribute(`refY`,_+`px`),y.setAttribute(`markerWidth`,2*g+`px`),y.setAttribute(`markerHeight`,2*_+`px`),y.setAttribute(`orient`,`auto`),y.setAttribute(`markerUnits`,`userSpaceOnUse`);var x=Z(`path`),S=[`M 0,${_}`,`L ${g},0`,`L ${2*g},${_}`,`L ${g},${2*_}`,`Z`].join(` `);x.setAttribute(`d`,S),x.setAttribute(`fill`,n$(l)||`transparent`),y.appendChild(x),v.appendChild(y),t.appendChild(v),n.setAttribute(r?`marker-start`:`marker-end`,`url(#${b})`)}function j$(e,t,n,r){r===void 0&&(r=!1);var i=e.border,a=i===void 0?{}:i,o=e.uuid,s=a.headEnd,c=a.width,l=a.color,u=a.tailEnd,d=r?s:u,f=d.len,p=f===void 0?`med`:f,m=d.w,h=m===void 0?`med`:m,g=D$(p,c),_=D$(h,c),v=Z(`defs`),y=Z(`marker`),b=`marker-${o}-${r?`start`:`end`}`;y.setAttribute(`id`,b),y.setAttribute(`viewBox`,`0 0 ${2*g+2*c} ${2*_+2*c}`);var x=r?h===`lg`?2*c:3*c:h===`lg`?2*g:2*g-c;y.setAttribute(`refX`,x+`px`),y.setAttribute(`refY`,_+c+`px`),y.setAttribute(`markerWidth`,2*g+`px`),y.setAttribute(`markerHeight`,2*_+`px`),y.setAttribute(`orient`,`auto`),y.setAttribute(`markerUnits`,`userSpaceOnUse`);var S=Z(`path`),C=r?[`M ${2*g+c}, ${c}`,`L ${c},${_+c}`,`L ${2*g+c},${2*_+c}`].join(` `):[`M ${c}, ${c}`,`L ${2*g+c},${_+c}`,`L ${c},${2*_+c}`].join(` `);S.setAttribute(`d`,C),S.setAttribute(`stroke-width`,c+`px`),S.setAttribute(`stroke`,n$(l)||`transparent`),S.setAttribute(`fill`,`transparent`),S.setAttribute(`stroke-linecap`,`round`),S.setAttribute(`stroke-linejoin`,`miter`),S.style.overflow=`visible`,y.appendChild(S),v.appendChild(y),t.appendChild(v),n.setAttribute(r?`marker-start`:`marker-end`,`url(#${b})`)}function M$(e,t,n,r){r===void 0&&(r=!1);var i=e.border,a=i===void 0?{}:i,o=e.uuid,s=a.headEnd,c=a.width,l=a.color,u=a.tailEnd,d=r?s:u,f=d.len,p=f===void 0?`med`:f,m=d.w,h=m===void 0?`med`:m,g=D$(p,c),_=D$(h,c),v=Z(`defs`),y=Z(`marker`),b=`marker-${o}-${r?`start`:`end`}`;y.setAttribute(`id`,b),y.setAttribute(`viewBox`,`0 0 ${2*g} ${2*_}`);var x=r?h===`sm`?1.5*c:2*c:h===`sm`?2*g-1.5*c:2*g-2*c;y.setAttribute(`refX`,x+`px`),y.setAttribute(`refY`,_+`px`),y.setAttribute(`markerWidth`,2*g+`px`),y.setAttribute(`markerHeight`,2*_+`px`),y.setAttribute(`orient`,`auto`),y.setAttribute(`markerUnits`,`userSpaceOnUse`);var S=Z(`path`),C=r?[`M 0, ${_}`,`L ${2*g},0`,`L ${g},${_}`,`L ${2*g},${2*_}`,`Z`].join(` `):[`M 0,0`,`L ${2*g},${_}`,`L 0,${2*_}`,`L ${g},${_}`,`Z`].join(` `);S.setAttribute(`d`,C),S.setAttribute(`fill`,n$(l)||`transparent`),S.style.overflow=`visible`,y.appendChild(S),v.appendChild(y),t.appendChild(v),n.setAttribute(r?`marker-start`:`marker-end`,`url(#${b})`)}function N$(e,t,n){var r=e.border,i=r===void 0?{}:r;e.extend;var a=i.headEnd,o=i.tailEnd;if(a&&a.type!==`none`)switch(a.type){case`triangle`:k$(e,t,n,!0);break;case`oval`:O$(e,t,n,!0);break;case`diamond`:A$(e,t,n,!0);break;case`arrow`:j$(e,t,n,!0);break;case`stealth`:M$(e,t,n,!0)}if(o&&o.type!==`none`)switch(o.type){case`triangle`:k$(e,t,n,!1);break;case`oval`:O$(e,t,n,!1);break;case`diamond`:A$(e,t,n,!1);break;case`arrow`:j$(e,t,n,!1);break;case`stealth`:M$(e,t,n,!1)}}function P$(e){var t=e.extend,n=Z(`rect`);return n.setAttribute(`x`,`0`),n.setAttribute(`y`,`0`),n.setAttribute(`width`,t.w+`px`),n.setAttribute(`height`,t.h+`px`),n}function F$(e,t,n,r,i){var a=e*Math.PI/180;return[a===0||a===2*Math.PI?t+r:a===Math.PI?t-r:a===Math.PI/2||a===3*Math.PI/2?t:a>0&&a<Math.PI/2||a>3*Math.PI/2&&a<2*Math.PI?t+Math.sqrt(1/(1/r**2+Math.tan(a)**2/i**2)):t-Math.sqrt(1/(1/r**2+Math.tan(a)**2/i**2)),a===0||a===2*Math.PI||a===Math.PI?n:a===Math.PI/2?n+i:a===3*Math.PI/2?n-i:a>Math.PI&&a<2*Math.PI?n-Math.sqrt(1/(1/i**2+(1/Math.tan(a))**2/r**2)):n+Math.sqrt(1/(1/i**2+(1/Math.tan(a))**2/r**2))]}function I$(e,t){var n=0;return(t>e&&t-e>180||t<e&&e-t<180)&&(n=1),n}function L$(e){var t=e.extend,n=.146*t.w,r=.146*t.h;return{top:r,bottom:r,left:n,right:n,w:t.w-2*n,h:t.h-2*r}}function R$(e){var t=e.extend,n=e.offset,r=e.border,i=e.background,a=e.rotate,o=e.flipH,s=e.flipV,c=document.createElement(`div`),l=n.x,u=n.y;c.className=`shape-wrapper shape-${e.shape}`,c.style.setProperty(`position`,`absolute`),c.style.setProperty(`width`,(t.w||1)+`px`),c.style.setProperty(`height`,(t.h||1)+`px`),c.style.setProperty(`left`,l+`px`),c.style.setProperty(`top`,u+`px`);var d,p=document.createElementNS(w$,`svg`);p.style.setProperty(`position`,`absolute`),p.setAttribute(`width`,`100%`),p.setAttribute(`height`,`100%`),p.style.setProperty(`left`,`0`),p.style.setProperty(`top`,`0`),p.style.overflow=`visible`;var m={left:0,top:0,bottom:0,w:t.w,h:t.h},h=!0;switch(e.shape){case`customGeom`:d=function(e){var t=e.prstGeom,n=t===void 0?{}:t,r=e.extend,i=n.pathList,a=n.w,o=n.h,s=Z(`path`),c={moveTo:`M`,lnTo:`L`,cubicBezTo:`C`,close:`Z`},l=r.w/a,u=r.h/o,d=i.map((function(e){var t=c[e.type],n=Array.isArray(e.points)?e.points.map((function(e){return`${e[0]*l},${e[1]*u}`})).join(` `):``;return n?`${t} ${n}`:`${t}`})).join(` `);return s.setAttribute(`d`,d),s.style.fillRule=`evenodd`,s}(e),N$(e,p,d);break;case`flowChartProcess`:case`rect`:d=P$(e);break;case`snip1Rect`:d=function(e){var t=e.extend,n=Z(`polygon`),r=$(`adj`,e,T$(e)),i=[`0,0`,`${t.w-r},0`,`${t.w},${r}`,`${t.w},${t.h}`,`0,${t.h}`].join(` `);return n.setAttribute(`points`,i),n}(e);break;case`snip2SameRect`:d=function(e){var t=e.extend,n=Z(`polygon`),r=$(`adj1`,e,T$(e)),i=$(`adj2`,e,0),a=[[r,0],[t.w-r,0],[t.w,r],[t.w,t.h-i],[t.w-i,t.h],[i,t.h],[0,t.h-i],[0,r]].map((function(e){return`${e[0]},${e[1]}`})).join(` `);return n.setAttribute(`points`,a),n}(e);break;case`snip2DiagRect`:d=function(e){var t=e.extend,n=Z(`polygon`),r=$(`adj1`,e,0),i=$(`adj2`,e,T$(e)),a=[[r,0],[t.w-i,0],[t.w,i],[t.w,t.h-r],[t.w-r,t.h],[i,t.h],[0,t.h-i],[0,r]].map((function(e){return`${e[0]},${e[1]}`})).join(` `);return n.setAttribute(`points`,a),n}(e);break;case`snipRoundRect`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,T$(e)),i=$(`adj2`,e,T$(e)),a=[`M ${r},0`,`L ${t.w-i},0`,`L ${t.w},${i}`,`L ${t.w},${t.h}`,`L 0,${t.h}`,`L 0,${r}`,`Q 0,0 ${r},0`,`Z`].join(` `);return n.setAttribute(`d`,a),n}(e);break;case`roundRect`:d=function(e){var t=P$(e),n=$(`adj`,e,T$(e));return t.setAttribute(`rx`,n+`px`),t.setAttribute(`ry`,n+`px`),t}(e);break;case`round1Rect`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,T$(e)),i=[`M 0,0`,`L ${t.w-r},0`,`Q ${t.w},0 ${t.w},${r}`,`L ${t.w},${t.h}`,`L 0,${t.h}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e);break;case`round2SameRect`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,T$(e)),i=$(`adj2`,e,0),a=[`M ${r},0`,`L ${t.w-r},0`,`Q ${t.w},0 ${t.w},${r}`,`L ${t.w},${t.h-i}`,`Q ${t.w},${t.h} ${t.w-i},${t.h}`,`L ${i},${t.h}`,`Q 0,${t.h} 0,${t.h-i}`,`L 0,${r}`,`Q 0,0 ${r},0`,`Z`].join(` `);return n.setAttribute(`d`,a),n}(e);break;case`round2DiagRect`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,T$(e)),i=$(`adj2`,e,0),a=[`M ${r},0`,`L ${t.w-i},0`,`Q ${t.w},0 ${t.w},${i}`,`L ${t.w},${t.h-r}`,`Q ${t.w},${t.h} ${t.w-r},${t.h}`,`L ${i},${t.h}`,`Q 0,${t.h} 0,${t.h-i}`,`L 0,${r}`,`Q 0,0 ${r},0`,`Z`].join(` `);return n.setAttribute(`d`,a),n}(e);break;case`triangle`:d=function(e){var t=e.extend,n=Z(`polygon`),r=[`${t.w/2},0`,`0,${t.h}`,`${t.w},${t.h}`].join(` `);return n.setAttribute(`points`,r),n}(e);break;case`rtTriangle`:d=function(e){var t=e.extend,n=Z(`polygon`),r=[`0,${t.h}`,`0,0`,`${t.w},${t.h}`].join(` `);return n.setAttribute(`points`,r),n}(e);break;case`ellipse`:d=function(e){var t=e.extend,n=Z(`ellipse`),r=t.w/2,i=t.h/2,a=r,o=i;return n.setAttribute(`cx`,r+`px`),n.setAttribute(`cy`,i+`px`),n.setAttribute(`rx`,a+`px`),n.setAttribute(`ry`,o+`px`),n}(e);break;case`line`:d=function(e){var t=e.extend,n=Z(`path`),r=[`M 0,0`,`L ${t.w},${t.h}`].join(` `);return n.setAttribute(`d`,r),n}(e),N$(e,p,d),h=!1;break;case`straightConnector1`:d=function(e){var t=e.extend,n=Z(`path`),r=[`M 0,0`,`L ${t.w},${t.h}`].join(` `);return n.setAttribute(`d`,r),n}(e),N$(e,p,d),h=!1;break;case`bentConnector3`:d=function(e){var t=e.extend,n=Z(`path`),r=E$(`adj1`,e,.5*Math.max(t.w,t.h)),i=[`M 0,0`,`L ${r},0`,`L ${r},${t.h}`,`L ${t.w},${t.h}`].join(` `);return n.setAttribute(`d`,i),n}(e),N$(e,p,d),h=!1;break;case`curvedConnector3`:d=function(e){var t=e.extend,n=Z(`path`),r=E$(`adj1`,e,.5*Math.max(t.w,t.h)),i=[`M0,0`,`Q${r},0 ${r},${t.h/2}`,`T${t.w},${t.h}`].join(` `);return n.setAttribute(`d`,i),n}(e),N$(e,p,d),h=!1;break;case`parallelogram`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.5*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w},0`,`L${t.w-r},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.5*Math.min(t.w,t.h)),r=.84*(t.w-n),i=.08*t.h+n/t.w*t.h*.42;return{top:i,bottom:i,left:(t.w-r)/2,right:(t.w-r)/2,w:r,h:t.h-2*i}}(e);break;case`trapezoid`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.25*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w-r},0`,`L${t.w},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.5*Math.min(t.w,t.h)),r=n/t.w*.66*t.h,i=.66*n;return{top:r,bottom:0,left:i,right:i,w:t.w-2*i,h:t.h-r}}(e);break;case`diamond`:d=function(e){var t=e.extend,n=Z(`path`),r=[`M${t.w/2},0`,`L${t.w},${t.h/2}`,`L${t.w/2},${t.h}`,`L0,${t.h/2}`,`Z`].join(` `);return n.setAttribute(`d`,r),n}(e),m=function(e){var t=e.extend,n=.25*t.h,r=.25*t.w;return{top:n,bottom:n,left:r,right:r,w:.5*t.w,h:.5*t.h}}(e);break;case`pentagon`:d=function(e){var t=e.extend,n=Z(`path`),r=[`M${t.w/2},0`,`L${t.w},${.3771*t.h}`,`L${.808*t.w},${t.h}`,`L${.192*t.w},${t.h}`,`L0,${.3771*t.h}`,`Z`].join(` `);return n.setAttribute(`d`,r),n}(e),m=function(e){var t=e.extend,n=.227*t.h,r=.192*t.w;return{top:n,bottom:0,left:r,right:r,w:.616*t.w,h:.773*t.h}}(e);break;case`hexagon`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.25*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w-r},0`,`L${t.w},${t.h/2}`,`L${t.w-r},${t.h}`,`L${r},${t.h}`,`L0,${t.h/2}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h)),r=.098*t.h+n/t.w*.38*t.h,i=.088*t.w+.422*n;return{top:r,bottom:r,left:i,right:i,w:t.w-2*i,h:t.h-2*r}}(e);break;case`heptagon`:d=function(e){var t=e.extend,n=Z(`path`),r=[`M${t.w/2},0`,`L${.9*t.w},${.2*t.h}`,`L${t.w},${.642*t.h}`,`L${.722*t.w},${t.h}`,`L${.278*t.w},${t.h}`,`L0,${.642*t.h}`,`L${.1*t.w},${.2*t.h}`,`Z`].join(` `);return n.setAttribute(`d`,r),n}(e),m=function(e){var t=e.extend;return{top:.2*t.h,bottom:.2*t.h,left:.1*t.w,right:.1*t.w,w:.8*t.w,h:.6*t.h}}(e);break;case`octagon`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.29*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w-r},0`,`L${t.w},${r}`,`L${t.w},${t.h-r}`,`L${t.w-r},${t.h}`,`L${r},${t.h}`,`L0,${t.h-r}`,`L0,${r}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.29*Math.min(t.w,t.h));return{top:.5*n,bottom:.5*n,left:.5*n,right:.5*n,w:t.w-n,h:t.h-n}}(e);break;case`decagon`:d=function(e){var t=e.extend,n=Z(`path`),r=.344,i=.117,a=.19,o=[`M${t.w*r},0`,`L${.656*t.w},0`,`L${.883*t.w},${t.h*a}`,`L${t.w},${.5*t.h}`,`L${.883*t.w},${.81*t.h}`,`L${.656*t.w},${t.h}`,`L${t.w*r},${t.h}`,`L${t.w*i},${.81*t.h}`,`L0,${.5*t.h}`,`L${t.w*i},${t.h*a}`,`Z`].join(` `);return n.setAttribute(`d`,o),n}(e),m=function(e){var t=e.extend,n=.117,r=.19;return{top:t.h*r,bottom:t.h*r,left:t.w*n,right:t.w*n,w:.766*t.w,h:.62*t.h}}(e);break;case`dodecagon`:d=function(e){var t=e.extend,n=Z(`path`),r=.364,i=.133,a=.135,o=[`M${t.w*r},0`,`L${.636*t.w},0`,`L${.867*t.w},${t.h*a}`,`L${t.w},${t.h*r}`,`L${t.w},${.636*t.h}`,`L${.867*t.w},${.865*t.h}`,`L${.636*t.w},${t.h}`,`L${t.w*r},${t.h}`,`L${t.w*i},${.865*t.h}`,`L0,${.636*t.h}`,`L0,${t.h*r}`,`L${t.w*i},${t.h*a}`,`Z`].join(` `);return n.setAttribute(`d`,o),n}(e),m=function(e){var t=e.extend,n=.133,r=.135;return{top:t.h*r,bottom:t.h*r,left:t.w*n,right:t.w*n,w:.734*t.w,h:.73*t.h}}(e);break;case`pie`:d=function(e){var t=e.extend,n=Z(`path`),r=Q(`adj1`,e,360),i=Q(`adj2`,e,270),a=t.w/2,o=t.h/2,s=t.w/2,c=t.h/2,l=F$(r,s,c,a,o),u=l[0],d=l[1],f=F$(i,s,c,a,o),p=f[0],m=f[1],h=`M${s},${c}, L${u} ${d} A ${a} ${o} 0 ${I$(r,i)} 1 ${p} ${m} Z`;return n.setAttribute(`d`,h),n}(e),m=L$(e);break;case`arc`:d=function(e){var t=e.extend,n=Z(`path`),r=Q(`adj1`,e,270),i=Q(`adj2`,e,0),a=t.w/2,o=t.h/2,s=t.w/2,c=t.h/2,l=F$(r,s,c,a,o),u=l[0],d=l[1],f=F$(i,s,c,a,o),p=f[0],m=f[1],h=`M${u},${d} A ${a} ${o} 0 ${I$(r,i)} 1 ${p} ${m}`;return n.setAttribute(`d`,h),n}(e),h=!1;break;case`bracketPair`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.16667*Math.min(t.w,t.h)),i=[`M${r},${t.h}`,`Q0,${t.h} 0,${t.h-r}`,`L0,${r}`,`Q0,0 ${r},0`,`M${t.w-r},0`,`Q${t.w},0 ${t.w},${r}`,`L${t.w},${t.h-r}`,`Q${t.w},${t.h} ${t.w-r},${t.h}`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=.285*$(`adj`,e,.16667*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(e),h=!1;break;case`bracePair`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.083335*Math.min(t.w,t.h)),i=[`M${2*r},${t.h}`,`Q${r},${t.h} ${r},${t.h-r}`,`L${r},${t.h/2+r}`,`Q${r},${t.h/2} 0,${t.h/2}`,`Q${r},${t.h/2} ${r},${t.h/2-r}`,`L${r},${r}`,`Q${r},0 ${2*r},0`,`M${t.w-2*r},0`,`Q${t.w-r},0 ${t.w-r},${r}`,`L${t.w-r},${t.h/2-r}`,`Q${t.w-r},${t.h/2} ${t.w},${t.h/2}`,`Q${t.w-r},${t.h/2} ${t.w-r},${t.h/2+r}`,`L${t.w-r},${t.h-r}`,`Q${t.w-r},${t.h} ${t.w-2*r},${t.h}`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=.285*$(`adj`,e,.16667*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(e),h=!1;break;case`chord`:d=function(e){var t=e.extend,n=Z(`path`),r=Q(`adj1`,e,45),i=Q(`adj2`,e,270),a=t.w/2,o=t.h/2,s=t.w/2,c=t.h/2,l=F$(r,s,c,a,o),u=l[0],d=l[1],f=F$(i,s,c,a,o),p=f[0],m=f[1],h=`M${u} ${d} A ${a} ${o} 0 ${I$(r,i)} 1 ${p} ${m} Z`;return n.setAttribute(`d`,h),n}(e),m=L$(e);break;case`teardrop`:d=function(e){var t=e.extend,n=Z(`path`),r=Q(`adj`,e,1),i=t.w/2,a=t.h/2,o=t.w/2,s=t.h/2,c=F$(0,o,s,i,a),l=c[0],u=c[1],d=F$(270,o,s,i,a),f=d[0],p=d[1],m=`M${l} ${u} A ${i} ${a} 0 ${I$(0,270)} 1 ${f} ${p}`,h=i*r,g=o+h,_=s-a*h/(t.w/2),v=(t.w/2+g)/2,y=(t.h/2+_)/2;return m+=` Q${v},0 ${g},${_}`,m+=` Q${t.w},${y} ${o+i},${s}`,n.setAttribute(`d`,m),n}(e),m=L$(e);break;case`frame`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,.12*Math.min(t.w,t.h)),i=[`M0,0`,`L${t.w},0`,`L${t.w},${t.h}`,`L0,${t.h}`,`Z`,`M${r},${r}`,`L${r},${t.h-r}`,`L${t.w-r},${t.h-r}`,`L${t.w-r},${r}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.12*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(e);break;case`halfFrame`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,.333*Math.min(t.w,t.h)),i=Math.min($(`adj2`,e,.333*Math.min(t.w,t.h)),t.w*(1-r/t.h)),a=[`M0,0`,`L${t.w},0`,`L${t.w*(1-r/t.h)},${r}`,`L${i},${r}`,`L${i},${t.h*(1-i/t.w)}`,`L0,${t.h}`,`Z`].join(` `);return n.setAttribute(`d`,a),n}(e);break;case`corner`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj1`,e,.5*Math.min(t.w,t.h)),i=$(`adj2`,e,.5*Math.min(t.w,t.h)),a=[`M0,0`,`L${i},0`,`L${i},${t.h-r}`,`L${t.w},${t.h-r}`,`L${t.w},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return n.setAttribute(`d`,a),n}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h));return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(e);break;case`diagStripe`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.5*Math.min(t.w,t.h)),i=[`M${t.w*r/t.h},0`,`L${t.w},0`,`L0,${t.h}`,`L0,${r}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=Q(`adj`,e,.5),r=.5*(1-n)*t.h,i=.5*(1-n)*t.w;return{top:0,bottom:r,left:0,right:i,w:t.w-i,h:t.h-r}}(e);break;case`plus`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.25*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w-r},0`,`L${t.w-r},${r}`,`L${t.w},${r}`,`L${t.w},${t.h-r}`,`L${t.w-r},${t.h-r}`,`L${t.w-r},${t.h}`,`L${r},${t.h}`,`L${r},${t.h-r}`,`L0,${t.h-r}`,`L0,${r}`,`L${r},${r}`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h));return{top:n,bottom:n,left:0,right:0,w:t.w,h:t.h-2*n}}(e);break;case`plaque`:d=function(e){var t=e.extend,n=Z(`path`),r=$(`adj`,e,.16667*Math.min(t.w,t.h)),i=[`M${r},0`,`L${t.w-r},0`,`Q${t.w-r},${r} ${t.w},${r}`,`L${t.w},${t.h-r}`,`Q${t.w-r},${t.h-r} ${t.w-r},${t.h}`,`L${r},${t.h}`,`Q${r},${t.h-r} 0,${t.h-r}`,`L0,${r}`,`Q${r},${r} ${r},0`,`Z`].join(` `);return n.setAttribute(`d`,i),n}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.16667*Math.min(t.w,t.h));return{top:.72*n,bottom:.72*n,left:.72*n,right:.72*n,w:t.w-1.44*n,h:t.w-1.44*n}}(e);break;case`can`:d=function(e){var t=e.extend,n=e.background,r=Z(`g`),i=Z(`path`),a=$(`adj`,e,.25*Math.min(t.w,t.h)),o=[`M0,${a/2}`,`L0,${t.h-a/2}`,`A${t.w/2},${a/2} 0 0 0 ${t.w},${t.h-a/2}`,`L${t.w},${a/2}`,`A${t.w/2},${a/2} 0 0 1 0,${a/2}`,`Z`].join(` `);i.setAttribute(`d`,o);var s=Z(`ellipse`),c=t.w/2,l=a/2,u=t.w/2,d=a/2;return s.setAttribute(`cx`,c+`px`),s.setAttribute(`cy`,l+`px`),s.setAttribute(`rx`,u+`px`),s.setAttribute(`ry`,d+`px`),n?.type===`solidFill`&&s.setAttribute(`fill`,n$(n,{light:.5})||`transparent`),r.appendChild(i),r.appendChild(s),r}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h));return{top:n,bottom:0,left:0,right:0,w:t.w,h:t.h-n}}(e);break;case`cube`:d=function(e){var t=e.extend,n=e.background,r=$(`adj`,e,.25*Math.min(t.w,t.h)),i=Z(`g`),a=Z(`path`),o=[`M0,${r}`,`L${t.w-r},${r}`,`L${t.w-r},${t.h}`,`L0,${t.h}`,`Z`].join(` `);a.setAttribute(`d`,o);var s=Z(`path`),c=[`M0,${r}`,`L${r},0`,`L${t.w},0`,`L${t.w-r},${r}`,`Z`].join(` `);s.setAttribute(`d`,c),n?.type===`solidFill`&&s.setAttribute(`fill`,n$(n,{light:.8})||`transparent`);var l=Z(`path`),u=[`M${t.w},0`,`L${t.w-r},${r}`,`L${t.w-r},${t.h}`,`L${t.w},${t.h-r}`,`Z`].join(` `);return l.setAttribute(`d`,u),n?.type===`solidFill`&&l.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`),i.appendChild(a),i.appendChild(s),i.appendChild(l),i}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h));return{top:n,bottom:0,left:0,right:n,w:t.w-n,h:t.h-n}}(e);break;case`bevel`:d=function(e){var t=e.extend,n=e.background,r=$(`adj`,e,.125*Math.min(t.w,t.h)),i=Z(`g`),a=Z(`path`),o=[`M${r},${r}`,`L${t.w-r},${r}`,`L${t.w-r},${t.h-r}`,`L${r},${t.h-r}`,`Z`].join(` `);a.setAttribute(`d`,o);var s=Z(`path`),c=[`M0,0`,`L${r},${r}`,`L${t.w-r},${r}`,`L${t.w},0`,`Z`].join(` `);s.setAttribute(`d`,c),n?.type===`solidFill`&&s.setAttribute(`fill`,n$(n,{light:.8})||`transparent`);var l=Z(`path`),u=[`M${t.w},0`,`L${t.w-r},${r}`,`L${t.w-r},${t.h-r}`,`L${t.w},${t.h}`,`Z`].join(` `);l.setAttribute(`d`,u),n?.type===`solidFill`&&l.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`);var d=Z(`path`),f=[`M${t.w},${t.h}`,`L${t.w-r},${t.h-r}`,`L${r},${t.h-r}`,`L0,${t.h}`,`Z`].join(` `);d.setAttribute(`d`,f),n?.type===`solidFill`&&d.setAttribute(`fill`,n$(n,{dark:.625})||`transparent`);var p=Z(`path`),m=[`M0,${t.h}`,`L${r},${t.h-r}`,`L${r},${r}`,`L0,0`,`Z`].join(` `);return p.setAttribute(`d`,m),n?.type===`solidFill`&&p.setAttribute(`fill`,n$(n,{light:.6})||`transparent`),i.appendChild(a),i.appendChild(s),i.appendChild(l),i.appendChild(d),i.appendChild(p),i}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.125*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(e);break;case`donut`:d=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h)),r=Z(`path`),i=[`M0,${t.h/2}`,`A${t.w/2},${t.h/2} 0 1,1 0,${t.h/2+1}`,`Z`,`M${t.w-n},${t.h/2}`,`A${t.w/2-n},${t.h/2-n} 0 1,0 ${t.w-n},${t.h/2+1}`,`Z`].join(` `);return r.setAttribute(`d`,i),r}(e),m=L$(e);break;case`noSmoking`:d=function(e){var t=e.extend,n=$(`adj`,e,.25*Math.min(t.w,t.h)),r=Z(`path`),i=Math.atan(t.h/t.w),a=n/2/Math.sin(i),o=t.w/2,s=t.h/2,c=-1*t.h/t.w,l=t.h*a/t.w,u=t.w/2-n,d=t.h/2-n,f=-2*u*u*c*l,p=Math.sqrt((2*u*u*c*l)**2-4*(d*d+u*u*c*c)*u*u*(l*l-d*d)),m=2*(d*d+u*u*c*c),h=(f-p)/m,g=c*h+l,_=(f+p)/m,v=c*_+l,y=-t.h*a/t.w,b=-2*u*u*c*y,x=Math.sqrt((2*u*u*c*y)**2-4*(d*d+u*u*c*c)*u*u*(y*y-d*d)),S=2*(d*d+u*u*c*c),C=(b-x)/S,w=c*C+y,T=(b+x)/S,E=c*T+y,D=[`M0,${t.h/2}`,`A${t.w/2},${t.h/2} 0 1,1 0,${t.h/2+1}`,`Z`,`M${o+_},${s-v}`,`A${u},${d} 0 0 0 ${o+h},${s-g}`,`Z`,`M${o+C},${s-w}`,`A${u},${d} 0 0 0 ${o+T},${s-E}`,`Z`].join(` `);return r.setAttribute(`d`,D),r}(e),m=L$(e);break;case`rightArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M0,${t.h/2-n/2}`,`L${t.w-r},${t.h/2-n/2}`,`L${t.w-r},0`,`L${t.w},${t.h/2}`,`L${t.w-r},${t.h}`,`L${t.w-r},${t.h/2+n/2}`,`L0,${t.h/2+n/2}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:0,right:r,w:t.w-r,h:n}}(e);break;case`leftArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M0,${t.h/2}`,`L${r},0`,`L${r},${t.h/2-n/2}`,`L${t.w},${t.h/2-n/2}`,`L${t.w},${t.h/2+n/2}`,`L${r},${t.h/2+n/2}`,`L${r},${t.h}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:r,right:0,w:t.w-r,h:n}}(e);break;case`upArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M${t.w/2},0`,`L${t.w},${r}`,`L${t.w/2+n/2},${r}`,`L${t.w/2+n/2},${t.h}`,`L${t.w/2-n/2},${t.h}`,`L${t.w/2-n/2},${r}`,`L0,${r}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.w;return{top:r,bottom:0,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-r}}(e);break;case`downArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M${t.w/2},${t.h}`,`L0,${t.h-r}`,`L${t.w/2-n/2},${t.h-r}`,`L${t.w/2-n/2},0`,`L${t.w/2+n/2},0`,`L${t.w/2+n/2},${t.h-r}`,`L${t.w},${t.h-r}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.w;return{top:0,bottom:r,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-r}}(e);break;case`leftRightArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M0,${t.h/2}`,`L${r},0`,`L${r},${t.h/2-n/2}`,`L${t.w-r},${t.h/2-n/2}`,`L${t.w-r},0`,`L${t.w},${t.h/2}`,`L${t.w-r},${t.h}`,`L${t.w-r},${t.h/2+n/2}`,`L${r},${t.h/2+n/2}`,`L${r},${t.h}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:r,right:r,w:t.w-2*r,h:n}}(e);break;case`upDownArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=$(`adj2`,e,.5*Math.min(t.w,t.h)),i=Z(`path`),a=[`M${t.w/2},${t.h}`,`L0,${t.h-r}`,`L${t.w/2-n/2},${t.h-r}`,`L${t.w/2-n/2},${r}`,`L0,${r}`,`L${t.w/2},0`,`L${t.w},${r}`,`L${t.w/2+n/2},${r}`,`L${t.w/2+n/2},${t.h-r}`,`L${t.w},${t.h-r}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.5*Math.min(t.w,t.h)),r=n*$(`adj2`,e,.5*Math.min(t.w,t.h))/t.w;return{top:r,bottom:r,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-2*r}}(e);break;case`quadArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.225*Math.min(t.w,t.h)),r=$(`adj2`,e,.225*Math.min(t.w,t.h)),i=$(`adj3`,e,.225*Math.min(t.w,t.h)),a=Z(`path`),o=[`M0,${t.h/2}`,`L${i},${t.h/2-r}`,`L${i},${t.h/2-n/2}`,`L${t.w/2-n/2},${t.h/2-n/2}`,`L${t.w/2-n/2},${i}`,`L${t.w/2-r},${i}`,`L${t.w/2},0`,`L${t.w/2+r},${i}`,`L${t.w/2+n/2},${i}`,`L${t.w/2+n/2},${t.h/2-n/2}`,`L${t.w-i},${t.h/2-n/2}`,`L${t.w-i},${t.h/2-r}`,`L${t.w},${t.h/2}`,`L${t.w-i},${t.h/2+r}`,`L${t.w-i},${t.h/2+n/2}`,`L${t.w/2+n/2},${t.h/2+n/2}`,`L${t.w/2+n/2},${t.h-i}`,`L${t.w/2+r},${t.h-i}`,`L${t.w/2},${t.h}`,`L${t.w/2-r},${t.h-i}`,`L${t.w/2-n/2},${t.h-i}`,`L${t.w/2-n/2},${t.h/2+n/2}`,`L${i},${t.h/2+n/2}`,`L${i},${t.h/2+r}`,`Z`].join(` `);return a.setAttribute(`d`,o),a}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.225*Math.min(t.w,t.h)),r=$(`adj2`,e,.225*Math.min(t.w,t.h)),i=$(`adj3`,e,.225*Math.min(t.w,t.h)),a=r===0?0:n*i/r/2;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:a,right:a,w:t.w-2*a,h:n}}(e);break;case`leftRightUpArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.225*Math.min(t.w,t.h)),r=$(`adj2`,e,.225*Math.min(t.w,t.h)),i=$(`adj3`,e,.225*Math.min(t.w,t.h)),a=Z(`path`);n>2*r&&(n=2*r);var o=[`M0,${t.h-r}`,`L${i},${t.h-2*r}`,`L${i},${t.h-r-n/2}`,`L${t.w/2-n/2},${t.h-r-n/2}`,`L${t.w/2-n/2},${i}`,`L${t.w/2-r},${i}`,`L${t.w/2},0`,`L${t.w/2+r},${i}`,`L${t.w/2+n/2},${i}`,`L${t.w/2+n/2},${t.h-r-n/2}`,`L${t.w-i},${t.h-r-n/2}`,`L${t.w-i},${t.h-2*r}`,`L${t.w},${t.h-r}`,`L${t.w-i},${t.h}`,`L${t.w-i},${t.h-r+n/2}`,`L${i},${t.h-r+n/2}`,`L${i},${t.h}`,`Z`].join(` `);return a.setAttribute(`d`,o),a}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.225*Math.min(t.w,t.h)),r=$(`adj2`,e,.225*Math.min(t.w,t.h)),i=$(`adj3`,e,.225*Math.min(t.w,t.h)),a=r===0?0:n*i/r/2;return{top:t.h-r-n/2,bottom:r-n/2,left:a,right:a,w:t.w-2*a,h:n}}(e);break;case`bentArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h)),r=$(`adj2`,e,.25*Math.min(t.w,t.h)),i=$(`adj3`,e,.25*Math.min(t.w,t.h)),a=$(`adj4`,e,.4375*Math.min(t.w,t.h)),o=Z(`path`);n>2*r&&(n=2*r);var s=a-n;s<0&&(s=0);var c=[`M0,${t.h}`,`L0,${r-n/2+a}`,`A${a} ${a} 0 0 1 ${a} ${r-n/2}`,`L${t.w-i},${r-n/2}`,`L${t.w-i},0`,`L${t.w},${r}`,`L${t.w-i},${2*r}`,`L${t.w-i},${r+n/2}`,`L${n+s},${r+n/2}`,`A${s} ${s} 0 0 0 ${n} ${r+n/2+s}`,`L${n},${t.h}`,`Z`].join(` `);return o.setAttribute(`d`,c),o}(e);break;case`uturnArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h)),r=$(`adj2`,e,.25*Math.min(t.w,t.h)),i=$(`adj3`,e,.25*Math.min(t.w,t.h)),a=$(`adj4`,e,.4375*Math.min(t.w,t.h)),o=$(`adj5`,e,.75*Math.min(t.w,t.h)),s=Z(`path`);n>2*r&&(n=2*r),o<i&&(o=i+n),a>o-i&&(a=o-i);var c=a-n;c>o-i-n&&(c=o-i-n),c<0&&(c=0);var l=r-n/2,u=[`M0,${t.h}`,`L0,${a}`,`A${a} ${a} 0 0 1 ${a} 0`,`L${t.w-a-l},0`,`A${a} ${a} 0 0 1 ${t.w-l} ${a}`,`L${t.w-l},${o-i}`,`L${t.w},${o-i}`,`L${t.w-r},${o}`,`L${t.w-2*r},${o-i}`,`L${t.w-r-n/2},${o-i}`,`L${t.w-r-n/2},${n+c}`,`A${c} ${c} 0 0 0 ${t.w-c-r-n/2} ${n}`,`L${n+c},${n}`,`A${c} ${c} 0 0 0 ${n} ${n+c}`,`L${n},${t.h}`,`Z`].join(` `);return s.setAttribute(`d`,u),s}(e);break;case`leftUpArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h)),r=$(`adj2`,e,.25*Math.min(t.w,t.h)),i=$(`adj3`,e,.25*Math.min(t.w,t.h));n>2*r&&(n=2*r);var a=Math.min(t.w,t.h)-2*r;i>a&&(i=a),i<0&&(i=0);var o=r-n/2,s=Z(`path`),c=[`M0,${t.h-r}`,`L${i},${t.h-2*r}`,`L${i},${t.h-r-n/2}`,`L${t.w-r-n/2},${t.h-r-n/2}`,`L${t.w-r-n/2},${i}`,`L${t.w-2*r},${i}`,`L${t.w-r},0`,`L${t.w},${i}`,`L${t.w-o},${i}`,`L${t.w-o},${t.h-o}`,`L${i},${t.h-o}`,`L${i},${t.h}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h)),r=$(`adj2`,e,.25*Math.min(t.w,t.h)),i=$(`adj3`,e,.25*Math.min(t.w,t.h));n>2*r&&(n=2*r);var a=Math.min(t.w,t.h)-2*r;i>a&&(i=a),i<0&&(i=0);var o=r===0?0:n*i/r/2;return{top:t.h-r-n/2,bottom:r-n/2,left:o,right:r,w:t.w-o-r,h:n}}(e);break;case`bentUpArrow`:d=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h)),r=$(`adj2`,e,.25*Math.min(t.w,t.h)),i=$(`adj3`,e,.25*Math.min(t.w,t.h));n>2*r&&(n=2*r);var a=Math.min(t.w,t.h)-2*r;i>a&&(i=a),i<0&&(i=0);var o=r-n/2,s=Z(`path`),c=[`M0,${t.h}`,`L0,${t.h-n}`,`L${t.w-r-n/2},${t.h-n}`,`L${t.w-r-n/2},${i}`,`L${t.w-2*r},${i}`,`L${t.w-r},0`,`L${t.w},${i}`,`L${t.w-o},${i}`,`L${t.w-o},${t.h}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=$(`adj1`,e,.25*Math.min(t.w,t.h));return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(e);break;case`curvedRightArrow`:d=function(e){var t=e.extend,n=e.background,r=$(`adj1`,e,.25*Math.min(t.w,t.h)),i=$(`adj2`,e,.5*Math.min(t.w,t.h)),a=$(`adj3`,e,.25*Math.min(t.w,t.h));r>i&&(r=i);var o=i/2-r/2,s=(t.h-i/2-r/2)/2,c=(t.h-o-r)/2,l=Z(`g`),u=Z(`path`),d=[`M${t.w},0`,`A ${t.w} ${s} 0 0 0 0 ${s}`,`L0,${c+r}`,`A ${t.w} ${c} 0 0 1 ${t.w} ${r}`,`Z`].join(` `);u.setAttribute(`d`,d),n?.type===`solidFill`&&u.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`);var f=Z(`path`),p=[`M0,${s}`,`A ${t.w} ${s} 0 0 0 ${t.w-a} ${t.h-i/2-r/2}`,`L${t.w-a},${t.h-i}`,`L${t.w},${t.h-i/2}`,`L${t.w-a},${t.h}`,`L${t.w-a},${t.h-o}`,`A ${t.w} ${c} 0 0 1 0 ${r+c}`,`Z`].join(` `);return f.setAttribute(`d`,p),l.appendChild(u),l.appendChild(f),l}(e);break;case`curvedLeftArrow`:d=function(e){var t=e.extend,n=e.background,r=$(`adj1`,e,.25*Math.min(t.w,t.h)),i=$(`adj2`,e,.5*Math.min(t.w,t.h)),a=$(`adj3`,e,.25*Math.min(t.w,t.h));r>i&&(r=i);var o=i/2-r/2,s=(t.h-i/2-r/2)/2,c=(t.h-o-r)/2,l=Z(`g`),u=Z(`path`),d=[`M0,${t.h-i/2}`,`L${a},${t.h-i}`,`L${a},${t.h-i/2-r/2}`,`A${t.w} ${s} 0 0 0 ${t.w} ${s}`,`L${t.w},${c+r}`,`A ${t.w} ${c} 0 0 1 ${a} ${t.h-o}`,`L${a},${t.h}`,`Z`].join(` `);u.setAttribute(`d`,d);var f=Z(`path`),p=[`M0,0`,`A ${t.w} ${s} 0 0 1 ${t.w} ${s}`,`L${t.w},${c+r}`,`A ${t.w} ${c} 0 0 0 0 ${r}`,`Z`].join(` `);return f.setAttribute(`d`,p),n?.type===`solidFill`&&f.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`),l.appendChild(u),l.appendChild(f),l}(e);break;case`curvedUpArrow`:d=function(e){var t=e.extend,n=e.background,r=$(`adj1`,e,.25*Math.min(t.w,t.h)),i=$(`adj2`,e,.5*Math.min(t.w,t.h)),a=$(`adj3`,e,.25*Math.min(t.w,t.h));r>i&&(r=i);var o=i/2-r/2,s=(t.w-i/2-r/2)/2,c=(t.w-o-r)/2,l=Z(`g`),u=Z(`path`),d=[`M${t.w-i/2},0`,`L${t.w-i},${a}`,`L${t.w-i/2-r/2},${a}`,`A${s} ${t.h} 0 0 1 ${s} ${t.h}`,`L${s+r},${t.h}`,`A${c} ${t.h} 0 0 0 ${t.w-o} ${a}`,`L${t.w},${a}`,`Z`].join(` `);u.setAttribute(`d`,d);var f=Z(`path`),p=[`M${r},0`,`L0,0`,`A ${s} ${t.h} 0 0 0 ${s} ${t.h}`,`L${s+r},${t.h}`,`A ${c} ${t.h} 0 0 1 ${r} 0`,`Z`].join(` `);return f.setAttribute(`d`,p),n?.type===`solidFill`&&f.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`),l.appendChild(u),l.appendChild(f),l}(e);break;case`curvedDownArrow`:d=function(e){var t=e.extend,n=e.background,r=$(`adj1`,e,.25*Math.min(t.w,t.h)),i=$(`adj2`,e,.5*Math.min(t.w,t.h)),a=$(`adj3`,e,.25*Math.min(t.w,t.h));r>i&&(r=i);var o=i/2-r/2,s=(t.w-i/2-r/2)/2,c=(t.w-o-r)/2,l=Z(`g`),u=Z(`path`),d=[`M0,${t.h}`,`L${r},${t.h}`,`A${c} ${t.h} 0 0 1 ${c+r} 0`,`L${s},0`,`A${s} ${t.h} 0 0 0 0 ${t.h}`,`Z`].join(` `);u.setAttribute(`d`,d),n?.type===`solidFill`&&u.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`);var f=Z(`path`),p=[`M${t.w-i/2},${t.h}`,`L${t.w-i},${t.h-a}`,`L${t.w-i/2-r/2},${t.h-a}`,`A ${s} ${t.h} 0 0 0 ${s} 0`,`L${s+r},0`,`A ${c} ${t.h} 0 0 1 ${t.w-o} ${t.h-a}`,`L${t.w},${t.h-a}`,`Z`].join(` `);return f.setAttribute(`d`,p),l.appendChild(u),l.appendChild(f),l}(e);break;case`stripedRightArrow`:d=function(e){var t=e.extend,n=Z(`g`),r=Math.min(t.w,t.h),i=Q(`adj1`,e,.5)*t.h,a=Q(`adj2`,e,.5)*r,o=r/8,s=r/16,c=r/32,l=5*r/32,u=t.h/2-i/2,d=t.h/2+i/2,f=Z(`path`);f.setAttribute(`d`,[`M0,${u}`,`L${c},${u}`,`L${c},${d}`,`L0,${d}`,`Z`].join(` `));var p=Z(`path`);p.setAttribute(`d`,[`M${s},${u}`,`L${o},${u}`,`L${o},${d}`,`L${s},${d}`,`Z`].join(` `));var m=Z(`path`),h=[`M${l},${u}`,`L${t.w-a},${u}`,`L${t.w-a},0`,`L${t.w},${t.h/2}`,`L${t.w-a},${t.h}`,`L${t.w-a},${d}`,`L${l},${d}`,`Z`].join(` `);return m.setAttribute(`d`,h),n.appendChild(m),n.appendChild(f),n.appendChild(p),n}(e),m=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.5)*t.h,i=r*(Q(`adj2`,e,.5)*n)/t.h;return{top:t.h/2-r/2,bottom:t.h/2-r/2,left:0,right:i,w:t.w-i,h:r}}(e);break;case`notchedRightArrow`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.5)*t.h,i=Q(`adj2`,e,.5)*n,a=r*i/t.h,o=t.h/2-r/2,s=t.h/2+r/2,c=Z(`path`),l=[`M0,${o}`,`L${t.w-i},${o}`,`L${t.w-i},0`,`L${t.w},${t.h/2}`,`L${t.w-i},${t.h}`,`L${t.w-i},${s}`,`L0,${s}`,`L${a},${t.h/2}`,`Z`].join(` `);return c.setAttribute(`d`,l),c}(e),m=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.5)*t.h,i=Q(`adj2`,e,.5)*n,a=r*i/t.h,o=r*i/t.h;return{top:t.h/2-r/2,bottom:t.h/2-r/2,left:a,right:o,w:t.w-a-o,h:r}}(e);break;case`homePlate`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj`,e,.5)*n,i=Z(`path`),a=[`M0,0`,`L${t.w-r},0`,`L${t.w},${t.h/2}`,`L${t.w-r},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj`,e,.5)*n;return{top:0,bottom:0,left:0,right:r/2,w:t.w-r/2,h:t.h}}(e);break;case`chevron`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj`,e,.5)*n,i=Z(`path`),a=[`M0,0`,`L${t.w-r},0`,`L${t.w},${t.h/2}`,`L${t.w-r},${t.h}`,`L0,${t.h}`,`L${r},${t.h/2}`,`Z`].join(` `);return i.setAttribute(`d`,a),i}(e),m=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj`,e,.5)*n;return{top:0,bottom:0,left:r,right:r,w:t.w-2*r,h:t.h}}(e);break;case`blockArc`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Z(`path`),i=Q(`adj1`,e,180),a=Q(`adj2`,e,0),o=$(`adj3`,e,.25*n),s=t.w/2,c=t.h/2,l=t.w/2,u=t.h/2,d=t.w/2-o,f=t.h/2-o,p=F$(i,s,c,l,u),m=p[0],h=p[1],g=F$(a,s,c,l,u),_=g[0],v=g[1],y=F$(i,s,c,d,f),b=y[0],x=y[1],S=F$(a,s,c,d,f),C=S[0],w=S[1],T=I$(i,a),E=[`M${m},${h}`,`A${l} ${u} 0 ${T} 1 ${_} ${v}`,`L${C},${w}`,`A${d} ${f} 0 ${T} 0 ${b} ${x}`,`Z`].join(` `);return r.setAttribute(`d`,E),r}(e),m=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,180),i=Q(`adj2`,e,0),a=$(`adj3`,e,.25*n),o=t.w/2,s=t.h/2,c=t.w/2,l=t.h/2,u=t.w/2-a,d=t.h/2-a,f=F$(r,o,s,c,l),p=f[0],m=f[1],h=F$(i,o,s,c,l),g=h[0],_=h[1],v=F$(r,o,s,u,d),y=v[0],b=v[1],x=F$(i,o,s,u,d),S=[[p,m],[g,_],[y,b],[x[0],x[1]]];S.push(),r>i&&S.push([t.w,t.h/2]),(i>180&&i<=360&&r<180||r>i&&i>=0&&i<180&&r<180)&&S.push([0,t.h/2]),(r<i&&r<90&&i>90||r>i&&i>90||r>i&&r<90)&&S.push([t.w/2,t.h]),(r<i&&r<270&&i>270||r>i&&i>270||r>i&&r<270)&&S.push([t.w/2,0]);var C=1/0,w=1/0,T=-1/0,E=-1/0;return S.forEach((function(e){C=Math.min(e[0],C),w=Math.min(e[1],w),T=Math.max(e[0],T),E=Math.max(e[1],E)})),{top:w,bottom:t.h-E,left:C,right:t.w-T,w:T-C,h:E-w}}(e);break;case`foldedCorner`:d=function(e){var t=e.extend,n=e.background,r=Z(`g`),i=Z(`path`),a=$(`adj`,e,.16667*Math.min(t.w,t.h)),o=[`M0,0`,`L${t.w},0`,`L${t.w},${t.h-a}`,`L${t.w-a},${t.h}`,`L0,${t.h}`,`Z`].join(` `);i.setAttribute(`d`,o);var s=a*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),c=Z(`path`),l=[`M${t.w-a+s}, ${t.h-a+s}`,`L${t.w},${t.h-a}`,`L${t.w-a},${t.h}`,`Z`].join(` `);return c.setAttribute(`d`,l),n?.type===`solidFill`&&c.setAttribute(`fill`,n$(n,{dark:.6})||`transparent`),r.appendChild(i),r.appendChild(c),r}(e),m=function(e){var t=e.extend,n=$(`adj`,e,.16667*Math.min(t.w,t.h));return{top:0,bottom:n,left:0,right:0,w:t.w,h:t.h-n}}(e);break;case`rightArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.25)*n,i=Q(`adj2`,e,.25)*n,a=Q(`adj3`,e,.25)*n,o=Q(`adj4`,e,.64977)*t.w,s=Z(`path`),c=[`M0,0`,`L${o},0`,`L${o},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-i}`,`L${t.w},${t.h/2}`,`L${t.w-a},${t.h/2+i}`,`L${t.w-a},${t.h/2+r/2}`,`L${o},${t.h/2+r/2}`,`L${o},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.64977)*t.w;return{top:0,bottom:0,left:0,right:t.w-n,w:n,h:t.h}}(e);break;case`leftArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.25)*n,i=Q(`adj2`,e,.25)*n,a=Q(`adj3`,e,.25)*n,o=Q(`adj4`,e,.64977)*t.w,s=Z(`path`),c=[`M0,${t.h/2}`,`L${a},${t.h/2-i}`,`L${a},${t.h/2-r/2}`,`L${t.w-o},${t.h/2-r/2}`,`L${t.w-o},0`,`L${t.w},0`,`L${t.w},${t.h}`,`L${t.w-o},${t.h}`,`L${t.w-o},${t.h/2+r/2}`,`L${a},${t.h/2+r/2}`,`L${a},${t.h/2+i}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.64977)*t.w;return{top:0,bottom:0,left:t.w-n,right:0,w:n,h:t.h}}(e);break;case`upArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.25)*n,i=Q(`adj2`,e,.25)*n,a=Q(`adj3`,e,.25)*n,o=Q(`adj4`,e,.64977)*t.h,s=Z(`path`),c=[`M0,${t.h-o}`,`L${t.w/2-r/2},${t.h-o}`,`L${t.w/2-r/2},${a}`,`L${t.w/2-i},${a}`,`L${t.w/2},0`,`L${t.w/2+i},${a}`,`L${t.w/2+r/2},${a}`,`L${t.w/2+r/2},${t.h-o}`,`L${t.w},${t.h-o}`,`L${t.w},${t.h}`,`L0,${t.h}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.64977)*t.h;return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(e);break;case`downArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.25)*n,i=Q(`adj2`,e,.25)*n,a=Q(`adj3`,e,.25)*n,o=Q(`adj4`,e,.64977)*t.h,s=Z(`path`),c=[`M0,0`,`L${t.w},0`,`L${t.w},${o}`,`L${t.w/2+r/2},${o}`,`L${t.w/2+r/2},${t.h-a}`,`L${t.w/2+i},${t.h-a}`,`L${t.w/2},${t.h}`,`L${t.w/2-i},${t.h-a}`,`L${t.w/2-r/2},${t.h-a}`,`L${t.w/2-r/2},${o}`,`L0,${o}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.64977)*t.h;return{top:0,bottom:t.h-n,left:0,right:0,w:t.w,h:n}}(e);break;case`leftRightArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.25)*n,i=Q(`adj2`,e,.25)*n,a=Q(`adj3`,e,.25)*n,o=Q(`adj4`,e,.48123)*t.w,s=Z(`path`),c=[`M0,${t.h/2}`,`L${a},${t.h/2-i}`,`L${a},${t.h/2-r/2}`,`L${t.w/2-o/2},${t.h/2-r/2}`,`L${t.w/2-o/2},0`,`L${t.w/2+o/2},0`,`L${t.w/2+o/2},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-i}`,`L${t.w},${t.h/2}`,`L${t.w-a},${t.h/2+i}`,`L${t.w-a},${t.h/2+r/2}`,`L${t.w/2+o/2},${t.h/2+r/2}`,`L${t.w/2+o/2},${t.h}`,`L${t.w/2-o/2},${t.h}`,`L${t.w/2-o/2},${t.h/2+r/2}`,`L${a},${t.h/2+r/2}`,`L${a},${t.h/2+i}`,`Z`].join(` `);return s.setAttribute(`d`,c),s}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.48123)*t.w;return{top:0,bottom:0,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h}}(e);break;case`quadArrowCallout`:d=function(e){var t=e.extend,n=Math.min(t.w,t.h),r=Q(`adj1`,e,.18515)*n,i=Q(`adj2`,e,.18515)*n,a=Q(`adj3`,e,.18515)*n,o=Q(`adj4`,e,.48123)*t.w,s=Q(`adj4`,e,.48123)*t.h,c=Z(`path`),l=[`M0,${t.h/2}`,`L${a},${t.h/2-i}`,`L${a},${t.h/2-r/2}`,`L${t.w/2-o/2},${t.h/2-r/2}`,`L${t.w/2-o/2},${t.h/2-s/2}`,`L${t.w/2-r/2},${t.h/2-s/2}`,`L${t.w/2-r/2},${a}`,`L${t.w/2-i},${a}`,`L${t.w/2},0`,`L${t.w/2+i},${a}`,`L${t.w/2+r/2},${a}`,`L${t.w/2+r/2},${t.h/2-s/2}`,`L${t.w/2+o/2},${t.h/2-s/2}`,`L${t.w/2+o/2},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-r/2}`,`L${t.w-a},${t.h/2-i}`,`L${t.w},${t.h/2}`,`L${t.w-a},${t.h/2+i}`,`L${t.w-a},${t.h/2+r/2}`,`L${t.w/2+o/2},${t.h/2+r/2}`,`L${t.w/2+o/2},${t.h/2+s/2}`,`L${t.w/2+r/2},${t.h/2+s/2}`,`L${t.w/2+r/2},${t.h-a}`,`L${t.w/2+i},${t.h-a}`,`L${t.w/2},${t.h}`,`L${t.w/2-i},${t.h-a}`,`L${t.w/2-r/2},${t.h-a}`,`L${t.w/2-r/2},${t.h/2+s/2}`,`L${t.w/2-o/2},${t.h/2+s/2}`,`L${t.w/2-o/2},${t.h/2+r/2}`,`L${a},${t.h/2+r/2}`,`L${a},${t.h/2+i}`,`Z`].join(` `);return c.setAttribute(`d`,l),c}(e),m=function(e){var t=e.extend,n=Q(`adj4`,e,.48123)*t.w,r=Q(`adj4`,e,.48123)*t.h;return{top:t.h/2-r/2,bottom:t.h/2-r/2,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:r}}(e)}d&&(h?i?.type===`blipFill`?function(e,t,n){var r=e.background,i=r===void 0?{}:r,a=e.extend,o=i.base64,s=i.alpha,c=i.fillRect,l=c===void 0?{}:c,u=l.b,d=u===void 0?0:u,f=l.t,p=f===void 0?0:f,m=l.l,h=m===void 0?0:m,g=l.r,_=g===void 0?0:g,v=Z(`defs`),y=Z(`pattern`);y.setAttribute(`id`,`background_`+e.uuid),y.setAttribute(`patternUnits`,`userSpaceOnUse`),y.setAttribute(`width`,a.w+``),y.setAttribute(`height`,a.h+``);var b=Z(`image`);b.setAttribute(`href`,o),b.setAttribute(`preserveAspectRatio`,`none`);var x=a.w*h,S=a.h*p,C=a.w*(1-h-_),w=a.h*(1-p-d);b.setAttribute(`width`,C+``),b.setAttribute(`height`,w+``),b.setAttribute(`x`,x+``),b.setAttribute(`y`,S+``),typeof s==`number`&&b.setAttribute(`opacity`,s+``),y.appendChild(b),v.appendChild(y),t.appendChild(v),n.setAttribute(`fill`,`url(#background_${e.uuid})`)}(e,p,d):i?.type===`gradFill`?function(e,t,n){var r=e.background,i=r===void 0?{}:r;e.extend;var a=i.gsList,o=i.lin,s=i.path,c=i.tileRect,l=c===void 0?{}:c,u=Z(`defs`),d=Z(s===`circle`?`radialGradient`:`linearGradient`);d.setAttribute(`id`,`background_grad_fill_`+e.uuid);var f=a||[];if(f.sort((function(e,t){return e.pos-t.pos})),f.forEach((function(e){var t=Z(`stop`);t.setAttribute(`offset`,`${100*e.pos}%`),t.setAttribute(`stop-color`,n$(e.color)),d.appendChild(t)})),s===`circle`){var p=l.r,m=l.l,h=l.t,g=l.b;p===-1?d.setAttribute(`cx`,`100%`):m===-1&&d.setAttribute(`cx`,`0%`),h===-1?d.setAttribute(`cy`,`0%`):g===-1&&d.setAttribute(`cy`,`100%`)}else o!=null&&o.ang&&d.setAttribute(`gradientTransform`,`rotate(${o.ang})`);u.appendChild(d),t.appendChild(u),n.setAttribute(`fill`,`url(#background_grad_fill_${e.uuid})`)}(e,p,d):d.setAttribute(`fill`,n$(i)||`transparent`):d.setAttribute(`fill`,`transparent`),r.width?(d.setAttribute(`stroke-width`,r.width+`px`),d.setAttribute(`stroke`,n$(r.color)||`transparent`)):d.setAttribute(`stroke-width`,`0`),d.setAttribute(`stroke-dasharray`,function(e){return e&&e.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]}[e.type]||[]).map((function(t){return t*e.width})).join(`,`):``}(r)),d.setAttribute(`stroke-linecap`,r.cap&&{sq:`square`,rnd:`round`,flat:`butt`}[r.cap]||`square`),d.setAttribute(`stroke-linejoin`,r.lineJoin||`round`),r.lineJoin===`miter`&&d.setAttribute(`stroke-miterlimit`,r.miterLim+``),p.appendChild(d));var g=[];o&&g.push(`scaleX(-1)`),s&&g.push(`scaleY(-1)`),p.style.setProperty(`transform`,g.join(` `)),c.appendChild(p);var _=function(e,t,n){var r;n===void 0&&(n=!1);var i=e.inheritProps,a=e.props,o=e.paragraphs;if(!o||o.length===0)return null;var s=f(f({},i),a),c=document.createElement(`div`);switch(c.className=`text-wrapper`,c.style.boxSizing=`border-box`,c.style.position=`absolute`,c.style.left=t.left+`px`,s.vert===`eaVert`?(c.style.writingMode=`vertical-rl`,c.style.height=t.h+`px`):c.style.width=t.w+`px`,s.anchor){case`b`:c.style.bottom=t.bottom+`px`;break;case`t`:c.style.top=t.top+`px`;break;case`ctr`:c.style.top=t.top+t.h/2+`px`,c.style.transform=`translateY(-50%)`;break;default:n?c.style.top=t.top+`px`:(c.style.top=t.top+t.h/2+`px`,c.style.transform=`translateY(-50%)`)}var l=[s.hasOwnProperty(`tIns`)?Math.floor(s.tIns)+`px`:`3px`,s.hasOwnProperty(`rIns`)?Math.floor(s.rIns)+`px`:`5px`,s.hasOwnProperty(`bIns`)?Math.floor(s.bIns)+`px`:`3px`,s.hasOwnProperty(`lIns`)?Math.floor(s.lIns)+`px`:`5px`];c.style.padding=l.join(` `);for(var u={},d=0,p=function(e){var t=f(f({},e.inheritProps),e.props),n=void 0;if(t.buAutoNum){var i=t.level?+t.level:0;u[i]||(u[i]=0),(r=e.rows)!=null&&r.length&&u[i]++,Object.keys(u).forEach((function(e){+e>i&&(u[e]=0)})),n=C$(e,u[i],{isFirst:d===0,isLast:o.length-1===d,bodyProps:s})}else n=C$(e,0,{isFirst:d===0,isLast:o.length-1===d,bodyProps:s});c.appendChild(n),d++},m=0,h=o;m<h.length;m++)p(h[m]);return c}(e.textBody,m,e.isTextBox);return _&&c.appendChild(_),a&&c.style.setProperty(`transform`,`rotate(${a}deg)`),c}function z$(e){var t=document.createElement(`div`),n=e.extend;e.chExtend;var r=e.offset;e.chOffset;var i=e.flipV,a=e.flipH,o=e.rotate,s=r.x,c=r.y,l=n.w,u=n.h;t.className=`group`,t.style.position=`absolute`,t.style.left=s+`px`,t.style.top=c+`px`,t.style.width=l+`px`,t.style.height=u+`px`;var d=[];a&&d.push(`scaleX(-1)`),i&&d.push(`scaleY(-1)`),o&&d.push(`rotate(${o}deg)`),t.style.transformOrigin=`center center`,t.style.transform=d.join(` `);for(var f=0;f<e.nodes.length;f++){var p=e.nodes[f],m=void 0;p instanceof s$?m=b$(p):p instanceof o$?m=R$(p):p instanceof l$&&(m=z$(p)),m&&t.appendChild(m)}return t}var B$={};function V$(e,t){B$[e]||(B$[e]=[]),B$[e].push(t)}function H$(e,t){if(B$[e])for(var n=0;n<B$[e].length;n++)B$[e][n](t)}function U$(e,t){B$?B$[e]&&(B$[e]=B$[e].filter((function(e){return e!==t}))):B$[e]=[]}var W$=function(){function e(e,t,n){this.scale=1,this.wrapper=e,this.pptx=t,this.options=n,this._calcScaleAndRenderPort()}return e.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}},e.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-${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)},e.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(${this.scale})`),n.style.setProperty(`transform-origin`,`0 0`);var r=h([],e.nodes,!0).filter((function(e){return e.userDrawn}));r.sort((function(e,t){return e.order>t.order?1:-1}));for(var i=0;i<r.length;i++){var a=this._renderNode(r[i]);a&&n.append(a)}t.append(n)},e.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(${this.scale})`),n.style.setProperty(`transform-origin`,`0 0`);var r=h([],e.nodes,!0).filter((function(e){return e.userDrawn}));r.sort((function(e,t){return e.order>t.order?1:-1}));for(var i=0;i<r.length;i++){var a=this._renderNode(r[i]);a&&n.append(a)}t.append(n)},e.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(${this.scale})`),n.style.setProperty(`transform-origin`,`0 0`);var r=h([],e.nodes,!0);r.sort((function(e,t){return e.order>t.order?1:-1}));for(var i=0;i<r.length;i++){var a=this._renderNode(r[i]);a&&n.append(a)}t.append(n)},e.prototype._renderNode=function(e){return e instanceof s$?b$(e):e instanceof o$?R$(e):e instanceof l$?z$(e):e instanceof u$?function(e){var t=document.createElement(`div`),n=e.extend,r=e.offset,i=e.flipV,a=e.flipH,o=e.rotate,s=r.x,c=r.y,l=n.w,u=n.h;t.className=`smart-chart-diagram`,t.style.position=`absolute`,t.style.left=s+`px`,t.style.top=c+`px`,t.style.width=l+`px`,t.style.height=u+`px`;var d=[];a&&d.push(`scaleX(-1)`),i&&d.push(`scaleY(-1)`),o&&d.push(`rotate(${o}deg)`),t.style.transformOrigin=`center center`,t.style.transform=d.join(` `);for(var f=0;f<e.nodes.length;f++){var p=e.nodes[f],m=void 0;p instanceof s$?m=b$(p):p instanceof o$&&(m=R$(p)),m&&t.appendChild(m)}return t}(e):e instanceof c$?function(e){var t=e.extend,n=e.offset,r=e.tr,i=e.tableGrid.gridCol,a=document.createElement(`div`);a.style.position=`absolute`,a.style.left=n.x+`px`,a.style.top=n.y+`px`,a.style.width=t.w+`px`,a.style.height=t.h+`px`;var o=document.createElement(`table`);return o.style.borderCollapse=`collapse`,r.forEach((function(e){var t=e.props,n=e.td,r=t.height,a=document.createElement(`tr`);a.style.height=r+`px`,n.forEach((function(e,t){var n,r=e.props,o=e.inheritTcStyle,s=e.inheritTcTxStyle,c=e.paragraphs;if(!r.vMerge&&!r.hMerge){var l=document.createElement(`td`);l.style.width=(i[t]?.width||30)+`px`,r.rowSpan&&l.setAttribute(`rowspan`,r.rowSpan+``),r.gridSpan&&l.setAttribute(`colspan`,r.gridSpan+``);var u=r.background||o.background;u&&(l.style.background=n$(u));var d=f(f({},o.border),r.border),p=function(e){return e?e.toLowerCase().includes(`dash`)?`dashed`:e.toLowerCase().includes(`dot`)?`dotted`:`solid`:`solid`};d.bottom&&(l.style.borderBottom=`${d.bottom.width}px ${p(d.bottom.type)} ${n$(d.bottom.color)}`),d.top&&(l.style.borderTop=`${d.top.width}px ${p(d.top.type)} ${n$(d.top.color)}`),d.left&&(l.style.borderLeft=`${d.left.width}px ${p(d.left.type)} ${n$(d.left.color)}`),d.right&&(l.style.borderRight=`${d.right.width}px ${p(d.right.type)} ${n$(d.right.color)}`);var m=document.createElement(`div`);switch(m.className=`text-wrapper`,m.style.boxSizing=`border-box`,m.style.width=`100%`,m.style.height=`100%`,m.style.overflow=`hidden`,m.style.display=`flex`,m.style.flexDirection=`column`,r.anchor){case`b`:m.style.justifyContent=`flex-end`;break;case`t`:m.style.justifyContent=`flex-start`;break;case`ctr`:m.style.justifyContent=`center`}var h=[r.hasOwnProperty(`marT`)?Math.floor(r.marT)+`px`:`3px`,r.hasOwnProperty(`marR`)?Math.floor(r.marR-1)+`px`:`5px`,r.hasOwnProperty(`marB`)?Math.floor(r.marB)+`px`:`3px`,r.hasOwnProperty(`marL`)?Math.floor(r.marL-1)+`px`:`5px`];m.style.padding=h.join(` `);for(var g=f({},r),_={},v=c.map((function(e){return f(f({},e),{props:f({align:`l`},e.props),inheritRProps:f(f({},e.inheritRProps),s)})})),y=0,b=function(e){var t=f(f({},e.inheritProps),e.props),r=void 0;if(t.buAutoNum){var i=t.level?+t.level:0;_[i]||(_[i]=0),(n=e.rows)!=null&&n.length&&_[i]++,Object.keys(_).forEach((function(e){+e>i&&(_[e]=0)})),r=C$(e,_[i],{isFirst:y===0,isLast:c.length-1===y,bodyProps:g})}else r=C$(e,0,{isFirst:y===0,isLast:c.length-1===y,bodyProps:g});m.appendChild(r),y++},x=0,S=v;x<S.length;x++)b(S[x]);l.append(m),a.append(l)}})),o.append(a)})),a.append(o),a}(e):e instanceof d$?function(e){var t=document.createElement(`div`),n=e.extend,r=e.offset,i=e.flipV,a=e.flipH,o=e.rotate,s=e.options,c=r.x,l=r.y,u=n.w,d=n.h;t.className=`chart-node`,t.style.position=`absolute`,t.style.left=c+`px`,t.style.top=l+`px`,t.style.width=u+`px`,t.style.height=d+`px`;var f=[];return a&&f.push(`scaleX(-1)`),i&&f.push(`scaleY(-1)`),o&&f.push(`rotate(${o}deg)`),t.style.transformOrigin=`center center`,t.style.transform=f.join(` `),setTimeout((function(){var e=Ux(t,null,{renderer:`svg`});e.setOption(s),V$(`destroy`,(function(){e&&e.dispose(),e&&=null})),V$(`removeSlide`,(function(){e&&e.dispose(),e&&=null}))}),0),t}(e):void 0},e.prototype._renderBackground=function(e,t){var n=document.createElement(`div`);n.classList.add(`slide-background`),n.style.setProperty(`position`,`absolute`),n.style.setProperty(`left`,`0`),n.style.setProperty(`top`,`0`),n.style.setProperty(`width`,`100%`),n.style.setProperty(`height`,`100%`);var r=e.background;if(r.type===`none`&&(r=e.slideLayout.background),r.type===`none`&&(r=e.slideMaster.background),r.type===`blipFill`){var i=r,a=i.base64,o=i.alpha,s=i.fillRect,c=s===void 0?{}:s,l=c.b,u=l===void 0?0:l,d=c.t,f=d===void 0?0:d,p=c.l,m=p===void 0?0:p,h=c.r,g=h===void 0?0:h,_=this.renderPort.width*m,v=this.renderPort.height*f,y=this.renderPort.width*(1-m-g),b=this.renderPort.height*(1-f-u);n.style.backgroundImage=`url(${a})`,n.style.backgroundSize=`${y} ${b}`,n.style.backgroundPosition=`${_}px ${v}px`,o&&(n.style.opacity=o+``),n.style.backgroundRepeat=`no-repeat`}else if(r.type===`solidFill`){var x=n$(e.background)||n$(e.slideLayout.background)||n$(e.slideMaster.background);x?n.style.setProperty(`background`,x):n.style.setProperty(`background`,`#fff`)}else if(r.type===`gradFill`)if(r.path===`circle`){var S=r.tileRect||{},C=(u=S.b,f=S.t,m=S.l,`radial-gradient(circle at `);(g=S.r)===-1?C+=` right`:m===-1&&(C+=` left`),f===-1?C+=` top`:u===-1&&(C+=` bottom`),u||f||m||g||(C+=` center`),C+=`,`,C+=r.gsList.map((function(e){return`${n$(e.color)} ${100*e.pos+`%`}`})).join(`,`),n.style.setProperty(`background`,C)}else C=`linear-gradient(${(r?.lin?.ang||0)+90}deg,`,C+=r.gsList.map((function(e){return`${n$(e.color)} ${100*e.pos+`%`}`})).join(`,`),n.style.setProperty(`background`,C);t.append(n)},e}(),G$=function(){function e(e,t){this.currentIndex=-1,this.dom=e,this.options=t,this._renderWrapper()}return Object.defineProperty(e.prototype,"slideCount",{get:function(){return this.pptx?.slides?.length},enumerable:!1,configurable:!0}),e.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},e.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},e.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},e.prototype.updatePagination=function(){var e=this.wrapper.querySelector(`.pptx-preview-wrapper-pagination`);e&&(e.innerText=`${this.currentIndex+1}/${this.slideCount}`)},e.prototype.renderPagination=function(e){var t=document.createElement(`div`);t.classList.add(`pptx-preview-wrapper-pagination`),t.innerText=`${this.currentIndex+1}/${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)},e.prototype.removeCurrentSlide=function(){var e=this.wrapper.querySelector(`.pptx-preview-slide-wrapper-${this.currentIndex}`);e&&this.wrapper.removeChild(e),H$(`removeSlide`)},e.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},e.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},e.prototype._addPre=function(e){},e.prototype.preview=function(e){var t=this;return H$(`destroy`),U$(`destroy`),new Promise((function(n,r){t.wrapper.innerHTML=``;var i=t.pptx=new y$;i.load(e).then((function(){try{var e=t.htmlRender=new W$(t.wrapper,i,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode});if(t.options.mode===`slide`){var a=t.renderNextButton();a.onclick=function(){t.renderNextSlide()},t.wrapper.append(a);var o=t.renderPreButton();o.onclick=function(){t.renderPreSlide()},t.wrapper.append(o),t.renderPagination(t.wrapper),t._addPre(t.wrapper),t.currentIndex=0,e.renderSlide(0)}else for(var s=0;s<i.slides.length;s++)e.renderSlide(s);n(i)}catch(e){r(e)}})).catch((function(e){r(e)}))}))},e.prototype.load=function(e){var t=this;return H$(`destroy`),U$(`destroy`),new Promise((function(n,r){t.wrapper.innerHTML=``;var i=t.pptx=new y$;i.load(e).then((function(){try{t.htmlRender=new W$(t.wrapper,i,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode}),n(i)}catch(e){r(e)}})).catch((function(e){r(e)}))}))},e.prototype.renderSingleSlide=function(e){this.removeCurrentSlide(),this.currentIndex=e,this.htmlRender.renderSlide(this.currentIndex)},e.prototype.destroy=function(){H$(`destroy`),U$(`destroy`)},e}();function K$(e,t){return new G$(e,t)}var q$=r();function J$(e){e.querySelectorAll(`img`).forEach(e=>{let 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 Y$(e){e.querySelectorAll(`.text-wrapper span`).forEach(e=>{!e.style.fontFamily&&parseFloat(e.style.letterSpacing)<0&&(e.style.letterSpacing=``)}),e.querySelectorAll(`.text-wrapper p`).forEach(e=>{e.style.lineHeight===`1`&&(e.style.lineHeight=`1.15`)})}function X$(e,t,n){e.forEach((e,r)=>{t===`navigation`?(e.style.display=r===n?``:`none`,e.style.marginBottom=`0`,e.style.marginTop=`0`):(e.style.display=``,e.style.marginBottom=``,e.style.marginTop=``)})}function Z$({data:e,mode:t=`scroll`,className:n,onError:r}){let i=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(null),d=(0,l.useRef)([]),f=(0,l.useRef)(0),p=(0,l.useRef)(t),[m,h]=(0,l.useState)(!1),[g,_]=(0,l.useState)(null),[v,y]=(0,l.useState)(0),[b,x]=(0,l.useState)(0);(0,l.useEffect)(()=>{p.current=t},[t]);let S=t===`navigation`,C=v>0,w=v<b-1,T=(0,l.useCallback)(e=>{let t=d.current;!t.length||e<0||e>=t.length||(X$(t,`navigation`,e),f.current=e,y(e))},[]),E=(0,l.useCallback)(e=>{let t=d.current;if(!t.length)return;let n=Math.min(f.current,t.length-1);X$(t,e,n),e===`navigation`&&(f.current=n,y(n))},[]);(0,l.useEffect)(()=>{E(t)},[t,E]),(0,l.useEffect)(()=>{if(t!==`navigation`)return;let e=e=>{e.target instanceof HTMLSelectElement||(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),T(f.current+1)):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),T(f.current-1)))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t,T]);let D=(0,l.useCallback)(async t=>{let n=u.current;if(!(!n||t===0)){h(!0),_(null),n.innerHTML=``,d.current=[];try{await K$(n,{width:t,mode:`list`}).preview(e.slice(0)),J$(n),Y$(n);let r=Array.from(n.querySelectorAll(`.pptx-preview-slide-wrapper`));d.current=r,x(r.length);let i=p.current,a=Math.min(f.current,r.length-1);X$(r,i,a),i===`navigation`&&(f.current=a,y(a))}catch(e){let t=e instanceof Error?e:Error(`Failed to render presentation`);_(t.message),r?.(t)}finally{h(!1)}}},[e,r]);return(0,l.useEffect)(()=>{let e=!1,t=0,n=null,r;function i(){if(e||!u.current)return;let n=Math.floor(u.current.getBoundingClientRect().width);n===0||n===t||(t=n,D(n))}let a=requestAnimationFrame(()=>{e||(i(),c.current&&(n=new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,250)}),n.observe(c.current)))});return()=>{e=!0,cancelAnimationFrame(a),clearTimeout(r),n?.disconnect()}},[e,D]),(0,q$.jsxs)(`div`,{ref:i,className:`ov-pptx${S?` ov-pptx--nav`:``}${n?` ${n}`:``}`,children:[m&&(0,q$.jsxs)(`div`,{className:`ov-pptx__loading${S?` ov-pptx__loading--nav`:``}`,children:[(0,q$.jsx)(a,{className:`ov-pptx__loading-icon`}),(0,q$.jsx)(`span`,{className:`ov-pptx__loading-text`,children:`Rendering slides…`})]}),g&&(0,q$.jsx)(`div`,{className:`ov-pptx__error`,children:g}),(0,q$.jsx)(`div`,{ref:c,className:`ov-pptx__slide-area`,style:{visibility:m?`hidden`:`visible`},children:(0,q$.jsx)(`div`,{ref:u,className:`pptx-host ov-pptx__host`})}),S&&!m&&b>0&&(0,q$.jsxs)(q$.Fragment,{children:[(0,q$.jsx)(`button`,{onClick:()=>T(f.current-1),disabled:!C,"aria-label":`Previous slide`,className:`ov-pptx__nav-btn ov-pptx__nav-btn--prev`,children:(0,q$.jsx)(o,{className:`ov-pptx__nav-btn-icon`,strokeWidth:2})}),(0,q$.jsx)(`button`,{onClick:()=>T(f.current+1),disabled:!w,"aria-label":`Next slide`,className:`ov-pptx__nav-btn ov-pptx__nav-btn--next`,children:(0,q$.jsx)(s,{className:`ov-pptx__nav-btn-icon`,strokeWidth:2})}),(0,q$.jsxs)(`div`,{className:`ov-pptx__nav-counter`,children:[(0,q$.jsx)(`span`,{className:`ov-pptx__nav-current`,children:v+1}),(0,q$.jsxs)(`span`,{className:`ov-pptx__nav-total`,children:[` of `,b]})]})]})]})}export{Z$ as PptxViewer};