mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-07 07:18:00 +08:00
159 lines
1.5 MiB
159 lines
1.5 MiB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q0={exports:{}},IQ=q0.exports,_R;function oz(){return _R||(_R=1,function(e,t){(function(r,n){e.exports=n()})(IQ,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",v="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var F=["th","st","nd","rd"],B=O%100;return"["+O+(F[(B-20)%10]||F[B]||F[0])+"]"}},b=function(O,F,B){var W=String(O);return!W||W.length>=F?O:""+Array(F+1-W.length).join(B)+O},w={s:b,z:function(O){var F=-O.utcOffset(),B=Math.abs(F),W=Math.floor(B/60),z=B%60;return(F<=0?"+":"-")+b(W,2,"0")+":"+b(z,2,"0")},m:function O(F,B){if(F.date()<B.date())return-O(B,F);var W=12*(B.year()-F.year())+(B.month()-F.month()),z=F.clone().add(W,f),j=B-z<0,ee=F.clone().add(W+(j?-1:1),f);return+(-(W+(B-z)/(j?z-ee:ee-z))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:d,w:c,d:u,D:v,h:l,m:s,s:o,ms:a,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},C="en",x={};x[C]=S;var A="$isDayjsObject",D=function(O){return O instanceof R||!(!O||!O[A])},M=function O(F,B,W){var z;if(!F)return C;if(typeof F=="string"){var j=F.toLowerCase();x[j]&&(z=j),B&&(x[j]=B,z=j);var ee=F.split("-");if(!z&&ee.length>1)return O(ee[0])}else{var te=F.name;x[te]=F,z=te}return!W&&z&&(C=z),z||!W&&C},I=function(O,F){if(D(O))return O.clone();var B=typeof F=="object"?F:{};return B.date=O,B.args=arguments,new R(B)},P=w;P.l=M,P.i=D,P.w=function(O,F){return I(O,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var R=function(){function O(B){this.$L=M(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var F=O.prototype;return F.parse=function(B){this.$d=function(W){var z=W.date,j=W.utc;if(z===null)return new Date(NaN);if(P.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var ee=z.match(m);if(ee){var te=ee[2]-1||0,me=(ee[7]||"0").substring(0,3);return j?new Date(Date.UTC(ee[1],te,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,me)):new Date(ee[1],te,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,me)}}return new Date(z)}(B),this.init()},F.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},F.$utils=function(){return P},F.isValid=function(){return this.$d.toString()!==p},F.isSame=function(B,W){var z=I(B);return this.startOf(W)<=z&&z<=this.endOf(W)},F.isAfter=function(B,W){return I(B)<this.startOf(W)},F.isBefore=function(B,W){return this.endOf(W)<I(B)},F.$g=function(B,W,z){return P.u(B)?this[W]:this.set(z,B)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(B,W){var z=this,j=!!P.u(W)||W,ee=P.p(B),te=function(pe,ye){var xe=P.w(z.$u?Date.UTC(z.$y,ye,pe):new Date(z.$y,ye,pe),z);return j?xe:xe.endOf(u)},me=function(pe,ye){return P.w(z.toDate()[pe].apply(z.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(ye)),z)},Ae=this.$W,Pe=this.$M,Oe=this.$D,Ue="set"+(this.$u?"UTC":"");switch(ee){case d:return j?te(1,0):te(31,11);case f:return j?te(1,Pe):te(0,Pe+1);case c:var se=this.$locale().weekStart||0,he=(Ae<se?Ae+7:Ae)-se;return te(j?Oe-he:Oe+(6-he),Pe);case u:case v:return me(Ue+"Hours",0);case l:return me(Ue+"Minutes",1);case s:return me(Ue+"Seconds",2);case o:return me(Ue+"Milliseconds",3);default:return this.clone()}},F.endOf=function(B){return this.startOf(B,!1)},F.$set=function(B,W){var z,j=P.p(B),ee="set"+(this.$u?"UTC":""),te=(z={},z[u]=ee+"Date",z[v]=ee+"Date",z[f]=ee+"Month",z[d]=ee+"FullYear",z[l]=ee+"Hours",z[s]=ee+"Minutes",z[o]=ee+"Seconds",z[a]=ee+"Milliseconds",z)[j],me=j===u?this.$D+(W-this.$W):W;if(j===f||j===d){var Ae=this.clone().set(v,1);Ae.$d[te](me),Ae.init(),this.$d=Ae.set(v,Math.min(this.$D,Ae.daysInMonth())).$d}else te&&this.$d[te](me);return this.init(),this},F.set=function(B,W){return this.clone().$set(B,W)},F.get=function(B){return this[P.p(B)]()},F.add=function(B,W){var z,j=this;B=Number(B);var ee=P.p(W),te=function(Pe){var Oe=I(j);return P.w(Oe.date(Oe.date()+Math.round(Pe*B)),j)};if(ee===f)return this.set(f,this.$M+B);if(ee===d)return this.set(d,this.$y+B);if(ee===u)return te(1);if(ee===c)return te(7);var me=(z={},z[s]=n,z[l]=i,z[o]=r,z)[ee]||1,Ae=this.$d.getTime()+B*me;return P.w(Ae,this)},F.subtract=function(B,W){return this.add(-1*B,W)},F.format=function(B){var W=this,z=this.$locale();if(!this.isValid())return z.invalidDate||p;var j=B||"YYYY-MM-DDTHH:mm:ssZ",ee=P.z(this),te=this.$H,me=this.$m,Ae=this.$M,Pe=z.weekdays,Oe=z.months,Ue=z.meridiem,se=function(ye,xe,ke,H){return ye&&(ye[xe]||ye(W,j))||ke[xe].slice(0,H)},he=function(ye){return P.s(te%12||12,ye,"0")},pe=Ue||function(ye,xe,ke){var H=ye<12?"AM":"PM";return ke?H.toLowerCase():H};return j.replace(y,function(ye,xe){return xe||function(ke){switch(ke){case"YY":return String(W.$y).slice(-2);case"YYYY":return P.s(W.$y,4,"0");case"M":return Ae+1;case"MM":return P.s(Ae+1,2,"0");case"MMM":return se(z.monthsShort,Ae,Oe,3);case"MMMM":return se(Oe,Ae);case"D":return W.$D;case"DD":return P.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return se(z.weekdaysMin,W.$W,Pe,2);case"ddd":return se(z.weekdaysShort,W.$W,Pe,3);case"dddd":return Pe[W.$W];case"H":return String(te);case"HH":return P.s(te,2,"0");case"h":return he(1);case"hh":return he(2);case"a":return pe(te,me,!0);case"A":return pe(te,me,!1);case"m":return String(me);case"mm":return P.s(me,2,"0");case"s":return String(W.$s);case"ss":return P.s(W.$s,2,"0");case"SSS":return P.s(W.$ms,3,"0");case"Z":return ee}return null}(ye)||ee.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(B,W,z){var j,ee=this,te=P.p(W),me=I(B),Ae=(me.utcOffset()-this.utcOffset())*n,Pe=this-me,Oe=function(){return P.m(ee,me)};switch(te){case d:j=Oe()/12;break;case f:j=Oe();break;case h:j=Oe()/3;break;case c:j=(Pe-Ae)/6048e5;break;case u:j=(Pe-Ae)/864e5;break;case l:j=Pe/i;break;case s:j=Pe/n;break;case o:j=Pe/r;break;default:j=Pe}return z?j:P.a(j)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return x[this.$L]},F.locale=function(B,W){if(!B)return this.$L;var z=this.clone(),j=M(B,W,!0);return j&&(z.$L=j),z},F.clone=function(){return P.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},O}(),N=R.prototype;return I.prototype=N,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",v]].forEach(function(O){N[O[1]]=function(F){return this.$g(F,O[0],O[1])}}),I.extend=function(O,F){return O.$i||(O(F,R,I),O.$i=!0),I},I.locale=M,I.isDayjs=D,I.unix=function(O){return I(1e3*O)},I.en=x[C],I.Ls=x,I.p={},I})}(q0)),q0.exports}var LQ=oz();const hu=U2(LQ);var j0={exports:{}},PQ=j0.exports,SR;function EQ(){return SR||(SR=1,function(e,t){(function(r,n){e.exports=n(oz())})(PQ,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})}(j0)),j0.exports}EQ();var K0={exports:{}},RQ=K0.exports,bR;function kQ(){return bR||(bR=1,function(e,t){(function(r,n){e.exports=n()})(RQ,function(){return function(r,n,i){r=r||{};var a=n.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,f,h){return a.fromToBase(u,c,f,h)}i.en.relativeTime=o,a.fromToBase=function(u,c,f,h,d){for(var v,p,m,y=f.$locale().relativeTime||o,S=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],b=S.length,w=0;w<b;w+=1){var C=S[w];C.d&&(v=h?i(u).diff(f,C.d,!0):f.diff(u,C.d,!0));var x=(r.rounding||Math.round)(Math.abs(v));if(m=v>0,x<=C.r||!C.r){x<=1&&w>0&&(C=S[w-1]);var A=y[C.l];d&&(x=d(""+x)),p=typeof A=="string"?A.replace("%d",x):A(x,c,C.l,m);break}}if(c)return p;var D=m?y.future:y.past;return typeof D=="function"?D(p):D.replace("%s",p)},a.to=function(u,c){return s(u,c,this,!0)},a.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}})}(K0)),K0.exports}var OQ=kQ();const NQ=U2(OQ);/**
|
||
* @vue/shared v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function W2(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Er={},Vh=[],Jo=()=>{},FQ=()=>!1,vS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Y2=e=>e.startsWith("onUpdate:"),Nn=Object.assign,X2=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},BQ=Object.prototype.hasOwnProperty,_r=(e,t)=>BQ.call(e,t),pt=Array.isArray,zh=e=>Wg(e)==="[object Map]",wd=e=>Wg(e)==="[object Set]",wR=e=>Wg(e)==="[object Date]",Et=e=>typeof e=="function",fn=e=>typeof e=="string",_o=e=>typeof e=="symbol",kr=e=>e!==null&&typeof e=="object",sz=e=>(kr(e)||Et(e))&&Et(e.then)&&Et(e.catch),lz=Object.prototype.toString,Wg=e=>lz.call(e),VQ=e=>Wg(e).slice(8,-1),uz=e=>Wg(e)==="[object Object]",Z2=e=>fn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yp=W2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pS=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zQ=/-(\w)/g,Ha=pS(e=>e.replace(zQ,(t,r)=>r?r.toUpperCase():"")),GQ=/\B([A-Z])/g,Tf=pS(e=>e.replace(GQ,"-$1").toLowerCase()),gS=pS(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uw=pS(e=>e?`on${gS(e)}`:""),su=(e,t)=>!Object.is(e,t),J0=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},cz=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},W_=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xR;const mS=()=>xR||(xR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kc(e){if(pt(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=fn(n)?WQ(n):kc(n);if(i)for(const a in i)t[a]=i[a]}return t}else if(fn(e)||kr(e))return e}const $Q=/;(?![^(]*\))/g,HQ=/:([^]+)/,UQ=/\/\*[^]*?\*\//g;function WQ(e){const t={};return e.replace(UQ,"").split($Q).forEach(r=>{if(r){const n=r.split(HQ);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Tt(e){let t="";if(fn(e))t=e;else if(pt(e))for(let r=0;r<e.length;r++){const n=Tt(e[r]);n&&(t+=n+" ")}else if(kr(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const YQ="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",XQ=W2(YQ);function fz(e){return!!e||e===""}function ZQ(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Yg(e[n],t[n]);return r}function Yg(e,t){if(e===t)return!0;let r=wR(e),n=wR(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=_o(e),n=_o(t),r||n)return e===t;if(r=pt(e),n=pt(t),r||n)return r&&n?ZQ(e,t):!1;if(r=kr(e),n=kr(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Yg(e[o],t[o]))return!1}}return String(e)===String(t)}function q2(e,t){return e.findIndex(r=>Yg(r,t))}const hz=e=>!!(e&&e.__v_isRef===!0),Ie=e=>fn(e)?e:e==null?"":pt(e)||kr(e)&&(e.toString===lz||!Et(e.toString))?hz(e)?Ie(e.value):JSON.stringify(e,dz,2):String(e),dz=(e,t)=>hz(t)?dz(e,t.value):zh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Ww(n,a)+" =>"]=i,r),{})}:wd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ww(r))}:_o(t)?Ww(t):kr(t)&&!pt(t)&&!uz(t)?String(t):t,Ww=(e,t="")=>{var r;return _o(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
||
* @vue/reactivity v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let gi;class vz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=gi,!t&&gi&&(this.index=(gi.scopes||(gi.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=gi;try{return gi=this,t()}finally{gi=r}}}on(){gi=this}off(){gi=this.parent}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function qQ(e){return new vz(e)}function pz(){return gi}function jQ(e,t=!1){gi&&gi.cleanups.push(e)}let Fr;const Yw=new WeakSet;class gz{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,gi&&gi.active&&gi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Yw.has(this)&&(Yw.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,CR(this),_z(this);const t=Fr,r=ho;Fr=this,ho=!0;try{return this.fn()}finally{Sz(this),Fr=t,ho=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)J2(t);this.deps=this.depsTail=void 0,CR(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Yw.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){lA(this)&&this.run()}get dirty(){return lA(this)}}let mz=0,_p,Sp;function yz(e,t=!1){if(e.flags|=8,t){e.next=Sp,Sp=e;return}e.next=_p,_p=e}function j2(){mz++}function K2(){if(--mz>0)return;if(Sp){let t=Sp;for(Sp=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;_p;){let t=_p;for(_p=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function _z(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Sz(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),J2(n),KQ(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function lA(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tg))return;e.globalVersion=tg;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!lA(e)){e.flags&=-3;return}const r=Fr,n=ho;Fr=e,ho=!0;try{_z(e);const i=e.fn(e._value);(t.version===0||su(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Fr=r,ho=n,Sz(e),e.flags&=-3}}function J2(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)J2(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function KQ(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ho=!0;const wz=[];function Tu(){wz.push(ho),ho=!1}function Au(){const e=wz.pop();ho=e===void 0?!0:e}function CR(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Fr;Fr=void 0;try{t()}finally{Fr=r}}}let tg=0;class JQ{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yS{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Fr||!ho||Fr===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Fr)r=this.activeLink=new JQ(Fr,this),Fr.deps?(r.prevDep=Fr.depsTail,Fr.depsTail.nextDep=r,Fr.depsTail=r):Fr.deps=Fr.depsTail=r,xz(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Fr.depsTail,r.nextDep=void 0,Fr.depsTail.nextDep=r,Fr.depsTail=r,Fr.deps===r&&(Fr.deps=n)}return r}trigger(t){this.version++,tg++,this.notify(t)}notify(t){j2();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{K2()}}}function xz(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)xz(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Y_=new WeakMap,qc=Symbol(""),uA=Symbol(""),rg=Symbol("");function ti(e,t,r){if(ho&&Fr){let n=Y_.get(e);n||Y_.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new yS),i.map=n,i.key=r),i.track()}}function ks(e,t,r,n,i,a){const o=Y_.get(e);if(!o){tg++;return}const s=l=>{l&&l.trigger()};if(j2(),t==="clear")o.forEach(s);else{const l=pt(e),u=l&&Z2(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===rg||!_o(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(rg)),t){case"add":l?u&&s(o.get("length")):(s(o.get(qc)),zh(e)&&s(o.get(uA)));break;case"delete":l||(s(o.get(qc)),zh(e)&&s(o.get(uA)));break;case"set":zh(e)&&s(o.get(qc));break}}K2()}function QQ(e,t){const r=Y_.get(e);return r&&r.get(t)}function eh(e){const t=dr(e);return t===e?t:(ti(t,"iterate",rg),Ga(e)?t:t.map(ri))}function _S(e){return ti(e=dr(e),"iterate",rg),e}const eee={__proto__:null,[Symbol.iterator](){return Xw(this,Symbol.iterator,ri)},concat(...e){return eh(this).concat(...e.map(t=>pt(t)?eh(t):t))},entries(){return Xw(this,"entries",e=>(e[1]=ri(e[1]),e))},every(e,t){return ws(this,"every",e,t,void 0,arguments)},filter(e,t){return ws(this,"filter",e,t,r=>r.map(ri),arguments)},find(e,t){return ws(this,"find",e,t,ri,arguments)},findIndex(e,t){return ws(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ws(this,"findLast",e,t,ri,arguments)},findLastIndex(e,t){return ws(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ws(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zw(this,"includes",e)},indexOf(...e){return Zw(this,"indexOf",e)},join(e){return eh(this).join(e)},lastIndexOf(...e){return Zw(this,"lastIndexOf",e)},map(e,t){return ws(this,"map",e,t,void 0,arguments)},pop(){return lv(this,"pop")},push(...e){return lv(this,"push",e)},reduce(e,...t){return TR(this,"reduce",e,t)},reduceRight(e,...t){return TR(this,"reduceRight",e,t)},shift(){return lv(this,"shift")},some(e,t){return ws(this,"some",e,t,void 0,arguments)},splice(...e){return lv(this,"splice",e)},toReversed(){return eh(this).toReversed()},toSorted(e){return eh(this).toSorted(e)},toSpliced(...e){return eh(this).toSpliced(...e)},unshift(...e){return lv(this,"unshift",e)},values(){return Xw(this,"values",ri)}};function Xw(e,t,r){const n=_S(e),i=n[t]();return n!==e&&!Ga(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const tee=Array.prototype;function ws(e,t,r,n,i,a){const o=_S(e),s=o!==e&&!Ga(e),l=o[t];if(l!==tee[t]){const f=l.apply(e,a);return s?ri(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,ri(f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const c=l.call(o,u,n);return s&&i?i(c):c}function TR(e,t,r,n){const i=_S(e);let a=r;return i!==e&&(Ga(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,ri(s),l,e)}),i[t](a,...n)}function Zw(e,t,r){const n=dr(e);ti(n,"iterate",rg);const i=n[t](...r);return(i===-1||i===!1)&&tM(r[0])?(r[0]=dr(r[0]),n[t](...r)):i}function lv(e,t,r=[]){Tu(),j2();const n=dr(e)[t].apply(e,r);return K2(),Au(),n}const ree=W2("__proto__,__v_isRef,__isVue"),Cz=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_o));function nee(e){_o(e)||(e=String(e));const t=dr(this);return ti(t,"has",e),t.hasOwnProperty(e)}class Tz{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?dee:Iz:a?Mz:Dz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=pt(t);if(!i){let l;if(o&&(l=eee[r]))return l;if(r==="hasOwnProperty")return nee}const s=Reflect.get(t,r,vt(t)?t:n);return(_o(r)?Cz.has(r):ree(r))||(i||ti(t,"get",r),a)?s:vt(s)?o&&Z2(r)?s:s.value:kr(s)?i?SS(s):Du(s):s}}class Az extends Tz{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=ff(a);if(!Ga(n)&&!ff(n)&&(a=dr(a),n=dr(n)),!pt(t)&&vt(a)&&!vt(n))return l?!1:(a.value=n,!0)}const o=pt(t)&&Z2(r)?Number(r)<t.length:_r(t,r),s=Reflect.set(t,r,n,vt(t)?t:i);return t===dr(i)&&(o?su(n,a)&&ks(t,"set",r,n):ks(t,"add",r,n)),s}deleteProperty(t,r){const n=_r(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&ks(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!_o(r)||!Cz.has(r))&&ti(t,"has",r),n}ownKeys(t){return ti(t,"iterate",pt(t)?"length":qc),Reflect.ownKeys(t)}}class iee extends Tz{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const aee=new Az,oee=new iee,see=new Az(!0);const cA=e=>e,wy=e=>Reflect.getPrototypeOf(e);function lee(e,t,r){return function(...n){const i=this.__v_raw,a=dr(i),o=zh(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?cA:t?fA:ri;return!t&&ti(a,"iterate",l?uA:qc),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:s?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function xy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uee(e,t){const r={get(i){const a=this.__v_raw,o=dr(a),s=dr(i);e||(su(i,s)&&ti(o,"get",i),ti(o,"get",s));const{has:l}=wy(o),u=t?cA:e?fA:ri;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&ti(dr(i),"iterate",qc),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=dr(a),s=dr(i);return e||(su(i,s)&&ti(o,"has",i),ti(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=dr(s),u=t?cA:e?fA:ri;return!e&&ti(l,"iterate",qc),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return Nn(r,e?{add:xy("add"),set:xy("set"),delete:xy("delete"),clear:xy("clear")}:{add(i){!t&&!Ga(i)&&!ff(i)&&(i=dr(i));const a=dr(this);return wy(a).has.call(a,i)||(a.add(i),ks(a,"add",i,i)),this},set(i,a){!t&&!Ga(a)&&!ff(a)&&(a=dr(a));const o=dr(this),{has:s,get:l}=wy(o);let u=s.call(o,i);u||(i=dr(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?su(a,c)&&ks(o,"set",i,a):ks(o,"add",i,a),this},delete(i){const a=dr(this),{has:o,get:s}=wy(a);let l=o.call(a,i);l||(i=dr(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ks(a,"delete",i,void 0),u},clear(){const i=dr(this),a=i.size!==0,o=i.clear();return a&&ks(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=lee(i,e,t)}),r}function Q2(e,t){const r=uee(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(_r(r,i)&&i in n?r:n,i,a)}const cee={get:Q2(!1,!1)},fee={get:Q2(!1,!0)},hee={get:Q2(!0,!1)};const Dz=new WeakMap,Mz=new WeakMap,Iz=new WeakMap,dee=new WeakMap;function vee(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pee(e){return e.__v_skip||!Object.isExtensible(e)?0:vee(VQ(e))}function Du(e){return ff(e)?e:eM(e,!1,aee,cee,Dz)}function Lz(e){return eM(e,!1,see,fee,Mz)}function SS(e){return eM(e,!0,oee,hee,Iz)}function eM(e,t,r,n,i){if(!kr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=pee(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Gh(e){return ff(e)?Gh(e.__v_raw):!!(e&&e.__v_isReactive)}function ff(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function tM(e){return e?!!e.__v_raw:!1}function dr(e){const t=e&&e.__v_raw;return t?dr(t):e}function gee(e){return!_r(e,"__v_skip")&&Object.isExtensible(e)&&cz(e,"__v_skip",!0),e}const ri=e=>kr(e)?Du(e):e,fA=e=>kr(e)?SS(e):e;function vt(e){return e?e.__v_isRef===!0:!1}function Ye(e){return Pz(e,!1)}function bS(e){return Pz(e,!0)}function Pz(e,t){return vt(e)?e:new mee(e,t)}class mee{constructor(t,r){this.dep=new yS,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:dr(t),this._value=r?t:ri(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ga(t)||ff(t);t=n?t:dr(t),su(t,r)&&(this._rawValue=t,this._value=n?t:ri(t),this.dep.trigger())}}function q(e){return vt(e)?e.value:e}const yee={get:(e,t,r)=>t==="__v_raw"?e:q(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return vt(i)&&!vt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Ez(e){return Gh(e)?e:new Proxy(e,yee)}class _ee{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new yS,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function See(e){return new _ee(e)}function bee(e){const t=pt(e)?new Array(e.length):{};for(const r in e)t[r]=Rz(e,r);return t}class wee{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QQ(dr(this._object),this._key)}}class xee{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cee(e,t,r){return vt(e)?e:Et(e)?new xee(e):kr(e)&&arguments.length>1?Rz(e,t,r):Ye(e)}function Rz(e,t,r){const n=e[t];return vt(n)?n:new wee(e,t,r)}class Tee{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new yS(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fr!==this)return yz(this,!0),!0}get value(){const t=this.dep.track();return bz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Aee(e,t,r=!1){let n,i;return Et(e)?n=e:(n=e.get,i=e.set),new Tee(n,i,r)}const Cy={},X_=new WeakMap;let yc;function Dee(e,t=!1,r=yc){if(r){let n=X_.get(r);n||X_.set(r,n=[]),n.push(e)}}function Mee(e,t,r=Er){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=w=>i?w:Ga(w)||i===!1||i===0?Os(w,1):Os(w);let c,f,h,d,v=!1,p=!1;if(vt(e)?(f=()=>e.value,v=Ga(e)):Gh(e)?(f=()=>u(e),v=!0):pt(e)?(p=!0,v=e.some(w=>Gh(w)||Ga(w)),f=()=>e.map(w=>{if(vt(w))return w.value;if(Gh(w))return u(w);if(Et(w))return l?l(w,2):w()})):Et(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Tu();try{h()}finally{Au()}}const w=yc;yc=c;try{return l?l(e,3,[d]):e(d)}finally{yc=w}}:f=Jo,t&&i){const w=f,C=i===!0?1/0:i;f=()=>Os(w(),C)}const m=pz(),y=()=>{c.stop(),m&&m.active&&X2(m.effects,c)};if(a&&t){const w=t;t=(...C)=>{w(...C),y()}}let S=p?new Array(e.length).fill(Cy):Cy;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(i||v||(p?C.some((x,A)=>su(x,S[A])):su(C,S))){h&&h();const x=yc;yc=c;try{const A=[C,S===Cy?void 0:p&&S[0]===Cy?[]:S,d];l?l(t,3,A):t(...A),S=C}finally{yc=x}}}else c.run()};return s&&s(b),c=new gz(f),c.scheduler=o?()=>o(b,!1):b,d=w=>Dee(w,!1,c),h=c.onStop=()=>{const w=X_.get(c);if(w){if(l)l(w,4);else for(const C of w)C();X_.delete(c)}},t?n?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Os(e,t=1/0,r){if(t<=0||!kr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,vt(e))Os(e.value,t,r);else if(pt(e))for(let n=0;n<e.length;n++)Os(e[n],t,r);else if(wd(e)||zh(e))e.forEach(n=>{Os(n,t,r)});else if(uz(e)){for(const n in e)Os(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Os(e[n],t,r)}return e}/**
|
||
* @vue/runtime-core v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Xg(e,t,r,n){try{return n?e(...n):e()}catch(i){wS(i,t,r)}}function rs(e,t,r,n){if(Et(e)){const i=Xg(e,t,r,n);return i&&sz(i)&&i.catch(a=>{wS(a,t,r)}),i}if(pt(e)){const i=[];for(let a=0;a<e.length;a++)i.push(rs(e[a],t,r,n));return i}}function wS(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Er;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(a){Tu(),Xg(a,null,10,[e,l,u]),Au();return}}Iee(e,r,i,n,o)}function Iee(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const _i=[];let zo=-1;const $h=[];let Fl=null,Ch=0;const kz=Promise.resolve();let Z_=null;function Af(e){const t=Z_||kz;return e?t.then(this?e.bind(this):e):t}function Lee(e){let t=zo+1,r=_i.length;for(;t<r;){const n=t+r>>>1,i=_i[n],a=ng(i);a<e||a===e&&i.flags&2?t=n+1:r=n}return t}function rM(e){if(!(e.flags&1)){const t=ng(e),r=_i[_i.length-1];!r||!(e.flags&2)&&t>=ng(r)?_i.push(e):_i.splice(Lee(t),0,e),e.flags|=1,Oz()}}function Oz(){Z_||(Z_=kz.then(Fz))}function Pee(e){pt(e)?$h.push(...e):Fl&&e.id===-1?Fl.splice(Ch+1,0,e):e.flags&1||($h.push(e),e.flags|=1),Oz()}function AR(e,t,r=zo+1){for(;r<_i.length;r++){const n=_i[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_i.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Nz(e){if($h.length){const t=[...new Set($h)].sort((r,n)=>ng(r)-ng(n));if($h.length=0,Fl){Fl.push(...t);return}for(Fl=t,Ch=0;Ch<Fl.length;Ch++){const r=Fl[Ch];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Fl=null,Ch=0}}const ng=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Fz(e){try{for(zo=0;zo<_i.length;zo++){const t=_i[zo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xg(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zo<_i.length;zo++){const t=_i[zo];t&&(t.flags&=-2)}zo=-1,_i.length=0,Nz(),Z_=null,(_i.length||$h.length)&&Fz()}}let kn=null,Bz=null;function q_(e){const t=kn;return kn=e,Bz=e&&e.type.__scopeId||null,t}function ig(e,t=kn,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&OR(-1);const a=q_(t);let o;try{o=e(...i)}finally{q_(a),n._d&&OR(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Qt(e,t){if(kn===null)return e;const r=TS(kn),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,o,s,l=Er]=t[i];a&&(Et(a)&&(a={mounted:a,updated:a}),a.deep&&Os(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function Uu(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Tu(),rs(l,r,8,[e.el,s,e,t]),Au())}}const Eee=Symbol("_vte"),Ree=e=>e.__isTeleport;function nM(e,t){e.shapeFlag&6&&e.component?(e.transition=t,nM(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function qt(e,t){return Et(e)?Nn({name:e.name},t,{setup:e}):e}function Vz(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function j_(e,t,r,n,i=!1){if(pt(e)){e.forEach((v,p)=>j_(v,t&&(pt(t)?t[p]:t),r,n,i));return}if(Hh(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&j_(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?TS(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Er?s.refs={}:s.refs,f=s.setupState,h=dr(f),d=f===Er?()=>!1:v=>_r(h,v);if(u!=null&&u!==l&&(fn(u)?(c[u]=null,d(u)&&(f[u]=null)):vt(u)&&(u.value=null)),Et(l))Xg(l,s,12,[o,c]);else{const v=fn(l),p=vt(l);if(v||p){const m=()=>{if(e.f){const y=v?d(l)?f[l]:c[l]:l.value;i?pt(y)&&X2(y,a):pt(y)?y.includes(a)||y.push(a):v?(c[l]=[a],d(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,d(l)&&(f[l]=o)):p&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,ta(m,r)):m()}}}mS().requestIdleCallback;mS().cancelIdleCallback;const Hh=e=>!!e.type.__asyncLoader,zz=e=>e.type.__isKeepAlive;function kee(e,t){Gz(e,"a",t)}function Oee(e,t){Gz(e,"da",t)}function Gz(e,t,r=Hn){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(xS(t,n,r),r){let i=r.parent;for(;i&&i.parent;)zz(i.parent.vnode)&&Nee(n,t,r,i),i=i.parent}}function Nee(e,t,r,n){const i=xS(t,e,n,!0);Zg(()=>{X2(n[t],i)},r)}function xS(e,t,r=Hn,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Tu();const s=jg(r),l=rs(t,r,e,o);return s(),Au(),l});return n?i.unshift(a):i.push(a),a}}const al=e=>(t,r=Hn)=>{(!sg||e==="sp")&&xS(e,(...n)=>t(...n),r)},Fee=al("bm"),ol=al("m"),Bee=al("bu"),Vee=al("u"),$z=al("bum"),Zg=al("um"),zee=al("sp"),Gee=al("rtg"),$ee=al("rtc");function Hee(e,t=Hn){xS("ec",e,t)}const Uee="components",Hz=Symbol.for("v-ndc");function du(e){return fn(e)?Wee(Uee,e,!1)||e:e||Hz}function Wee(e,t,r=!0,n=!1){const i=kn||Hn;if(i){const a=i.type;{const s=Ete(a,!1);if(s&&(s===t||s===Ha(t)||s===gS(Ha(t))))return a}const o=DR(i[e]||a[e],t)||DR(i.appContext[e],t);return!o&&n?a:o}}function DR(e,t){return e&&(e[t]||e[Ha(t)]||e[gS(Ha(t))])}function lr(e,t,r,n){let i;const a=r,o=pt(e);if(o||fn(e)){const s=o&&Gh(e);let l=!1;s&&(l=!Ga(e),e=_S(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?ri(e[u]):e[u],u,void 0,a)}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,a)}else if(kr(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,a)}}else i=[];return i}function Yee(e,t,r={},n,i){if(kn.ce||kn.parent&&Hh(kn.parent)&&kn.parent.ce)return oe(),er(it,null,[ze("slot",r,n)],64);let a=e[t];a&&a._c&&(a._d=!1),oe();const o=a&&Uz(a(r)),s=r.key||o&&o.key,l=er(it,{key:(s&&!_o(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Uz(e){return e.some(t=>og(t)?!(t.type===vu||t.type===it&&!Uz(t.children)):!0)?e:null}const hA=e=>e?uG(e)?TS(e):hA(e.parent):null,bp=Nn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hA(e.parent),$root:e=>hA(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>iM(e),$forceUpdate:e=>e.f||(e.f=()=>{rM(e.update)}),$nextTick:e=>e.n||(e.n=Af.bind(e.proxy)),$watch:e=>dte.bind(e)}),qw=(e,t)=>e!==Er&&!e.__isScriptSetup&&_r(e,t),Xee={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(qw(n,t))return o[t]=1,n[t];if(i!==Er&&_r(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&_r(u,t))return o[t]=3,a[t];if(r!==Er&&_r(r,t))return o[t]=4,r[t];dA&&(o[t]=0)}}const c=bp[t];let f,h;if(c)return t==="$attrs"&&ti(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==Er&&_r(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,_r(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return qw(i,t)?(i[t]=r,!0):n!==Er&&_r(n,t)?(n[t]=r,!0):_r(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==Er&&_r(e,o)||qw(t,o)||(s=a[0])&&_r(s,o)||_r(n,o)||_r(bp,o)||_r(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:_r(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function MR(e){return pt(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let dA=!0;function Zee(e){const t=iM(e),r=e.proxy,n=e.ctx;dA=!1,t.beforeCreate&&IR(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:b,unmounted:w,render:C,renderTracked:x,renderTriggered:A,errorCaptured:D,serverPrefetch:M,expose:I,inheritAttrs:P,components:R,directives:N,filters:O}=t;if(u&&qee(u,n,null),o)for(const W in o){const z=o[W];Et(z)&&(n[W]=z.bind(r))}if(i){const W=i.call(r,r);kr(W)&&(e.data=Du(W))}if(dA=!0,a)for(const W in a){const z=a[W],j=Et(z)?z.bind(r,r):Et(z.get)?z.get.bind(r,r):Jo,ee=!Et(z)&&Et(z.set)?z.set.bind(r):Jo,te=at({get:j,set:ee});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>te.value,set:me=>te.value=me})}if(s)for(const W in s)Wz(s[W],n,r,W);if(l){const W=Et(l)?l.call(r):l;Reflect.ownKeys(W).forEach(z=>{Q0(z,W[z])})}c&&IR(c,e,"c");function B(W,z){pt(z)?z.forEach(j=>W(j.bind(r))):z&&W(z.bind(r))}if(B(Fee,f),B(ol,h),B(Bee,d),B(Vee,v),B(kee,p),B(Oee,m),B(Hee,D),B($ee,x),B(Gee,A),B($z,S),B(Zg,w),B(zee,M),pt(I))if(I.length){const W=e.exposed||(e.exposed={});I.forEach(z=>{Object.defineProperty(W,z,{get:()=>r[z],set:j=>r[z]=j})})}else e.exposed||(e.exposed={});C&&e.render===Jo&&(e.render=C),P!=null&&(e.inheritAttrs=P),R&&(e.components=R),N&&(e.directives=N),M&&Vz(e)}function qee(e,t,r=Jo){pt(e)&&(e=vA(e));for(const n in e){const i=e[n];let a;kr(i)?"default"in i?a=vo(i.from||n,i.default,!0):a=vo(i.from||n):a=vo(i),vt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function IR(e,t,r){rs(pt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Wz(e,t,r,n){let i=n.includes(".")?iG(r,n):()=>r[n];if(fn(e)){const a=t[e];Et(a)&&Sr(i,a)}else if(Et(e))Sr(i,e.bind(r));else if(kr(e))if(pt(e))e.forEach(a=>Wz(a,t,r,n));else{const a=Et(e.handler)?e.handler.bind(r):t[e.handler];Et(a)&&Sr(i,a,e)}}function iM(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>K_(l,u,o,!0)),K_(l,t,o)),kr(t)&&a.set(t,l),l}function K_(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&K_(e,a,r,!0),i&&i.forEach(o=>K_(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=jee[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const jee={data:LR,props:PR,emits:PR,methods:jv,computed:jv,beforeCreate:fi,created:fi,beforeMount:fi,mounted:fi,beforeUpdate:fi,updated:fi,beforeDestroy:fi,beforeUnmount:fi,destroyed:fi,unmounted:fi,activated:fi,deactivated:fi,errorCaptured:fi,serverPrefetch:fi,components:jv,directives:jv,watch:Jee,provide:LR,inject:Kee};function LR(e,t){return t?e?function(){return Nn(Et(e)?e.call(this,this):e,Et(t)?t.call(this,this):t)}:t:e}function Kee(e,t){return jv(vA(e),vA(t))}function vA(e){if(pt(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function fi(e,t){return e?[...new Set([].concat(e,t))]:t}function jv(e,t){return e?Nn(Object.create(null),e,t):t}function PR(e,t){return e?pt(e)&&pt(t)?[...new Set([...e,...t])]:Nn(Object.create(null),MR(e),MR(t??{})):t}function Jee(e,t){if(!e)return t;if(!t)return e;const r=Nn(Object.create(null),e);for(const n in t)r[n]=fi(e[n],t[n]);return r}function Yz(){return{app:null,config:{isNativeTag:FQ,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Qee=0;function ete(e,t){return function(n,i=null){Et(n)||(n=Nn({},n)),i!=null&&!kr(i)&&(i=null);const a=Yz(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:Qee++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:kte,get config(){return a.config},set config(c){},use(c,...f){return o.has(c)||(c&&Et(c.install)?(o.add(c),c.install(u,...f)):Et(c)&&(o.add(c),c(u,...f))),u},mixin(c){return a.mixins.includes(c)||a.mixins.push(c),u},component(c,f){return f?(a.components[c]=f,u):a.components[c]},directive(c,f){return f?(a.directives[c]=f,u):a.directives[c]},mount(c,f,h){if(!l){const d=u._ceVNode||ze(n,i);return d.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,TS(d.component)}},onUnmount(c){s.push(c)},unmount(){l&&(rs(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return a.provides[c]=f,u},runWithContext(c){const f=Uh;Uh=u;try{return c()}finally{Uh=f}}};return u}}let Uh=null;function Q0(e,t){if(Hn){let r=Hn.provides;const n=Hn.parent&&Hn.parent.provides;n===r&&(r=Hn.provides=Object.create(n)),r[e]=t}}function vo(e,t,r=!1){const n=Hn||kn;if(n||Uh){const i=Uh?Uh._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Et(t)?t.call(n&&n.proxy):t}}const Xz={},Zz=()=>Object.create(Xz),qz=e=>Object.getPrototypeOf(e)===Xz;function tte(e,t,r,n=!1){const i={},a=Zz();e.propsDefaults=Object.create(null),jz(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:Lz(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function rte(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=dr(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(CS(e.emitsOptions,h))continue;const d=t[h];if(l)if(_r(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=Ha(h);i[v]=pA(l,s,v,d,e,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{jz(e,t,i,a)&&(u=!0);let c;for(const f in s)(!t||!_r(t,f)&&((c=Tf(f))===f||!_r(t,c)))&&(l?r&&(r[f]!==void 0||r[c]!==void 0)&&(i[f]=pA(l,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!_r(t,f))&&(delete a[f],u=!0)}u&&ks(e.attrs,"set","")}function jz(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(yp(l))continue;const u=t[l];let c;i&&_r(i,c=Ha(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:CS(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=dr(r),u=s||Er;for(let c=0;c<a.length;c++){const f=a[c];r[f]=pA(i,l,f,u[f],e,!_r(u,f))}}return o}function pA(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=_r(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Et(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const c=jg(i);n=u[r]=l.call(null,t),c()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Tf(r))&&(n=!0))}return n}const nte=new WeakMap;function Kz(e,t,r=!1){const n=r?nte:t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!Et(e)){const c=f=>{l=!0;const[h,d]=Kz(f,t,!0);Nn(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return kr(e)&&n.set(e,Vh),Vh;if(pt(a))for(let c=0;c<a.length;c++){const f=Ha(a[c]);ER(f)&&(o[f]=Er)}else if(a)for(const c in a){const f=Ha(c);if(ER(f)){const h=a[c],d=o[f]=pt(h)||Et(h)?{type:h}:Nn({},h),v=d.type;let p=!1,m=!0;if(pt(v))for(let y=0;y<v.length;++y){const S=v[y],b=Et(S)&&S.name;if(b==="Boolean"){p=!0;break}else b==="String"&&(m=!1)}else p=Et(v)&&v.name==="Boolean";d[0]=p,d[1]=m,(p||_r(d,"default"))&&s.push(f)}}const u=[o,s];return kr(e)&&n.set(e,u),u}function ER(e){return e[0]!=="$"&&!yp(e)}const Jz=e=>e[0]==="_"||e==="$stable",aM=e=>pt(e)?e.map($o):[$o(e)],ite=(e,t,r)=>{if(t._n)return t;const n=ig((...i)=>aM(t(...i)),r);return n._c=!1,n},Qz=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Jz(i))continue;const a=e[i];if(Et(a))t[i]=ite(i,a,n);else if(a!=null){const o=aM(a);t[i]=()=>o}}},eG=(e,t)=>{const r=aM(t);e.slots.default=()=>r},tG=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},ate=(e,t,r)=>{const n=e.slots=Zz();if(e.vnode.shapeFlag&32){const i=t._;i?(tG(n,t,r),r&&cz(n,"_",i,!0)):Qz(t,n)}else t&&eG(e,t)},ote=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Er;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:tG(i,t,r):(a=!t.$stable,Qz(t,i)),o=t}else t&&(eG(e,t),o={default:1});if(a)for(const s in i)!Jz(s)&&o[s]==null&&delete i[s]},ta=Ste;function ste(e){return lte(e)}function lte(e,t){const r=mS();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=Jo,insertStaticContent:v}=e,p=(H,U,ie,_e=null,fe=null,$=null,Y=void 0,re=null,ue=!!U.dynamicChildren)=>{if(H===U)return;H&&!uv(H,U)&&(_e=se(H),me(H,fe,$,!0),H=null),U.patchFlag===-2&&(ue=!1,U.dynamicChildren=null);const{type:Ce,ref:Re,shapeFlag:J}=U;switch(Ce){case qg:m(H,U,ie,_e);break;case vu:y(H,U,ie,_e);break;case Jw:H==null&&S(U,ie,_e,Y);break;case it:R(H,U,ie,_e,fe,$,Y,re,ue);break;default:J&1?C(H,U,ie,_e,fe,$,Y,re,ue):J&6?N(H,U,ie,_e,fe,$,Y,re,ue):(J&64||J&128)&&Ce.process(H,U,ie,_e,fe,$,Y,re,ue,ye)}Re!=null&&fe&&j_(Re,H&&H.ref,$,U||H,!U)},m=(H,U,ie,_e)=>{if(H==null)n(U.el=s(U.children),ie,_e);else{const fe=U.el=H.el;U.children!==H.children&&u(fe,U.children)}},y=(H,U,ie,_e)=>{H==null?n(U.el=l(U.children||""),ie,_e):U.el=H.el},S=(H,U,ie,_e)=>{[H.el,H.anchor]=v(H.children,U,ie,_e,H.el,H.anchor)},b=({el:H,anchor:U},ie,_e)=>{let fe;for(;H&&H!==U;)fe=h(H),n(H,ie,_e),H=fe;n(U,ie,_e)},w=({el:H,anchor:U})=>{let ie;for(;H&&H!==U;)ie=h(H),i(H),H=ie;i(U)},C=(H,U,ie,_e,fe,$,Y,re,ue)=>{U.type==="svg"?Y="svg":U.type==="math"&&(Y="mathml"),H==null?x(U,ie,_e,fe,$,Y,re,ue):M(H,U,fe,$,Y,re,ue)},x=(H,U,ie,_e,fe,$,Y,re)=>{let ue,Ce;const{props:Re,shapeFlag:J,transition:ce,dirs:Ge}=H;if(ue=H.el=o(H.type,$,Re&&Re.is,Re),J&8?c(ue,H.children):J&16&&D(H.children,ue,null,_e,fe,jw(H,$),Y,re),Ge&&Uu(H,null,_e,"created"),A(ue,H,H.scopeId,Y,_e),Re){for(const It in Re)It!=="value"&&!yp(It)&&a(ue,It,null,Re[It],$,_e);"value"in Re&&a(ue,"value",null,Re.value,$),(Ce=Re.onVnodeBeforeMount)&&Lo(Ce,_e,H)}Ge&&Uu(H,null,_e,"beforeMount");const Qe=ute(fe,ce);Qe&&ce.beforeEnter(ue),n(ue,U,ie),((Ce=Re&&Re.onVnodeMounted)||Qe||Ge)&&ta(()=>{Ce&&Lo(Ce,_e,H),Qe&&ce.enter(ue),Ge&&Uu(H,null,_e,"mounted")},fe)},A=(H,U,ie,_e,fe)=>{if(ie&&d(H,ie),_e)for(let $=0;$<_e.length;$++)d(H,_e[$]);if(fe){let $=fe.subTree;if(U===$||oG($.type)&&($.ssContent===U||$.ssFallback===U)){const Y=fe.vnode;A(H,Y,Y.scopeId,Y.slotScopeIds,fe.parent)}}},D=(H,U,ie,_e,fe,$,Y,re,ue=0)=>{for(let Ce=ue;Ce<H.length;Ce++){const Re=H[Ce]=re?Bl(H[Ce]):$o(H[Ce]);p(null,Re,U,ie,_e,fe,$,Y,re)}},M=(H,U,ie,_e,fe,$,Y)=>{const re=U.el=H.el;let{patchFlag:ue,dynamicChildren:Ce,dirs:Re}=U;ue|=H.patchFlag&16;const J=H.props||Er,ce=U.props||Er;let Ge;if(ie&&Wu(ie,!1),(Ge=ce.onVnodeBeforeUpdate)&&Lo(Ge,ie,U,H),Re&&Uu(U,H,ie,"beforeUpdate"),ie&&Wu(ie,!0),(J.innerHTML&&ce.innerHTML==null||J.textContent&&ce.textContent==null)&&c(re,""),Ce?I(H.dynamicChildren,Ce,re,ie,_e,jw(U,fe),$):Y||z(H,U,re,null,ie,_e,jw(U,fe),$,!1),ue>0){if(ue&16)P(re,J,ce,ie,fe);else if(ue&2&&J.class!==ce.class&&a(re,"class",null,ce.class,fe),ue&4&&a(re,"style",J.style,ce.style,fe),ue&8){const Qe=U.dynamicProps;for(let It=0;It<Qe.length;It++){const Ft=Qe[It],Mr=J[Ft],Vr=ce[Ft];(Vr!==Mr||Ft==="value")&&a(re,Ft,Mr,Vr,fe,ie)}}ue&1&&H.children!==U.children&&c(re,U.children)}else!Y&&Ce==null&&P(re,J,ce,ie,fe);((Ge=ce.onVnodeUpdated)||Re)&&ta(()=>{Ge&&Lo(Ge,ie,U,H),Re&&Uu(U,H,ie,"updated")},_e)},I=(H,U,ie,_e,fe,$,Y)=>{for(let re=0;re<U.length;re++){const ue=H[re],Ce=U[re],Re=ue.el&&(ue.type===it||!uv(ue,Ce)||ue.shapeFlag&70)?f(ue.el):ie;p(ue,Ce,Re,null,_e,fe,$,Y,!0)}},P=(H,U,ie,_e,fe)=>{if(U!==ie){if(U!==Er)for(const $ in U)!yp($)&&!($ in ie)&&a(H,$,U[$],null,fe,_e);for(const $ in ie){if(yp($))continue;const Y=ie[$],re=U[$];Y!==re&&$!=="value"&&a(H,$,re,Y,fe,_e)}"value"in ie&&a(H,"value",U.value,ie.value,fe)}},R=(H,U,ie,_e,fe,$,Y,re,ue)=>{const Ce=U.el=H?H.el:s(""),Re=U.anchor=H?H.anchor:s("");let{patchFlag:J,dynamicChildren:ce,slotScopeIds:Ge}=U;Ge&&(re=re?re.concat(Ge):Ge),H==null?(n(Ce,ie,_e),n(Re,ie,_e),D(U.children||[],ie,Re,fe,$,Y,re,ue)):J>0&&J&64&&ce&&H.dynamicChildren?(I(H.dynamicChildren,ce,ie,fe,$,Y,re),(U.key!=null||fe&&U===fe.subTree)&&rG(H,U,!0)):z(H,U,ie,Re,fe,$,Y,re,ue)},N=(H,U,ie,_e,fe,$,Y,re,ue)=>{U.slotScopeIds=re,H==null?U.shapeFlag&512?fe.ctx.activate(U,ie,_e,Y,ue):O(U,ie,_e,fe,$,Y,ue):F(H,U,ue)},O=(H,U,ie,_e,fe,$,Y)=>{const re=H.component=Dte(H,_e,fe);if(zz(H)&&(re.ctx.renderer=ye),Mte(re,!1,Y),re.asyncDep){if(fe&&fe.registerDep(re,B,Y),!H.el){const ue=re.subTree=ze(vu);y(null,ue,U,ie)}}else B(re,H,U,ie,fe,$,Y)},F=(H,U,ie)=>{const _e=U.component=H.component;if(yte(H,U,ie))if(_e.asyncDep&&!_e.asyncResolved){W(_e,U,ie);return}else _e.next=U,_e.update();else U.el=H.el,_e.vnode=U},B=(H,U,ie,_e,fe,$,Y)=>{const re=()=>{if(H.isMounted){let{next:J,bu:ce,u:Ge,parent:Qe,vnode:It}=H;{const jr=nG(H);if(jr){J&&(J.el=It.el,W(H,J,Y)),jr.asyncDep.then(()=>{H.isUnmounted||re()});return}}let Ft=J,Mr;Wu(H,!1),J?(J.el=It.el,W(H,J,Y)):J=It,ce&&J0(ce),(Mr=J.props&&J.props.onVnodeBeforeUpdate)&&Lo(Mr,Qe,J,It),Wu(H,!0);const Vr=Kw(H),nn=H.subTree;H.subTree=Vr,p(nn,Vr,f(nn.el),se(nn),H,fe,$),J.el=Vr.el,Ft===null&&_te(H,Vr.el),Ge&&ta(Ge,fe),(Mr=J.props&&J.props.onVnodeUpdated)&&ta(()=>Lo(Mr,Qe,J,It),fe)}else{let J;const{el:ce,props:Ge}=U,{bm:Qe,m:It,parent:Ft,root:Mr,type:Vr}=H,nn=Hh(U);if(Wu(H,!1),Qe&&J0(Qe),!nn&&(J=Ge&&Ge.onVnodeBeforeMount)&&Lo(J,Ft,U),Wu(H,!0),ce&&ke){const jr=()=>{H.subTree=Kw(H),ke(ce,H.subTree,H,fe,null)};nn&&Vr.__asyncHydrate?Vr.__asyncHydrate(ce,H,jr):jr()}else{Mr.ce&&Mr.ce._injectChildStyle(Vr);const jr=H.subTree=Kw(H);p(null,jr,ie,_e,H,fe,$),U.el=jr.el}if(It&&ta(It,fe),!nn&&(J=Ge&&Ge.onVnodeMounted)){const jr=U;ta(()=>Lo(J,Ft,jr),fe)}(U.shapeFlag&256||Ft&&Hh(Ft.vnode)&&Ft.vnode.shapeFlag&256)&&H.a&&ta(H.a,fe),H.isMounted=!0,U=ie=_e=null}};H.scope.on();const ue=H.effect=new gz(re);H.scope.off();const Ce=H.update=ue.run.bind(ue),Re=H.job=ue.runIfDirty.bind(ue);Re.i=H,Re.id=H.uid,ue.scheduler=()=>rM(Re),Wu(H,!0),Ce()},W=(H,U,ie)=>{U.component=H;const _e=H.vnode.props;H.vnode=U,H.next=null,rte(H,U.props,_e,ie),ote(H,U.children,ie),Tu(),AR(H),Au()},z=(H,U,ie,_e,fe,$,Y,re,ue=!1)=>{const Ce=H&&H.children,Re=H?H.shapeFlag:0,J=U.children,{patchFlag:ce,shapeFlag:Ge}=U;if(ce>0){if(ce&128){ee(Ce,J,ie,_e,fe,$,Y,re,ue);return}else if(ce&256){j(Ce,J,ie,_e,fe,$,Y,re,ue);return}}Ge&8?(Re&16&&Ue(Ce,fe,$),J!==Ce&&c(ie,J)):Re&16?Ge&16?ee(Ce,J,ie,_e,fe,$,Y,re,ue):Ue(Ce,fe,$,!0):(Re&8&&c(ie,""),Ge&16&&D(J,ie,_e,fe,$,Y,re,ue))},j=(H,U,ie,_e,fe,$,Y,re,ue)=>{H=H||Vh,U=U||Vh;const Ce=H.length,Re=U.length,J=Math.min(Ce,Re);let ce;for(ce=0;ce<J;ce++){const Ge=U[ce]=ue?Bl(U[ce]):$o(U[ce]);p(H[ce],Ge,ie,null,fe,$,Y,re,ue)}Ce>Re?Ue(H,fe,$,!0,!1,J):D(U,ie,_e,fe,$,Y,re,ue,J)},ee=(H,U,ie,_e,fe,$,Y,re,ue)=>{let Ce=0;const Re=U.length;let J=H.length-1,ce=Re-1;for(;Ce<=J&&Ce<=ce;){const Ge=H[Ce],Qe=U[Ce]=ue?Bl(U[Ce]):$o(U[Ce]);if(uv(Ge,Qe))p(Ge,Qe,ie,null,fe,$,Y,re,ue);else break;Ce++}for(;Ce<=J&&Ce<=ce;){const Ge=H[J],Qe=U[ce]=ue?Bl(U[ce]):$o(U[ce]);if(uv(Ge,Qe))p(Ge,Qe,ie,null,fe,$,Y,re,ue);else break;J--,ce--}if(Ce>J){if(Ce<=ce){const Ge=ce+1,Qe=Ge<Re?U[Ge].el:_e;for(;Ce<=ce;)p(null,U[Ce]=ue?Bl(U[Ce]):$o(U[Ce]),ie,Qe,fe,$,Y,re,ue),Ce++}}else if(Ce>ce)for(;Ce<=J;)me(H[Ce],fe,$,!0),Ce++;else{const Ge=Ce,Qe=Ce,It=new Map;for(Ce=Qe;Ce<=ce;Ce++){const an=U[Ce]=ue?Bl(U[Ce]):$o(U[Ce]);an.key!=null&&It.set(an.key,Ce)}let Ft,Mr=0;const Vr=ce-Qe+1;let nn=!1,jr=0;const _n=new Array(Vr);for(Ce=0;Ce<Vr;Ce++)_n[Ce]=0;for(Ce=Ge;Ce<=J;Ce++){const an=H[Ce];if(Mr>=Vr){me(an,fe,$,!0);continue}let In;if(an.key!=null)In=It.get(an.key);else for(Ft=Qe;Ft<=ce;Ft++)if(_n[Ft-Qe]===0&&uv(an,U[Ft])){In=Ft;break}In===void 0?me(an,fe,$,!0):(_n[In-Qe]=Ce+1,In>=jr?jr=In:nn=!0,p(an,U[In],ie,null,fe,$,Y,re,ue),Mr++)}const Wi=nn?cte(_n):Vh;for(Ft=Wi.length-1,Ce=Vr-1;Ce>=0;Ce--){const an=Qe+Ce,In=U[an],Of=an+1<Re?U[an+1].el:_e;_n[Ce]===0?p(null,In,ie,Of,fe,$,Y,re,ue):nn&&(Ft<0||Ce!==Wi[Ft]?te(In,ie,Of,2):Ft--)}}},te=(H,U,ie,_e,fe=null)=>{const{el:$,type:Y,transition:re,children:ue,shapeFlag:Ce}=H;if(Ce&6){te(H.component.subTree,U,ie,_e);return}if(Ce&128){H.suspense.move(U,ie,_e);return}if(Ce&64){Y.move(H,U,ie,ye);return}if(Y===it){n($,U,ie);for(let J=0;J<ue.length;J++)te(ue[J],U,ie,_e);n(H.anchor,U,ie);return}if(Y===Jw){b(H,U,ie);return}if(_e!==2&&Ce&1&&re)if(_e===0)re.beforeEnter($),n($,U,ie),ta(()=>re.enter($),fe);else{const{leave:J,delayLeave:ce,afterLeave:Ge}=re,Qe=()=>n($,U,ie),It=()=>{J($,()=>{Qe(),Ge&&Ge()})};ce?ce($,Qe,It):It()}else n($,U,ie)},me=(H,U,ie,_e=!1,fe=!1)=>{const{type:$,props:Y,ref:re,children:ue,dynamicChildren:Ce,shapeFlag:Re,patchFlag:J,dirs:ce,cacheIndex:Ge}=H;if(J===-2&&(fe=!1),re!=null&&j_(re,null,ie,H,!0),Ge!=null&&(U.renderCache[Ge]=void 0),Re&256){U.ctx.deactivate(H);return}const Qe=Re&1&&ce,It=!Hh(H);let Ft;if(It&&(Ft=Y&&Y.onVnodeBeforeUnmount)&&Lo(Ft,U,H),Re&6)Oe(H.component,ie,_e);else{if(Re&128){H.suspense.unmount(ie,_e);return}Qe&&Uu(H,null,U,"beforeUnmount"),Re&64?H.type.remove(H,U,ie,ye,_e):Ce&&!Ce.hasOnce&&($!==it||J>0&&J&64)?Ue(Ce,U,ie,!1,!0):($===it&&J&384||!fe&&Re&16)&&Ue(ue,U,ie),_e&&Ae(H)}(It&&(Ft=Y&&Y.onVnodeUnmounted)||Qe)&&ta(()=>{Ft&&Lo(Ft,U,H),Qe&&Uu(H,null,U,"unmounted")},ie)},Ae=H=>{const{type:U,el:ie,anchor:_e,transition:fe}=H;if(U===it){Pe(ie,_e);return}if(U===Jw){w(H);return}const $=()=>{i(ie),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(H.shapeFlag&1&&fe&&!fe.persisted){const{leave:Y,delayLeave:re}=fe,ue=()=>Y(ie,$);re?re(H.el,$,ue):ue()}else $()},Pe=(H,U)=>{let ie;for(;H!==U;)ie=h(H),i(H),H=ie;i(U)},Oe=(H,U,ie)=>{const{bum:_e,scope:fe,job:$,subTree:Y,um:re,m:ue,a:Ce}=H;RR(ue),RR(Ce),_e&&J0(_e),fe.stop(),$&&($.flags|=8,me(Y,H,U,ie)),re&&ta(re,U),ta(()=>{H.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Ue=(H,U,ie,_e=!1,fe=!1,$=0)=>{for(let Y=$;Y<H.length;Y++)me(H[Y],U,ie,_e,fe)},se=H=>{if(H.shapeFlag&6)return se(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const U=h(H.anchor||H.el),ie=U&&U[Eee];return ie?h(ie):U};let he=!1;const pe=(H,U,ie)=>{H==null?U._vnode&&me(U._vnode,null,null,!0):p(U._vnode||null,H,U,null,null,null,ie),U._vnode=H,he||(he=!0,AR(),Nz(),he=!1)},ye={p,um:me,m:te,r:Ae,mt:O,mc:D,pc:z,pbc:I,n:se,o:e};let xe,ke;return{render:pe,hydrate:xe,createApp:ete(pe,xe)}}function jw({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Wu({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ute(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rG(e,t,r=!1){const n=e.children,i=t.children;if(pt(n)&&pt(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Bl(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&rG(o,s)),s.type===qg&&(s.el=o.el)}}function cte(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function nG(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nG(t)}function RR(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const fte=Symbol.for("v-scx"),hte=()=>vo(fte);function oM(e,t){return sM(e,null,t)}function Sr(e,t,r){return sM(e,t,r)}function sM(e,t,r=Er){const{immediate:n,deep:i,flush:a,once:o}=r,s=Nn({},r),l=t&&n||!t&&a!=="post";let u;if(sg){if(a==="sync"){const d=hte();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Jo,d.resume=Jo,d.pause=Jo,d}}const c=Hn;s.call=(d,v,p)=>rs(d,c,v,p);let f=!1;a==="post"?s.scheduler=d=>{ta(d,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(d,v)=>{v?d():rM(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=Mee(e,t,s);return sg&&(u?u.push(h):l&&h()),h}function dte(e,t,r){const n=this.proxy,i=fn(e)?e.includes(".")?iG(n,e):()=>n[e]:e.bind(n,n);let a;Et(t)?a=t:(a=t.handler,r=t);const o=jg(this),s=sM(i,a.bind(n),r);return o(),s}function iG(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const vte=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ha(t)}Modifiers`]||e[`${Tf(t)}Modifiers`];function pte(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Er;let i=r;const a=t.startsWith("update:"),o=a&&vte(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>fn(c)?c.trim():c)),o.number&&(i=r.map(W_)));let s,l=n[s=Uw(t)]||n[s=Uw(Ha(t))];!l&&a&&(l=n[s=Uw(Tf(t))]),l&&rs(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,rs(u,e,6,i)}}function aG(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Et(e)){const l=u=>{const c=aG(u,t,!0);c&&(s=!0,Nn(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(kr(e)&&n.set(e,null),null):(pt(a)?a.forEach(l=>o[l]=null):Nn(o,a),kr(e)&&n.set(e,o),o)}function CS(e,t){return!e||!vS(t)?!1:(t=t.slice(2).replace(/Once$/,""),_r(e,t[0].toLowerCase()+t.slice(1))||_r(e,Tf(t))||_r(e,t))}function Kw(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:v,inheritAttrs:p}=e,m=q_(e);let y,S;try{if(r.shapeFlag&4){const w=i||n,C=w;y=$o(u.call(C,w,c,f,d,h,v)),S=s}else{const w=t;y=$o(w.length>1?w(f,{attrs:s,slots:o,emit:l}):w(f,null)),S=t.props?s:gte(s)}}catch(w){wp.length=0,wS(w,e,1),y=ze(vu)}let b=y;if(S&&p!==!1){const w=Object.keys(S),{shapeFlag:C}=b;w.length&&C&7&&(a&&w.some(Y2)&&(S=mte(S,a)),b=td(b,S,!1,!0))}return r.dirs&&(b=td(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&nM(b,r.transition),y=b,q_(m),y}const gte=e=>{let t;for(const r in e)(r==="class"||r==="style"||vS(r))&&((t||(t={}))[r]=e[r]);return t},mte=(e,t)=>{const r={};for(const n in e)(!Y2(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function yte(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?kR(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(o[h]!==n[h]&&!CS(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?kR(n,o,u):!0:!!o;return!1}function kR(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!CS(r,a))return!0}return!1}function _te({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const oG=e=>e.__isSuspense;function Ste(e,t){t&&t.pendingBranch?pt(e)?t.effects.push(...e):t.effects.push(e):Pee(e)}const it=Symbol.for("v-fgt"),qg=Symbol.for("v-txt"),vu=Symbol.for("v-cmt"),Jw=Symbol.for("v-stc"),wp=[];let aa=null;function oe(e=!1){wp.push(aa=e?null:[])}function bte(){wp.pop(),aa=wp[wp.length-1]||null}let ag=1;function OR(e,t=!1){ag+=e,e<0&&aa&&t&&(aa.hasOnce=!0)}function sG(e){return e.dynamicChildren=ag>0?aa||Vh:null,bte(),ag>0&&aa&&aa.push(e),e}function ve(e,t,r,n,i,a){return sG(X(e,t,r,n,i,a,!0))}function er(e,t,r,n,i){return sG(ze(e,t,r,n,i,!0))}function og(e){return e?e.__v_isVNode===!0:!1}function uv(e,t){return e.type===t.type&&e.key===t.key}const lG=({key:e})=>e??null,e_=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?fn(e)||vt(e)||Et(e)?{i:kn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,n=0,i=null,a=e===it?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lG(t),ref:t&&e_(t),scopeId:Bz,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kn};return s?(lM(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=fn(r)?8:16),ag>0&&!o&&aa&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&aa.push(l),l}const ze=wte;function wte(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===Hz)&&(e=vu),og(e)){const s=td(e,t,!0);return r&&lM(s,r),ag>0&&!a&&aa&&(s.shapeFlag&6?aa[aa.indexOf(e)]=s:aa.push(s)),s.patchFlag=-2,s}if(Rte(e)&&(e=e.__vccOpts),t){t=xte(t);let{class:s,style:l}=t;s&&!fn(s)&&(t.class=Tt(s)),kr(l)&&(tM(l)&&!pt(l)&&(l=Nn({},l)),t.style=kc(l))}const o=fn(e)?1:oG(e)?128:Ree(e)?64:kr(e)?4:Et(e)?2:0;return X(e,t,r,n,i,o,a,!0)}function xte(e){return e?tM(e)||qz(e)?Nn({},e):e:null}function td(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Cte(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&lG(u),ref:t&&t.ref?r&&a?pt(a)?a.concat(e_(t)):[a,e_(t)]:e_(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&td(e.ssContent),ssFallback:e.ssFallback&&td(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&nM(c,l.clone(c)),c}function Xt(e=" ",t=0){return ze(qg,null,e,t)}function Ut(e="",t=!1){return t?(oe(),er(vu,null,e)):ze(vu,null,e)}function $o(e){return e==null||typeof e=="boolean"?ze(vu):pt(e)?ze(it,null,e.slice()):og(e)?Bl(e):ze(qg,null,String(e))}function Bl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:td(e)}function lM(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pt(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),lM(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!qz(t)?t._ctx=kn:i===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Et(t)?(t={default:t,_ctx:kn},r=32):(t=String(t),n&64?(r=16,t=[Xt(t)]):r=8);e.children=t,e.shapeFlag|=r}function Cte(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Tt([t.class,n.class]));else if(i==="style")t.style=kc([t.style,n.style]);else if(vS(i)){const a=t[i],o=n[i];o&&a!==o&&!(pt(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function Lo(e,t,r,n=null){rs(e,t,7,[r,n])}const Tte=Yz();let Ate=0;function Dte(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||Tte,a={uid:Ate++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vz(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kz(n,i),emitsOptions:aG(n,i),emit:null,emitted:null,propsDefaults:Er,inheritAttrs:n.inheritAttrs,ctx:Er,data:Er,props:Er,attrs:Er,slots:Er,refs:Er,setupState:Er,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=pte.bind(null,a),e.ce&&e.ce(a),a}let Hn=null;const ns=()=>Hn||kn;let J_,gA;{const e=mS(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};J_=t("__VUE_INSTANCE_SETTERS__",r=>Hn=r),gA=t("__VUE_SSR_SETTERS__",r=>sg=r)}const jg=e=>{const t=Hn;return J_(e),e.scope.on(),()=>{e.scope.off(),J_(t)}},NR=()=>{Hn&&Hn.scope.off(),J_(null)};function uG(e){return e.vnode.shapeFlag&4}let sg=!1;function Mte(e,t=!1,r=!1){t&&gA(t);const{props:n,children:i}=e.vnode,a=uG(e);tte(e,n,a,t),ate(e,i,r);const o=a?Ite(e,t):void 0;return t&&gA(!1),o}function Ite(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xee);const{setup:n}=r;if(n){Tu();const i=e.setupContext=n.length>1?Pte(e):null,a=jg(e),o=Xg(n,e,0,[e.props,i]),s=sz(o);if(Au(),a(),(s||e.sp)&&!Hh(e)&&Vz(e),s){if(o.then(NR,NR),t)return o.then(l=>{FR(e,l,t)}).catch(l=>{wS(l,e,0)});e.asyncDep=o}else FR(e,o,t)}else cG(e,t)}function FR(e,t,r){Et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kr(t)&&(e.setupState=Ez(t)),cG(e,r)}let BR;function cG(e,t,r){const n=e.type;if(!e.render){if(!t&&BR&&!n.render){const i=n.template||iM(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Nn(Nn({isCustomElement:a,delimiters:s},o),l);n.render=BR(i,u)}}e.render=n.render||Jo}{const i=jg(e);Tu();try{Zee(e)}finally{Au(),i()}}}const Lte={get(e,t){return ti(e,"get",""),e[t]}};function Pte(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Lte),slots:e.slots,emit:e.emit,expose:t}}function TS(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ez(gee(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in bp)return bp[r](e)},has(t,r){return r in t||r in bp}})):e.proxy}function Ete(e,t=!0){return Et(e)?e.displayName||e.name:e.name||t&&e.__name}function Rte(e){return Et(e)&&"__vccOpts"in e}const at=(e,t)=>Aee(e,t,sg);function Wo(e,t,r){const n=arguments.length;return n===2?kr(t)&&!pt(t)?og(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&og(r)&&(r=[r]),ze(e,t,r))}const kte="3.5.13";/**
|
||
* @vue/runtime-dom v3.5.13
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let mA;const VR=typeof window<"u"&&window.trustedTypes;if(VR)try{mA=VR.createPolicy("vue",{createHTML:e=>e})}catch{}const fG=mA?e=>mA.createHTML(e):e=>e,Ote="http://www.w3.org/2000/svg",Nte="http://www.w3.org/1998/Math/MathML",Is=typeof document<"u"?document:null,zR=Is&&Is.createElement("template"),Fte={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Is.createElementNS(Ote,e):t==="mathml"?Is.createElementNS(Nte,e):r?Is.createElement(e,{is:r}):Is.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Is.createTextNode(e),createComment:e=>Is.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Is.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{zR.innerHTML=fG(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const s=zR.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Bte=Symbol("_vtc");function Vte(e,t,r){const n=e[Bte];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const GR=Symbol("_vod"),zte=Symbol("_vsh"),Gte=Symbol(""),$te=/(^|;)\s*display\s*:/;function Hte(e,t,r){const n=e.style,i=fn(r);let a=!1;if(r&&!i){if(t)if(fn(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&t_(n,s,"")}else for(const o in t)r[o]==null&&t_(n,o,"");for(const o in r)o==="display"&&(a=!0),t_(n,o,r[o])}else if(i){if(t!==r){const o=n[Gte];o&&(r+=";"+o),n.cssText=r,a=$te.test(r)}}else t&&e.removeAttribute("style");GR in e&&(e[GR]=a?n.display:"",e[zte]&&(n.display="none"))}const $R=/\s*!important$/;function t_(e,t,r){if(pt(r))r.forEach(n=>t_(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ute(e,t);$R.test(r)?e.setProperty(Tf(n),r.replace($R,""),"important"):e[n]=r}}const HR=["Webkit","Moz","ms"],Qw={};function Ute(e,t){const r=Qw[t];if(r)return r;let n=Ha(t);if(n!=="filter"&&n in e)return Qw[t]=n;n=gS(n);for(let i=0;i<HR.length;i++){const a=HR[i]+n;if(a in e)return Qw[t]=a}return t}const UR="http://www.w3.org/1999/xlink";function WR(e,t,r,n,i,a=XQ(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(UR,t.slice(6,t.length)):e.setAttributeNS(UR,t,r):r==null||a&&!fz(r)?e.removeAttribute(t):e.setAttribute(t,a?"":_o(r)?String(r):r)}function YR(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?fG(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=fz(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(i||t)}function Ul(e,t,r,n){e.addEventListener(t,r,n)}function Wte(e,t,r,n){e.removeEventListener(t,r,n)}const XR=Symbol("_vei");function Yte(e,t,r,n,i=null){const a=e[XR]||(e[XR]={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=Xte(t);if(n){const u=a[t]=jte(n,i);Ul(e,s,u,l)}else o&&(Wte(e,s,o,l),a[t]=void 0)}}const ZR=/(?:Once|Passive|Capture)$/;function Xte(e){let t;if(ZR.test(e)){t={};let n;for(;n=e.match(ZR);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Tf(e.slice(2)),t]}let ex=0;const Zte=Promise.resolve(),qte=()=>ex||(Zte.then(()=>ex=0),ex=Date.now());function jte(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rs(Kte(n,r.value),t,5,[n])};return r.value=e,r.attached=qte(),r}function Kte(e,t){if(pt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const qR=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jte=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?Vte(e,n,o):t==="style"?Hte(e,r,n):vS(t)?Y2(t)||Yte(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qte(e,t,n,o))?(YR(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&WR(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fn(n))?YR(e,Ha(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),WR(e,t,n,o))};function Qte(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&qR(t)&&Et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qR(t)&&fn(r)?!1:t in e}const rd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pt(t)?r=>J0(t,r):t};function ere(e){e.target.composing=!0}function jR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $s=Symbol("_assign"),oa={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[$s]=rd(i);const a=n||i.props&&i.props.type==="number";Ul(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=W_(s)),e[$s](s)}),r&&Ul(e,"change",()=>{e.value=e.value.trim()}),t||(Ul(e,"compositionstart",ere),Ul(e,"compositionend",jR),Ul(e,"change",jR))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[$s]=rd(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?W_(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},Ea={deep:!0,created(e,t,r){e[$s]=rd(r),Ul(e,"change",()=>{const n=e._modelValue,i=lg(e),a=e.checked,o=e[$s];if(pt(n)){const s=q2(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(wd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(hG(e,a))})},mounted:KR,beforeUpdate(e,t,r){e[$s]=rd(r),KR(e,t,r)}};function KR(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(pt(t))i=q2(t,n.props.value)>-1;else if(wd(t))i=t.has(n.props.value);else{if(t===r)return;i=Yg(t,hG(e,!0))}e.checked!==i&&(e.checked=i)}const po={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=wd(t);Ul(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?W_(lg(o)):lg(o));e[$s](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Af(()=>{e._assigning=!1})}),e[$s]=rd(n)},mounted(e,{value:t}){JR(e,t)},beforeUpdate(e,t,r){e[$s]=rd(r)},updated(e,{value:t}){e._assigning||JR(e,t)}};function JR(e,t){const r=e.multiple,n=pt(t);if(!(r&&!n&&!wd(t))){for(let i=0,a=e.options.length;i<a;i++){const o=e.options[i],s=lg(o);if(r)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(s)):o.selected=q2(t,s)>-1}else o.selected=t.has(s);else if(Yg(lg(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function lg(e){return"_value"in e?e._value:e.value}function hG(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const tre=["ctrl","shift","alt","meta"],rre={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tre.some(r=>e[`${r}Key`]&&!t.includes(r))},uM=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<t.length;o++){const s=rre[t[o]];if(s&&s(i,t))return}return e(i,...a)})},nre=Nn({patchProp:Jte},Fte);let QR;function ire(){return QR||(QR=ste(nre))}const are=(...e)=>{const t=ire().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=sre(n);if(!i)return;const a=t._component;!Et(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,ore(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function ore(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sre(e){return fn(e)?document.querySelector(e):e}const Ty=0;var So=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(So||{}),or=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(or||{}),Wl=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Wl||{}),ug=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(ug||{}),nd=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(nd||{}),hf=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(hf||{}),Fi=(e=>(e.HOST="host",e.CHAINS="chains",e.RULE="rule",e.TYPE="type",e.CONNECT_TIME="connectTime",e.DOWNLOAD="download",e.DOWNLOAD_SPEED="downloadSpeed",e.UPLOAD="upload",e.UPLOAD_SPEED="uploadSpeed",e.SOURCE_IP="sourceIP",e))(Fi||{}),Oc=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Oc||{}),Nc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Nc||{}),Pr=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(Pr||{});function df(e){return pz()?(jQ(e),!0):!1}function Mu(e){return typeof e=="function"?e():q(e)}const jc=typeof window<"u"&&typeof document<"u",lre=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,ure=e=>e!=null,cre=Object.prototype.toString,fre=e=>cre.call(e)==="[object Object]",dG=()=>{};function hre(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const vG=e=>e();function dre(e=vG){const t=Ye(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:SS(t),pause:r,resume:n,eventFilter:i}}function pG(e){return ns()}function gG(...e){if(e.length!==1)return Cee(...e);const t=e[0];return typeof t=="function"?SS(See(()=>({get:t,set:dG}))):Ye(t)}function vre(e,t,r={}){const{eventFilter:n=vG,...i}=r;return Sr(e,hre(n,t),i)}function pre(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=dre(n);return{stop:vre(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function gre(e,t){pG()&&$z(e,t)}function cM(e,t=!0,r){pG()?ol(e,r):t?e():Af(e)}function mre(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let a=null;const o=Ye(!1);function s(){a&&(clearInterval(a),a=null)}function l(){o.value=!1,s()}function u(){const c=Mu(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&jc&&u(),vt(t)||typeof t=="function"){const c=Sr(t,()=>{o.value&&jc&&u()});df(c)}return df(l),{isActive:o,pause:l,resume:u}}const pu=jc?window:void 0,yre=jc?window.document:void 0;function Xl(e){var t;const r=Mu(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Q_(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=pu):[t,r,n,i]=e,!t)return dG;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=Sr(()=>[Xl(t),Mu(i)],([c,f])=>{if(o(),!c)return;const h=fre(f)?{...f}:f;a.push(...r.flatMap(d=>n.map(v=>s(c,d,v,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return df(u),u}function _re(){const e=Ye(!1),t=ns();return t&&ol(()=>{e.value=!0},t),e}function fM(e){const t=_re();return at(()=>(t.value,!!e()))}function Sre(e,t,r={}){const{window:n=pu,...i}=r;let a;const o=fM(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const h=Mu(e),d=(Array.isArray(h)?h:[h]).map(Xl).filter(ure);return new Set(d)}),u=Sr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(d=>a.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return df(f),{isSupported:o,stop:f,takeRecords:c}}function bre(e,t={}){const{window:r=pu}=t,n=fM(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=Ye(!1),o=u=>{a.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=oM(()=>{n.value&&(s(),i=r.matchMedia(Mu(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return df(()=>{l(),s(),i=void 0}),a}const Ay=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dy="__vueuse_ssr_handlers__",wre=xre();function xre(){return Dy in Ay||(Ay[Dy]=Ay[Dy]||{}),Ay[Dy]}function Cre(e,t){return wre[e]||t}function Tre(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Are={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ek="vueuse-storage";function Or(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=pu,eventFilter:h,onError:d=I=>{console.error(I)},initOnMounted:v}=n,p=(c?bS:Ye)(typeof t=="function"?t():t);if(!r)try{r=Cre("getDefaultStorage",()=>{var I;return(I=pu)==null?void 0:I.localStorage})()}catch(I){d(I)}if(!r)return p;const m=Mu(t),y=Tre(m),S=(i=n.serializer)!=null?i:Are[y],{pause:b,resume:w}=pre(p,()=>x(p.value),{flush:a,deep:o,eventFilter:h});f&&s&&cM(()=>{r instanceof Storage?Q_(f,"storage",D):Q_(f,ek,M),v&&D()}),v||D();function C(I,P){if(f){const R={key:e,oldValue:I,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",R):new CustomEvent(ek,{detail:R}))}}function x(I){try{const P=r.getItem(e);if(I==null)C(P,null),r.removeItem(e);else{const R=S.write(I);P!==R&&(r.setItem(e,R),C(P,R))}}catch(P){d(P)}}function A(I){const P=I?I.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!I&&u){const R=S.read(P);return typeof u=="function"?u(R,m):y==="object"&&!Array.isArray(R)?{...m,...R}:R}else return typeof P!="string"?P:S.read(P)}function D(I){if(!(I&&I.storageArea!==r)){if(I&&I.key==null){p.value=m;return}if(!(I&&I.key!==e)){b();try{(I==null?void 0:I.newValue)!==S.write(p.value)&&(p.value=A(I))}catch(P){d(P)}finally{I?Af(w):w()}}}}function M(I){D(I.detail)}return p}function Dre(e,t,r={}){const{window:n=pu,...i}=r;let a;const o=fM(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const f=Mu(e);return Array.isArray(f)?f.map(h=>Xl(h)):[Xl(f)]}),u=Sr(l,f=>{if(s(),o.value&&n){a=new ResizeObserver(t);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return df(c),{isSupported:o,stop:c}}function Mre(e,t={width:0,height:0},r={}){const{window:n=pu,box:i="content-box"}=r,a=at(()=>{var f,h;return(h=(f=Xl(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=Ye(t.width),s=Ye(t.height),{stop:l}=Dre(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const d=Xl(e);if(d){const v=d.getBoundingClientRect();o.value=v.width,s.value=v.height}}else if(h){const d=Array.isArray(h)?h:[h];o.value=d.reduce((v,{inlineSize:p})=>v+p,0),s.value=d.reduce((v,{blockSize:p})=>v+p,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);cM(()=>{const f=Xl(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Sr(()=>Xl(e),f=>{o.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:o,height:s,stop:c}}function Ire(e=null,t={}){var r,n,i;const{document:a=yre,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=gG((n=e??(a==null?void 0:a.title))!=null?n:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):Mu(h).replace(/%s/g,f)}return Sr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&Sre((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),gre(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const tk="ping";function tx(e){return e===!0?{}:e}function Lre(e,t={}){const{onConnected:r,onDisconnected:n,onError:i,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:l=[]}=t,u=Ye(null),c=Ye("CLOSED"),f=Ye(),h=gG(e);let d,v,p=!1,m=0,y=[],S;const b=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const M of y)f.value.send(M);y=[]}},w=()=>{clearTimeout(S),S=void 0},C=(M=1e3,I)=>{!jc||!f.value||(p=!0,w(),d==null||d(),f.value.close(M,I),f.value=void 0)},x=(M,I=!0)=>!f.value||c.value!=="OPEN"?(I&&y.push(M),!1):(b(),f.value.send(M),!0),A=()=>{if(p||typeof h.value>"u")return;const M=new WebSocket(h.value,l);f.value=M,c.value="CONNECTING",M.onopen=()=>{c.value="OPEN",m=0,r==null||r(M),v==null||v(),b()},M.onclose=I=>{if(c.value="CLOSED",n==null||n(M,I),!p&&t.autoReconnect&&(f.value==null||M===f.value)){const{retries:P=-1,delay:R=1e3,onFailed:N}=tx(t.autoReconnect);typeof P=="number"&&(P<0||m<P)?(m+=1,setTimeout(A,R)):typeof P=="function"&&P()?setTimeout(A,R):N==null||N()}},M.onerror=I=>{i==null||i(M,I)},M.onmessage=I=>{if(t.heartbeat){w();const{message:P=tk,responseMessage:R=P}=tx(t.heartbeat);if(I.data===R)return}u.value=I.data,a==null||a(M,I)}};if(t.heartbeat){const{message:M=tk,interval:I=1e3,pongTimeout:P=1e3}=tx(t.heartbeat),{pause:R,resume:N}=mre(()=>{x(M,!1),S==null&&(S=setTimeout(()=>{C(),p=!1},P))},I,{immediate:!1});d=R,v=N}s&&(jc&&Q_("beforeunload",()=>C()),df(C));const D=()=>{!jc&&!lre||(C(),p=!1,m=0,A())};return o&&D(),Sr(h,D),{data:u,status:c,close:C,send:x,open:D,ws:f}}function Pre(e={}){const{window:t=pu,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Ye(r),l=Ye(n),u=()=>{t&&(o==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),cM(u),Q_("resize",u,{passive:!0}),i){const c=bre("(orientation: portrait)");Sr(c,()=>u())}return{width:s,height:l}}const r_=Or("config/theme","default"),sa=Or("config/language",So.EN_US),Kc=Or("config/is-sidebar-collapsed",window.screen.width>720),n_=Or("config/show-global-proxy",!0),e1=Or("config/collapse-group-map",{}),xp=Or("config/two-columns",!0),Cp=Or("config/speedtest-url","http://www.gstatic.com/generate_204"),Tp=Or("config/speedtest-timeout",5e3),i_=Or("config/proxy-sort-type",Wl.DEFAULT),a_=Or("config/automatic-disconnection",!0),Jc=Or("config/two-column-node-for-mobile",!0),Ap=Or("config/truncate-proxy-name",!0),Dp=Or("config/proxy-preview-type",ug.AUTO),o_=Or("config/hide-unavailable-proxies",!1),Zl=Or("config/low-latency",300),Ns=Or("config/medium-latency",800),Fc=Or("config/use-connecticon-card",!1),Mc=Or("config/connection-table-columns",[or.Close,or.Host,or.Type,or.Rule,or.Chains,or.Download,or.Upload,or.DlSpeed,or.UlSpeed,or.ConnectTime]),s_=Or("config/compact-connection-card",!0),Ls=Or("config/source-ip-label-map",{});var Kv={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/var Ere=Kv.exports,rk;function Rre(){return rk||(rk=1,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,d=4,v=1,p=2,m=1,y=2,S=4,b=8,w=16,C=32,x=64,A=128,D=256,M=512,I=30,P="...",R=800,N=16,O=1,F=2,B=3,W=1/0,z=9007199254740991,j=17976931348623157e292,ee=NaN,te=4294967295,me=te-1,Ae=te>>>1,Pe=[["ary",A],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",M],["partial",C],["partialRight",x],["rearg",D]],Oe="[object Arguments]",Ue="[object Array]",se="[object AsyncFunction]",he="[object Boolean]",pe="[object Date]",ye="[object DOMException]",xe="[object Error]",ke="[object Function]",H="[object GeneratorFunction]",U="[object Map]",ie="[object Number]",_e="[object Null]",fe="[object Object]",$="[object Promise]",Y="[object Proxy]",re="[object RegExp]",ue="[object Set]",Ce="[object String]",Re="[object Symbol]",J="[object Undefined]",ce="[object WeakMap]",Ge="[object WeakSet]",Qe="[object ArrayBuffer]",It="[object DataView]",Ft="[object Float32Array]",Mr="[object Float64Array]",Vr="[object Int8Array]",nn="[object Int16Array]",jr="[object Int32Array]",_n="[object Uint8Array]",Wi="[object Uint8ClampedArray]",an="[object Uint16Array]",In="[object Uint32Array]",Of=/\b__p \+= '';/g,Nf=/\b(__p \+=) '' \+/g,Ff=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cm=/&(?:amp|lt|gt|quot|#39);/g,fl=/[&<>"']/g,Lb=RegExp(Cm.source),Pb=RegExp(fl.source),vn=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,Tm=/<%=([\s\S]+?)%>/g,Am=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hd=/^\w*$/,Dm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bf=/[\\^$.*+?()[\]{}|]/g,Eb=RegExp(Bf.source),Ii=/^\s+/,Vf=/\s/,Mm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Im=/\{\n\/\* \[wrapped with (.+)\] \*/,Lm=/,? & /,Pm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qa=/[()=,{}\[\]\/\s]/,Em=/\\(\\)?/g,Rm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ud=/\w*$/,km=/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,ne=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,br=/($^)/,Ln=/['\n\r\u2028\u2029\\]/g,Kr="\\ud800-\\udfff",Xn="\\u0300-\\u036f",pa="\\ufe20-\\ufe2f",ku="\\u20d0-\\u20ff",Pn=Xn+pa+ku,Wd="\\u2700-\\u27bf",Yd="a-z\\xdf-\\xf6\\xf8-\\xff",TY="\\xac\\xb1\\xd7\\xf7",AY="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",DY="\\u2000-\\u206f",MY=" \\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",KL="A-Z\\xc0-\\xd6\\xd8-\\xde",JL="\\ufe0e\\ufe0f",QL=TY+AY+DY+MY,kb="['’]",IY="["+Kr+"]",eP="["+QL+"]",Om="["+Pn+"]",tP="\\d+",LY="["+Wd+"]",rP="["+Yd+"]",nP="[^"+Kr+QL+tP+Wd+Yd+KL+"]",Ob="\\ud83c[\\udffb-\\udfff]",PY="(?:"+Om+"|"+Ob+")",iP="[^"+Kr+"]",Nb="(?:\\ud83c[\\udde6-\\uddff]){2}",Fb="[\\ud800-\\udbff][\\udc00-\\udfff]",zf="["+KL+"]",aP="\\u200d",oP="(?:"+rP+"|"+nP+")",EY="(?:"+zf+"|"+nP+")",sP="(?:"+kb+"(?:d|ll|m|re|s|t|ve))?",lP="(?:"+kb+"(?:D|LL|M|RE|S|T|VE))?",uP=PY+"?",cP="["+JL+"]?",RY="(?:"+aP+"(?:"+[iP,Nb,Fb].join("|")+")"+cP+uP+")*",kY="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OY="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fP=cP+uP+RY,NY="(?:"+[LY,Nb,Fb].join("|")+")"+fP,FY="(?:"+[iP+Om+"?",Om,Nb,Fb,IY].join("|")+")",BY=RegExp(kb,"g"),VY=RegExp(Om,"g"),Bb=RegExp(Ob+"(?="+Ob+")|"+FY+fP,"g"),zY=RegExp([zf+"?"+rP+"+"+sP+"(?="+[eP,zf,"$"].join("|")+")",EY+"+"+lP+"(?="+[eP,zf+oP,"$"].join("|")+")",zf+"?"+oP+"+"+sP,zf+"+"+lP,OY,kY,tP,NY].join("|"),"g"),GY=RegExp("["+aP+Kr+Pn+JL+"]"),$Y=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HY=["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"],UY=-1,zr={};zr[Ft]=zr[Mr]=zr[Vr]=zr[nn]=zr[jr]=zr[_n]=zr[Wi]=zr[an]=zr[In]=!0,zr[Oe]=zr[Ue]=zr[Qe]=zr[he]=zr[It]=zr[pe]=zr[xe]=zr[ke]=zr[U]=zr[ie]=zr[fe]=zr[re]=zr[ue]=zr[Ce]=zr[ce]=!1;var Nr={};Nr[Oe]=Nr[Ue]=Nr[Qe]=Nr[It]=Nr[he]=Nr[pe]=Nr[Ft]=Nr[Mr]=Nr[Vr]=Nr[nn]=Nr[jr]=Nr[U]=Nr[ie]=Nr[fe]=Nr[re]=Nr[ue]=Nr[Ce]=Nr[Re]=Nr[_n]=Nr[Wi]=Nr[an]=Nr[In]=!0,Nr[xe]=Nr[ke]=Nr[ce]=!1;var WY={À:"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"},YY={"&":"&","<":"<",">":">",'"':""","'":"'"},XY={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZY={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qY=parseFloat,jY=parseInt,hP=typeof by=="object"&&by&&by.Object===Object&&by,KY=typeof self=="object"&&self&&self.Object===Object&&self,Bn=hP||KY||Function("return this")(),Vb=t&&!t.nodeType&&t,Ou=Vb&&!0&&e&&!e.nodeType&&e,dP=Ou&&Ou.exports===Vb,zb=dP&&hP.process,ga=function(){try{var ae=Ou&&Ou.require&&Ou.require("util").types;return ae||zb&&zb.binding&&zb.binding("util")}catch{}}(),vP=ga&&ga.isArrayBuffer,pP=ga&&ga.isDate,gP=ga&&ga.isMap,mP=ga&&ga.isRegExp,yP=ga&&ga.isSet,_P=ga&&ga.isTypedArray;function Yi(ae,Te,ge){switch(ge.length){case 0:return ae.call(Te);case 1:return ae.call(Te,ge[0]);case 2:return ae.call(Te,ge[0],ge[1]);case 3:return ae.call(Te,ge[0],ge[1],ge[2])}return ae.apply(Te,ge)}function JY(ae,Te,ge,je){for(var Lt=-1,fr=ae==null?0:ae.length;++Lt<fr;){var Sn=ae[Lt];Te(je,Sn,ge(Sn),ae)}return je}function ma(ae,Te){for(var ge=-1,je=ae==null?0:ae.length;++ge<je&&Te(ae[ge],ge,ae)!==!1;);return ae}function QY(ae,Te){for(var ge=ae==null?0:ae.length;ge--&&Te(ae[ge],ge,ae)!==!1;);return ae}function SP(ae,Te){for(var ge=-1,je=ae==null?0:ae.length;++ge<je;)if(!Te(ae[ge],ge,ae))return!1;return!0}function dl(ae,Te){for(var ge=-1,je=ae==null?0:ae.length,Lt=0,fr=[];++ge<je;){var Sn=ae[ge];Te(Sn,ge,ae)&&(fr[Lt++]=Sn)}return fr}function Nm(ae,Te){var ge=ae==null?0:ae.length;return!!ge&&Gf(ae,Te,0)>-1}function Gb(ae,Te,ge){for(var je=-1,Lt=ae==null?0:ae.length;++je<Lt;)if(ge(Te,ae[je]))return!0;return!1}function Hr(ae,Te){for(var ge=-1,je=ae==null?0:ae.length,Lt=Array(je);++ge<je;)Lt[ge]=Te(ae[ge],ge,ae);return Lt}function vl(ae,Te){for(var ge=-1,je=Te.length,Lt=ae.length;++ge<je;)ae[Lt+ge]=Te[ge];return ae}function $b(ae,Te,ge,je){var Lt=-1,fr=ae==null?0:ae.length;for(je&&fr&&(ge=ae[++Lt]);++Lt<fr;)ge=Te(ge,ae[Lt],Lt,ae);return ge}function eX(ae,Te,ge,je){var Lt=ae==null?0:ae.length;for(je&&Lt&&(ge=ae[--Lt]);Lt--;)ge=Te(ge,ae[Lt],Lt,ae);return ge}function Hb(ae,Te){for(var ge=-1,je=ae==null?0:ae.length;++ge<je;)if(Te(ae[ge],ge,ae))return!0;return!1}var tX=Ub("length");function rX(ae){return ae.split("")}function nX(ae){return ae.match(Pm)||[]}function bP(ae,Te,ge){var je;return ge(ae,function(Lt,fr,Sn){if(Te(Lt,fr,Sn))return je=fr,!1}),je}function Fm(ae,Te,ge,je){for(var Lt=ae.length,fr=ge+(je?1:-1);je?fr--:++fr<Lt;)if(Te(ae[fr],fr,ae))return fr;return-1}function Gf(ae,Te,ge){return Te===Te?pX(ae,Te,ge):Fm(ae,wP,ge)}function iX(ae,Te,ge,je){for(var Lt=ge-1,fr=ae.length;++Lt<fr;)if(je(ae[Lt],Te))return Lt;return-1}function wP(ae){return ae!==ae}function xP(ae,Te){var ge=ae==null?0:ae.length;return ge?Yb(ae,Te)/ge:ee}function Ub(ae){return function(Te){return Te==null?r:Te[ae]}}function Wb(ae){return function(Te){return ae==null?r:ae[Te]}}function CP(ae,Te,ge,je,Lt){return Lt(ae,function(fr,Sn,Lr){ge=je?(je=!1,fr):Te(ge,fr,Sn,Lr)}),ge}function aX(ae,Te){var ge=ae.length;for(ae.sort(Te);ge--;)ae[ge]=ae[ge].value;return ae}function Yb(ae,Te){for(var ge,je=-1,Lt=ae.length;++je<Lt;){var fr=Te(ae[je]);fr!==r&&(ge=ge===r?fr:ge+fr)}return ge}function Xb(ae,Te){for(var ge=-1,je=Array(ae);++ge<ae;)je[ge]=Te(ge);return je}function oX(ae,Te){return Hr(Te,function(ge){return[ge,ae[ge]]})}function TP(ae){return ae&&ae.slice(0,IP(ae)+1).replace(Ii,"")}function Xi(ae){return function(Te){return ae(Te)}}function Zb(ae,Te){return Hr(Te,function(ge){return ae[ge]})}function Xd(ae,Te){return ae.has(Te)}function AP(ae,Te){for(var ge=-1,je=ae.length;++ge<je&&Gf(Te,ae[ge],0)>-1;);return ge}function DP(ae,Te){for(var ge=ae.length;ge--&&Gf(Te,ae[ge],0)>-1;);return ge}function sX(ae,Te){for(var ge=ae.length,je=0;ge--;)ae[ge]===Te&&++je;return je}var lX=Wb(WY),uX=Wb(YY);function cX(ae){return"\\"+ZY[ae]}function fX(ae,Te){return ae==null?r:ae[Te]}function $f(ae){return GY.test(ae)}function hX(ae){return $Y.test(ae)}function dX(ae){for(var Te,ge=[];!(Te=ae.next()).done;)ge.push(Te.value);return ge}function qb(ae){var Te=-1,ge=Array(ae.size);return ae.forEach(function(je,Lt){ge[++Te]=[Lt,je]}),ge}function MP(ae,Te){return function(ge){return ae(Te(ge))}}function pl(ae,Te){for(var ge=-1,je=ae.length,Lt=0,fr=[];++ge<je;){var Sn=ae[ge];(Sn===Te||Sn===c)&&(ae[ge]=c,fr[Lt++]=ge)}return fr}function Bm(ae){var Te=-1,ge=Array(ae.size);return ae.forEach(function(je){ge[++Te]=je}),ge}function vX(ae){var Te=-1,ge=Array(ae.size);return ae.forEach(function(je){ge[++Te]=[je,je]}),ge}function pX(ae,Te,ge){for(var je=ge-1,Lt=ae.length;++je<Lt;)if(ae[je]===Te)return je;return-1}function gX(ae,Te,ge){for(var je=ge+1;je--;)if(ae[je]===Te)return je;return je}function Hf(ae){return $f(ae)?yX(ae):tX(ae)}function ja(ae){return $f(ae)?_X(ae):rX(ae)}function IP(ae){for(var Te=ae.length;Te--&&Vf.test(ae.charAt(Te)););return Te}var mX=Wb(XY);function yX(ae){for(var Te=Bb.lastIndex=0;Bb.test(ae);)++Te;return Te}function _X(ae){return ae.match(Bb)||[]}function SX(ae){return ae.match(zY)||[]}var bX=function ae(Te){Te=Te==null?Bn:Uf.defaults(Bn.Object(),Te,Uf.pick(Bn,HY));var ge=Te.Array,je=Te.Date,Lt=Te.Error,fr=Te.Function,Sn=Te.Math,Lr=Te.Object,jb=Te.RegExp,wX=Te.String,ya=Te.TypeError,Vm=ge.prototype,xX=fr.prototype,Wf=Lr.prototype,zm=Te["__core-js_shared__"],Gm=xX.toString,wr=Wf.hasOwnProperty,CX=0,LP=function(){var g=/[^.]+$/.exec(zm&&zm.keys&&zm.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),$m=Wf.toString,TX=Gm.call(Lr),AX=Bn._,DX=jb("^"+Gm.call(wr).replace(Bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hm=dP?Te.Buffer:r,gl=Te.Symbol,Um=Te.Uint8Array,PP=Hm?Hm.allocUnsafe:r,Wm=MP(Lr.getPrototypeOf,Lr),EP=Lr.create,RP=Wf.propertyIsEnumerable,Ym=Vm.splice,kP=gl?gl.isConcatSpreadable:r,Zd=gl?gl.iterator:r,Nu=gl?gl.toStringTag:r,Xm=function(){try{var g=Gu(Lr,"defineProperty");return g({},"",{}),g}catch{}}(),MX=Te.clearTimeout!==Bn.clearTimeout&&Te.clearTimeout,IX=je&&je.now!==Bn.Date.now&&je.now,LX=Te.setTimeout!==Bn.setTimeout&&Te.setTimeout,Zm=Sn.ceil,qm=Sn.floor,Kb=Lr.getOwnPropertySymbols,PX=Hm?Hm.isBuffer:r,OP=Te.isFinite,EX=Vm.join,RX=MP(Lr.keys,Lr),bn=Sn.max,Zn=Sn.min,kX=je.now,OX=Te.parseInt,NP=Sn.random,NX=Vm.reverse,Jb=Gu(Te,"DataView"),qd=Gu(Te,"Map"),Qb=Gu(Te,"Promise"),Yf=Gu(Te,"Set"),jd=Gu(Te,"WeakMap"),Kd=Gu(Lr,"create"),jm=jd&&new jd,Xf={},FX=$u(Jb),BX=$u(qd),VX=$u(Qb),zX=$u(Yf),GX=$u(jd),Km=gl?gl.prototype:r,Jd=Km?Km.valueOf:r,FP=Km?Km.toString:r;function V(g){if(Jr(g)&&!Rt(g)&&!(g instanceof Jt)){if(g instanceof _a)return g;if(wr.call(g,"__wrapped__"))return BE(g)}return new _a(g)}var Zf=function(){function g(){}return function(_){if(!Xr(_))return{};if(EP)return EP(_);g.prototype=_;var T=new g;return g.prototype=r,T}}();function Jm(){}function _a(g,_){this.__wrapped__=g,this.__actions__=[],this.__chain__=!!_,this.__index__=0,this.__values__=r}V.templateSettings={escape:vn,evaluate:hl,interpolate:Tm,variable:"",imports:{_:V}},V.prototype=Jm.prototype,V.prototype.constructor=V,_a.prototype=Zf(Jm.prototype),_a.prototype.constructor=_a;function Jt(g){this.__wrapped__=g,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function $X(){var g=new Jt(this.__wrapped__);return g.__actions__=Li(this.__actions__),g.__dir__=this.__dir__,g.__filtered__=this.__filtered__,g.__iteratees__=Li(this.__iteratees__),g.__takeCount__=this.__takeCount__,g.__views__=Li(this.__views__),g}function HX(){if(this.__filtered__){var g=new Jt(this);g.__dir__=-1,g.__filtered__=!0}else g=this.clone(),g.__dir__*=-1;return g}function UX(){var g=this.__wrapped__.value(),_=this.__dir__,T=Rt(g),L=_<0,k=T?g.length:0,G=rq(0,k,this.__views__),Z=G.start,K=G.end,le=K-Z,De=L?K:Z-1,Me=this.__iteratees__,Le=Me.length,We=0,nt=Zn(le,this.__takeCount__);if(!T||!L&&k==le&&nt==le)return sE(g,this.__actions__);var gt=[];e:for(;le--&&We<nt;){De+=_;for(var Gt=-1,mt=g[De];++Gt<Le;){var jt=Me[Gt],rr=jt.iteratee,ji=jt.type,li=rr(mt);if(ji==F)mt=li;else if(!li){if(ji==O)continue e;break e}}gt[We++]=mt}return gt}Jt.prototype=Zf(Jm.prototype),Jt.prototype.constructor=Jt;function Fu(g){var _=-1,T=g==null?0:g.length;for(this.clear();++_<T;){var L=g[_];this.set(L[0],L[1])}}function WX(){this.__data__=Kd?Kd(null):{},this.size=0}function YX(g){var _=this.has(g)&&delete this.__data__[g];return this.size-=_?1:0,_}function XX(g){var _=this.__data__;if(Kd){var T=_[g];return T===l?r:T}return wr.call(_,g)?_[g]:r}function ZX(g){var _=this.__data__;return Kd?_[g]!==r:wr.call(_,g)}function qX(g,_){var T=this.__data__;return this.size+=this.has(g)?0:1,T[g]=Kd&&_===r?l:_,this}Fu.prototype.clear=WX,Fu.prototype.delete=YX,Fu.prototype.get=XX,Fu.prototype.has=ZX,Fu.prototype.set=qX;function ds(g){var _=-1,T=g==null?0:g.length;for(this.clear();++_<T;){var L=g[_];this.set(L[0],L[1])}}function jX(){this.__data__=[],this.size=0}function KX(g){var _=this.__data__,T=Qm(_,g);if(T<0)return!1;var L=_.length-1;return T==L?_.pop():Ym.call(_,T,1),--this.size,!0}function JX(g){var _=this.__data__,T=Qm(_,g);return T<0?r:_[T][1]}function QX(g){return Qm(this.__data__,g)>-1}function eZ(g,_){var T=this.__data__,L=Qm(T,g);return L<0?(++this.size,T.push([g,_])):T[L][1]=_,this}ds.prototype.clear=jX,ds.prototype.delete=KX,ds.prototype.get=JX,ds.prototype.has=QX,ds.prototype.set=eZ;function vs(g){var _=-1,T=g==null?0:g.length;for(this.clear();++_<T;){var L=g[_];this.set(L[0],L[1])}}function tZ(){this.size=0,this.__data__={hash:new Fu,map:new(qd||ds),string:new Fu}}function rZ(g){var _=fy(this,g).delete(g);return this.size-=_?1:0,_}function nZ(g){return fy(this,g).get(g)}function iZ(g){return fy(this,g).has(g)}function aZ(g,_){var T=fy(this,g),L=T.size;return T.set(g,_),this.size+=T.size==L?0:1,this}vs.prototype.clear=tZ,vs.prototype.delete=rZ,vs.prototype.get=nZ,vs.prototype.has=iZ,vs.prototype.set=aZ;function Bu(g){var _=-1,T=g==null?0:g.length;for(this.__data__=new vs;++_<T;)this.add(g[_])}function oZ(g){return this.__data__.set(g,l),this}function sZ(g){return this.__data__.has(g)}Bu.prototype.add=Bu.prototype.push=oZ,Bu.prototype.has=sZ;function Ka(g){var _=this.__data__=new ds(g);this.size=_.size}function lZ(){this.__data__=new ds,this.size=0}function uZ(g){var _=this.__data__,T=_.delete(g);return this.size=_.size,T}function cZ(g){return this.__data__.get(g)}function fZ(g){return this.__data__.has(g)}function hZ(g,_){var T=this.__data__;if(T instanceof ds){var L=T.__data__;if(!qd||L.length<i-1)return L.push([g,_]),this.size=++T.size,this;T=this.__data__=new vs(L)}return T.set(g,_),this.size=T.size,this}Ka.prototype.clear=lZ,Ka.prototype.delete=uZ,Ka.prototype.get=cZ,Ka.prototype.has=fZ,Ka.prototype.set=hZ;function BP(g,_){var T=Rt(g),L=!T&&Hu(g),k=!T&&!L&&bl(g),G=!T&&!L&&!k&&Jf(g),Z=T||L||k||G,K=Z?Xb(g.length,wX):[],le=K.length;for(var De in g)(_||wr.call(g,De))&&!(Z&&(De=="length"||k&&(De=="offset"||De=="parent")||G&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||ys(De,le)))&&K.push(De);return K}function VP(g){var _=g.length;return _?g[cw(0,_-1)]:r}function dZ(g,_){return hy(Li(g),Vu(_,0,g.length))}function vZ(g){return hy(Li(g))}function ew(g,_,T){(T!==r&&!Ja(g[_],T)||T===r&&!(_ in g))&&ps(g,_,T)}function Qd(g,_,T){var L=g[_];(!(wr.call(g,_)&&Ja(L,T))||T===r&&!(_ in g))&&ps(g,_,T)}function Qm(g,_){for(var T=g.length;T--;)if(Ja(g[T][0],_))return T;return-1}function pZ(g,_,T,L){return ml(g,function(k,G,Z){_(L,k,T(k),Z)}),L}function zP(g,_){return g&&Mo(_,En(_),g)}function gZ(g,_){return g&&Mo(_,Ei(_),g)}function ps(g,_,T){_=="__proto__"&&Xm?Xm(g,_,{configurable:!0,enumerable:!0,value:T,writable:!0}):g[_]=T}function tw(g,_){for(var T=-1,L=_.length,k=ge(L),G=g==null;++T<L;)k[T]=G?r:Ow(g,_[T]);return k}function Vu(g,_,T){return g===g&&(T!==r&&(g=g<=T?g:T),_!==r&&(g=g>=_?g:_)),g}function Sa(g,_,T,L,k,G){var Z,K=_&f,le=_&h,De=_&d;if(T&&(Z=k?T(g,L,k,G):T(g)),Z!==r)return Z;if(!Xr(g))return g;var Me=Rt(g);if(Me){if(Z=iq(g),!K)return Li(g,Z)}else{var Le=qn(g),We=Le==ke||Le==H;if(bl(g))return cE(g,K);if(Le==fe||Le==Oe||We&&!k){if(Z=le||We?{}:IE(g),!K)return le?XZ(g,gZ(Z,g)):YZ(g,zP(Z,g))}else{if(!Nr[Le])return k?g:{};Z=aq(g,Le,K)}}G||(G=new Ka);var nt=G.get(g);if(nt)return nt;G.set(g,Z),iR(g)?g.forEach(function(mt){Z.add(Sa(mt,_,T,mt,g,G))}):rR(g)&&g.forEach(function(mt,jt){Z.set(jt,Sa(mt,_,T,jt,g,G))});var gt=De?le?bw:Sw:le?Ei:En,Gt=Me?r:gt(g);return ma(Gt||g,function(mt,jt){Gt&&(jt=mt,mt=g[jt]),Qd(Z,jt,Sa(mt,_,T,jt,g,G))}),Z}function mZ(g){var _=En(g);return function(T){return GP(T,g,_)}}function GP(g,_,T){var L=T.length;if(g==null)return!L;for(g=Lr(g);L--;){var k=T[L],G=_[k],Z=g[k];if(Z===r&&!(k in g)||!G(Z))return!1}return!0}function $P(g,_,T){if(typeof g!="function")throw new ya(o);return ov(function(){g.apply(r,T)},_)}function ev(g,_,T,L){var k=-1,G=Nm,Z=!0,K=g.length,le=[],De=_.length;if(!K)return le;T&&(_=Hr(_,Xi(T))),L?(G=Gb,Z=!1):_.length>=i&&(G=Xd,Z=!1,_=new Bu(_));e:for(;++k<K;){var Me=g[k],Le=T==null?Me:T(Me);if(Me=L||Me!==0?Me:0,Z&&Le===Le){for(var We=De;We--;)if(_[We]===Le)continue e;le.push(Me)}else G(_,Le,L)||le.push(Me)}return le}var ml=pE(Do),HP=pE(nw,!0);function yZ(g,_){var T=!0;return ml(g,function(L,k,G){return T=!!_(L,k,G),T}),T}function ey(g,_,T){for(var L=-1,k=g.length;++L<k;){var G=g[L],Z=_(G);if(Z!=null&&(K===r?Z===Z&&!qi(Z):T(Z,K)))var K=Z,le=G}return le}function _Z(g,_,T,L){var k=g.length;for(T=Bt(T),T<0&&(T=-T>k?0:k+T),L=L===r||L>k?k:Bt(L),L<0&&(L+=k),L=T>L?0:oR(L);T<L;)g[T++]=_;return g}function UP(g,_){var T=[];return ml(g,function(L,k,G){_(L,k,G)&&T.push(L)}),T}function Vn(g,_,T,L,k){var G=-1,Z=g.length;for(T||(T=sq),k||(k=[]);++G<Z;){var K=g[G];_>0&&T(K)?_>1?Vn(K,_-1,T,L,k):vl(k,K):L||(k[k.length]=K)}return k}var rw=gE(),WP=gE(!0);function Do(g,_){return g&&rw(g,_,En)}function nw(g,_){return g&&WP(g,_,En)}function ty(g,_){return dl(_,function(T){return _s(g[T])})}function zu(g,_){_=_l(_,g);for(var T=0,L=_.length;g!=null&&T<L;)g=g[Io(_[T++])];return T&&T==L?g:r}function YP(g,_,T){var L=_(g);return Rt(g)?L:vl(L,T(g))}function oi(g){return g==null?g===r?J:_e:Nu&&Nu in Lr(g)?tq(g):vq(g)}function iw(g,_){return g>_}function SZ(g,_){return g!=null&&wr.call(g,_)}function bZ(g,_){return g!=null&&_ in Lr(g)}function wZ(g,_,T){return g>=Zn(_,T)&&g<bn(_,T)}function aw(g,_,T){for(var L=T?Gb:Nm,k=g[0].length,G=g.length,Z=G,K=ge(G),le=1/0,De=[];Z--;){var Me=g[Z];Z&&_&&(Me=Hr(Me,Xi(_))),le=Zn(Me.length,le),K[Z]=!T&&(_||k>=120&&Me.length>=120)?new Bu(Z&&Me):r}Me=g[0];var Le=-1,We=K[0];e:for(;++Le<k&&De.length<le;){var nt=Me[Le],gt=_?_(nt):nt;if(nt=T||nt!==0?nt:0,!(We?Xd(We,gt):L(De,gt,T))){for(Z=G;--Z;){var Gt=K[Z];if(!(Gt?Xd(Gt,gt):L(g[Z],gt,T)))continue e}We&&We.push(gt),De.push(nt)}}return De}function xZ(g,_,T,L){return Do(g,function(k,G,Z){_(L,T(k),G,Z)}),L}function tv(g,_,T){_=_l(_,g),g=RE(g,_);var L=g==null?g:g[Io(wa(_))];return L==null?r:Yi(L,g,T)}function XP(g){return Jr(g)&&oi(g)==Oe}function CZ(g){return Jr(g)&&oi(g)==Qe}function TZ(g){return Jr(g)&&oi(g)==pe}function rv(g,_,T,L,k){return g===_?!0:g==null||_==null||!Jr(g)&&!Jr(_)?g!==g&&_!==_:AZ(g,_,T,L,rv,k)}function AZ(g,_,T,L,k,G){var Z=Rt(g),K=Rt(_),le=Z?Ue:qn(g),De=K?Ue:qn(_);le=le==Oe?fe:le,De=De==Oe?fe:De;var Me=le==fe,Le=De==fe,We=le==De;if(We&&bl(g)){if(!bl(_))return!1;Z=!0,Me=!1}if(We&&!Me)return G||(G=new Ka),Z||Jf(g)?AE(g,_,T,L,k,G):QZ(g,_,le,T,L,k,G);if(!(T&v)){var nt=Me&&wr.call(g,"__wrapped__"),gt=Le&&wr.call(_,"__wrapped__");if(nt||gt){var Gt=nt?g.value():g,mt=gt?_.value():_;return G||(G=new Ka),k(Gt,mt,T,L,G)}}return We?(G||(G=new Ka),eq(g,_,T,L,k,G)):!1}function DZ(g){return Jr(g)&&qn(g)==U}function ow(g,_,T,L){var k=T.length,G=k,Z=!L;if(g==null)return!G;for(g=Lr(g);k--;){var K=T[k];if(Z&&K[2]?K[1]!==g[K[0]]:!(K[0]in g))return!1}for(;++k<G;){K=T[k];var le=K[0],De=g[le],Me=K[1];if(Z&&K[2]){if(De===r&&!(le in g))return!1}else{var Le=new Ka;if(L)var We=L(De,Me,le,g,_,Le);if(!(We===r?rv(Me,De,v|p,L,Le):We))return!1}}return!0}function ZP(g){if(!Xr(g)||uq(g))return!1;var _=_s(g)?DX:lt;return _.test($u(g))}function MZ(g){return Jr(g)&&oi(g)==re}function IZ(g){return Jr(g)&&qn(g)==ue}function LZ(g){return Jr(g)&&yy(g.length)&&!!zr[oi(g)]}function qP(g){return typeof g=="function"?g:g==null?Ri:typeof g=="object"?Rt(g)?JP(g[0],g[1]):KP(g):mR(g)}function sw(g){if(!av(g))return RX(g);var _=[];for(var T in Lr(g))wr.call(g,T)&&T!="constructor"&&_.push(T);return _}function PZ(g){if(!Xr(g))return dq(g);var _=av(g),T=[];for(var L in g)L=="constructor"&&(_||!wr.call(g,L))||T.push(L);return T}function lw(g,_){return g<_}function jP(g,_){var T=-1,L=Pi(g)?ge(g.length):[];return ml(g,function(k,G,Z){L[++T]=_(k,G,Z)}),L}function KP(g){var _=xw(g);return _.length==1&&_[0][2]?PE(_[0][0],_[0][1]):function(T){return T===g||ow(T,g,_)}}function JP(g,_){return Tw(g)&&LE(_)?PE(Io(g),_):function(T){var L=Ow(T,g);return L===r&&L===_?Nw(T,g):rv(_,L,v|p)}}function ry(g,_,T,L,k){g!==_&&rw(_,function(G,Z){if(k||(k=new Ka),Xr(G))EZ(g,_,Z,T,ry,L,k);else{var K=L?L(Dw(g,Z),G,Z+"",g,_,k):r;K===r&&(K=G),ew(g,Z,K)}},Ei)}function EZ(g,_,T,L,k,G,Z){var K=Dw(g,T),le=Dw(_,T),De=Z.get(le);if(De){ew(g,T,De);return}var Me=G?G(K,le,T+"",g,_,Z):r,Le=Me===r;if(Le){var We=Rt(le),nt=!We&&bl(le),gt=!We&&!nt&&Jf(le);Me=le,We||nt||gt?Rt(K)?Me=K:on(K)?Me=Li(K):nt?(Le=!1,Me=cE(le,!0)):gt?(Le=!1,Me=fE(le,!0)):Me=[]:sv(le)||Hu(le)?(Me=K,Hu(K)?Me=sR(K):(!Xr(K)||_s(K))&&(Me=IE(le))):Le=!1}Le&&(Z.set(le,Me),k(Me,le,L,G,Z),Z.delete(le)),ew(g,T,Me)}function QP(g,_){var T=g.length;if(T)return _+=_<0?T:0,ys(_,T)?g[_]:r}function eE(g,_,T){_.length?_=Hr(_,function(G){return Rt(G)?function(Z){return zu(Z,G.length===1?G[0]:G)}:G}):_=[Ri];var L=-1;_=Hr(_,Xi(dt()));var k=jP(g,function(G,Z,K){var le=Hr(_,function(De){return De(G)});return{criteria:le,index:++L,value:G}});return aX(k,function(G,Z){return WZ(G,Z,T)})}function RZ(g,_){return tE(g,_,function(T,L){return Nw(g,L)})}function tE(g,_,T){for(var L=-1,k=_.length,G={};++L<k;){var Z=_[L],K=zu(g,Z);T(K,Z)&&nv(G,_l(Z,g),K)}return G}function kZ(g){return function(_){return zu(_,g)}}function uw(g,_,T,L){var k=L?iX:Gf,G=-1,Z=_.length,K=g;for(g===_&&(_=Li(_)),T&&(K=Hr(g,Xi(T)));++G<Z;)for(var le=0,De=_[G],Me=T?T(De):De;(le=k(K,Me,le,L))>-1;)K!==g&&Ym.call(K,le,1),Ym.call(g,le,1);return g}function rE(g,_){for(var T=g?_.length:0,L=T-1;T--;){var k=_[T];if(T==L||k!==G){var G=k;ys(k)?Ym.call(g,k,1):dw(g,k)}}return g}function cw(g,_){return g+qm(NP()*(_-g+1))}function OZ(g,_,T,L){for(var k=-1,G=bn(Zm((_-g)/(T||1)),0),Z=ge(G);G--;)Z[L?G:++k]=g,g+=T;return Z}function fw(g,_){var T="";if(!g||_<1||_>z)return T;do _%2&&(T+=g),_=qm(_/2),_&&(g+=g);while(_);return T}function Ht(g,_){return Mw(EE(g,_,Ri),g+"")}function NZ(g){return VP(Qf(g))}function FZ(g,_){var T=Qf(g);return hy(T,Vu(_,0,T.length))}function nv(g,_,T,L){if(!Xr(g))return g;_=_l(_,g);for(var k=-1,G=_.length,Z=G-1,K=g;K!=null&&++k<G;){var le=Io(_[k]),De=T;if(le==="__proto__"||le==="constructor"||le==="prototype")return g;if(k!=Z){var Me=K[le];De=L?L(Me,le,K):r,De===r&&(De=Xr(Me)?Me:ys(_[k+1])?[]:{})}Qd(K,le,De),K=K[le]}return g}var nE=jm?function(g,_){return jm.set(g,_),g}:Ri,BZ=Xm?function(g,_){return Xm(g,"toString",{configurable:!0,enumerable:!1,value:Bw(_),writable:!0})}:Ri;function VZ(g){return hy(Qf(g))}function ba(g,_,T){var L=-1,k=g.length;_<0&&(_=-_>k?0:k+_),T=T>k?k:T,T<0&&(T+=k),k=_>T?0:T-_>>>0,_>>>=0;for(var G=ge(k);++L<k;)G[L]=g[L+_];return G}function zZ(g,_){var T;return ml(g,function(L,k,G){return T=_(L,k,G),!T}),!!T}function ny(g,_,T){var L=0,k=g==null?L:g.length;if(typeof _=="number"&&_===_&&k<=Ae){for(;L<k;){var G=L+k>>>1,Z=g[G];Z!==null&&!qi(Z)&&(T?Z<=_:Z<_)?L=G+1:k=G}return k}return hw(g,_,Ri,T)}function hw(g,_,T,L){var k=0,G=g==null?0:g.length;if(G===0)return 0;_=T(_);for(var Z=_!==_,K=_===null,le=qi(_),De=_===r;k<G;){var Me=qm((k+G)/2),Le=T(g[Me]),We=Le!==r,nt=Le===null,gt=Le===Le,Gt=qi(Le);if(Z)var mt=L||gt;else De?mt=gt&&(L||We):K?mt=gt&&We&&(L||!nt):le?mt=gt&&We&&!nt&&(L||!Gt):nt||Gt?mt=!1:mt=L?Le<=_:Le<_;mt?k=Me+1:G=Me}return Zn(G,me)}function iE(g,_){for(var T=-1,L=g.length,k=0,G=[];++T<L;){var Z=g[T],K=_?_(Z):Z;if(!T||!Ja(K,le)){var le=K;G[k++]=Z===0?0:Z}}return G}function aE(g){return typeof g=="number"?g:qi(g)?ee:+g}function Zi(g){if(typeof g=="string")return g;if(Rt(g))return Hr(g,Zi)+"";if(qi(g))return FP?FP.call(g):"";var _=g+"";return _=="0"&&1/g==-W?"-0":_}function yl(g,_,T){var L=-1,k=Nm,G=g.length,Z=!0,K=[],le=K;if(T)Z=!1,k=Gb;else if(G>=i){var De=_?null:KZ(g);if(De)return Bm(De);Z=!1,k=Xd,le=new Bu}else le=_?[]:K;e:for(;++L<G;){var Me=g[L],Le=_?_(Me):Me;if(Me=T||Me!==0?Me:0,Z&&Le===Le){for(var We=le.length;We--;)if(le[We]===Le)continue e;_&&le.push(Le),K.push(Me)}else k(le,Le,T)||(le!==K&&le.push(Le),K.push(Me))}return K}function dw(g,_){return _=_l(_,g),g=RE(g,_),g==null||delete g[Io(wa(_))]}function oE(g,_,T,L){return nv(g,_,T(zu(g,_)),L)}function iy(g,_,T,L){for(var k=g.length,G=L?k:-1;(L?G--:++G<k)&&_(g[G],G,g););return T?ba(g,L?0:G,L?G+1:k):ba(g,L?G+1:0,L?k:G)}function sE(g,_){var T=g;return T instanceof Jt&&(T=T.value()),$b(_,function(L,k){return k.func.apply(k.thisArg,vl([L],k.args))},T)}function vw(g,_,T){var L=g.length;if(L<2)return L?yl(g[0]):[];for(var k=-1,G=ge(L);++k<L;)for(var Z=g[k],K=-1;++K<L;)K!=k&&(G[k]=ev(G[k]||Z,g[K],_,T));return yl(Vn(G,1),_,T)}function lE(g,_,T){for(var L=-1,k=g.length,G=_.length,Z={};++L<k;){var K=L<G?_[L]:r;T(Z,g[L],K)}return Z}function pw(g){return on(g)?g:[]}function gw(g){return typeof g=="function"?g:Ri}function _l(g,_){return Rt(g)?g:Tw(g,_)?[g]:FE(gr(g))}var GZ=Ht;function Sl(g,_,T){var L=g.length;return T=T===r?L:T,!_&&T>=L?g:ba(g,_,T)}var uE=MX||function(g){return Bn.clearTimeout(g)};function cE(g,_){if(_)return g.slice();var T=g.length,L=PP?PP(T):new g.constructor(T);return g.copy(L),L}function mw(g){var _=new g.constructor(g.byteLength);return new Um(_).set(new Um(g)),_}function $Z(g,_){var T=_?mw(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.byteLength)}function HZ(g){var _=new g.constructor(g.source,Ud.exec(g));return _.lastIndex=g.lastIndex,_}function UZ(g){return Jd?Lr(Jd.call(g)):{}}function fE(g,_){var T=_?mw(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.length)}function hE(g,_){if(g!==_){var T=g!==r,L=g===null,k=g===g,G=qi(g),Z=_!==r,K=_===null,le=_===_,De=qi(_);if(!K&&!De&&!G&&g>_||G&&Z&&le&&!K&&!De||L&&Z&&le||!T&&le||!k)return 1;if(!L&&!G&&!De&&g<_||De&&T&&k&&!L&&!G||K&&T&&k||!Z&&k||!le)return-1}return 0}function WZ(g,_,T){for(var L=-1,k=g.criteria,G=_.criteria,Z=k.length,K=T.length;++L<Z;){var le=hE(k[L],G[L]);if(le){if(L>=K)return le;var De=T[L];return le*(De=="desc"?-1:1)}}return g.index-_.index}function dE(g,_,T,L){for(var k=-1,G=g.length,Z=T.length,K=-1,le=_.length,De=bn(G-Z,0),Me=ge(le+De),Le=!L;++K<le;)Me[K]=_[K];for(;++k<Z;)(Le||k<G)&&(Me[T[k]]=g[k]);for(;De--;)Me[K++]=g[k++];return Me}function vE(g,_,T,L){for(var k=-1,G=g.length,Z=-1,K=T.length,le=-1,De=_.length,Me=bn(G-K,0),Le=ge(Me+De),We=!L;++k<Me;)Le[k]=g[k];for(var nt=k;++le<De;)Le[nt+le]=_[le];for(;++Z<K;)(We||k<G)&&(Le[nt+T[Z]]=g[k++]);return Le}function Li(g,_){var T=-1,L=g.length;for(_||(_=ge(L));++T<L;)_[T]=g[T];return _}function Mo(g,_,T,L){var k=!T;T||(T={});for(var G=-1,Z=_.length;++G<Z;){var K=_[G],le=L?L(T[K],g[K],K,T,g):r;le===r&&(le=g[K]),k?ps(T,K,le):Qd(T,K,le)}return T}function YZ(g,_){return Mo(g,Cw(g),_)}function XZ(g,_){return Mo(g,DE(g),_)}function ay(g,_){return function(T,L){var k=Rt(T)?JY:pZ,G=_?_():{};return k(T,g,dt(L,2),G)}}function qf(g){return Ht(function(_,T){var L=-1,k=T.length,G=k>1?T[k-1]:r,Z=k>2?T[2]:r;for(G=g.length>3&&typeof G=="function"?(k--,G):r,Z&&si(T[0],T[1],Z)&&(G=k<3?r:G,k=1),_=Lr(_);++L<k;){var K=T[L];K&&g(_,K,L,G)}return _})}function pE(g,_){return function(T,L){if(T==null)return T;if(!Pi(T))return g(T,L);for(var k=T.length,G=_?k:-1,Z=Lr(T);(_?G--:++G<k)&&L(Z[G],G,Z)!==!1;);return T}}function gE(g){return function(_,T,L){for(var k=-1,G=Lr(_),Z=L(_),K=Z.length;K--;){var le=Z[g?K:++k];if(T(G[le],le,G)===!1)break}return _}}function ZZ(g,_,T){var L=_&m,k=iv(g);function G(){var Z=this&&this!==Bn&&this instanceof G?k:g;return Z.apply(L?T:this,arguments)}return G}function mE(g){return function(_){_=gr(_);var T=$f(_)?ja(_):r,L=T?T[0]:_.charAt(0),k=T?Sl(T,1).join(""):_.slice(1);return L[g]()+k}}function jf(g){return function(_){return $b(pR(vR(_).replace(BY,"")),g,"")}}function iv(g){return function(){var _=arguments;switch(_.length){case 0:return new g;case 1:return new g(_[0]);case 2:return new g(_[0],_[1]);case 3:return new g(_[0],_[1],_[2]);case 4:return new g(_[0],_[1],_[2],_[3]);case 5:return new g(_[0],_[1],_[2],_[3],_[4]);case 6:return new g(_[0],_[1],_[2],_[3],_[4],_[5]);case 7:return new g(_[0],_[1],_[2],_[3],_[4],_[5],_[6])}var T=Zf(g.prototype),L=g.apply(T,_);return Xr(L)?L:T}}function qZ(g,_,T){var L=iv(g);function k(){for(var G=arguments.length,Z=ge(G),K=G,le=Kf(k);K--;)Z[K]=arguments[K];var De=G<3&&Z[0]!==le&&Z[G-1]!==le?[]:pl(Z,le);if(G-=De.length,G<T)return wE(g,_,oy,k.placeholder,r,Z,De,r,r,T-G);var Me=this&&this!==Bn&&this instanceof k?L:g;return Yi(Me,this,Z)}return k}function yE(g){return function(_,T,L){var k=Lr(_);if(!Pi(_)){var G=dt(T,3);_=En(_),T=function(K){return G(k[K],K,k)}}var Z=g(_,T,L);return Z>-1?k[G?_[Z]:Z]:r}}function _E(g){return ms(function(_){var T=_.length,L=T,k=_a.prototype.thru;for(g&&_.reverse();L--;){var G=_[L];if(typeof G!="function")throw new ya(o);if(k&&!Z&&cy(G)=="wrapper")var Z=new _a([],!0)}for(L=Z?L:T;++L<T;){G=_[L];var K=cy(G),le=K=="wrapper"?ww(G):r;le&&Aw(le[0])&&le[1]==(A|b|C|D)&&!le[4].length&&le[9]==1?Z=Z[cy(le[0])].apply(Z,le[3]):Z=G.length==1&&Aw(G)?Z[K]():Z.thru(G)}return function(){var De=arguments,Me=De[0];if(Z&&De.length==1&&Rt(Me))return Z.plant(Me).value();for(var Le=0,We=T?_[Le].apply(this,De):Me;++Le<T;)We=_[Le].call(this,We);return We}})}function oy(g,_,T,L,k,G,Z,K,le,De){var Me=_&A,Le=_&m,We=_&y,nt=_&(b|w),gt=_&M,Gt=We?r:iv(g);function mt(){for(var jt=arguments.length,rr=ge(jt),ji=jt;ji--;)rr[ji]=arguments[ji];if(nt)var li=Kf(mt),Ki=sX(rr,li);if(L&&(rr=dE(rr,L,k,nt)),G&&(rr=vE(rr,G,Z,nt)),jt-=Ki,nt&&jt<De){var sn=pl(rr,li);return wE(g,_,oy,mt.placeholder,T,rr,sn,K,le,De-jt)}var Qa=Le?T:this,bs=We?Qa[g]:g;return jt=rr.length,K?rr=pq(rr,K):gt&&jt>1&&rr.reverse(),Me&&le<jt&&(rr.length=le),this&&this!==Bn&&this instanceof mt&&(bs=Gt||iv(bs)),bs.apply(Qa,rr)}return mt}function SE(g,_){return function(T,L){return xZ(T,g,_(L),{})}}function sy(g,_){return function(T,L){var k;if(T===r&&L===r)return _;if(T!==r&&(k=T),L!==r){if(k===r)return L;typeof T=="string"||typeof L=="string"?(T=Zi(T),L=Zi(L)):(T=aE(T),L=aE(L)),k=g(T,L)}return k}}function yw(g){return ms(function(_){return _=Hr(_,Xi(dt())),Ht(function(T){var L=this;return g(_,function(k){return Yi(k,L,T)})})})}function ly(g,_){_=_===r?" ":Zi(_);var T=_.length;if(T<2)return T?fw(_,g):_;var L=fw(_,Zm(g/Hf(_)));return $f(_)?Sl(ja(L),0,g).join(""):L.slice(0,g)}function jZ(g,_,T,L){var k=_&m,G=iv(g);function Z(){for(var K=-1,le=arguments.length,De=-1,Me=L.length,Le=ge(Me+le),We=this&&this!==Bn&&this instanceof Z?G:g;++De<Me;)Le[De]=L[De];for(;le--;)Le[De++]=arguments[++K];return Yi(We,k?T:this,Le)}return Z}function bE(g){return function(_,T,L){return L&&typeof L!="number"&&si(_,T,L)&&(T=L=r),_=Ss(_),T===r?(T=_,_=0):T=Ss(T),L=L===r?_<T?1:-1:Ss(L),OZ(_,T,L,g)}}function uy(g){return function(_,T){return typeof _=="string"&&typeof T=="string"||(_=xa(_),T=xa(T)),g(_,T)}}function wE(g,_,T,L,k,G,Z,K,le,De){var Me=_&b,Le=Me?Z:r,We=Me?r:Z,nt=Me?G:r,gt=Me?r:G;_|=Me?C:x,_&=~(Me?x:C),_&S||(_&=~(m|y));var Gt=[g,_,k,nt,Le,gt,We,K,le,De],mt=T.apply(r,Gt);return Aw(g)&&kE(mt,Gt),mt.placeholder=L,OE(mt,g,_)}function _w(g){var _=Sn[g];return function(T,L){if(T=xa(T),L=L==null?0:Zn(Bt(L),292),L&&OP(T)){var k=(gr(T)+"e").split("e"),G=_(k[0]+"e"+(+k[1]+L));return k=(gr(G)+"e").split("e"),+(k[0]+"e"+(+k[1]-L))}return _(T)}}var KZ=Yf&&1/Bm(new Yf([,-0]))[1]==W?function(g){return new Yf(g)}:Gw;function xE(g){return function(_){var T=qn(_);return T==U?qb(_):T==ue?vX(_):oX(_,g(_))}}function gs(g,_,T,L,k,G,Z,K){var le=_&y;if(!le&&typeof g!="function")throw new ya(o);var De=L?L.length:0;if(De||(_&=~(C|x),L=k=r),Z=Z===r?Z:bn(Bt(Z),0),K=K===r?K:Bt(K),De-=k?k.length:0,_&x){var Me=L,Le=k;L=k=r}var We=le?r:ww(g),nt=[g,_,T,L,k,Me,Le,G,Z,K];if(We&&hq(nt,We),g=nt[0],_=nt[1],T=nt[2],L=nt[3],k=nt[4],K=nt[9]=nt[9]===r?le?0:g.length:bn(nt[9]-De,0),!K&&_&(b|w)&&(_&=~(b|w)),!_||_==m)var gt=ZZ(g,_,T);else _==b||_==w?gt=qZ(g,_,K):(_==C||_==(m|C))&&!k.length?gt=jZ(g,_,T,L):gt=oy.apply(r,nt);var Gt=We?nE:kE;return OE(Gt(gt,nt),g,_)}function CE(g,_,T,L){return g===r||Ja(g,Wf[T])&&!wr.call(L,T)?_:g}function TE(g,_,T,L,k,G){return Xr(g)&&Xr(_)&&(G.set(_,g),ry(g,_,r,TE,G),G.delete(_)),g}function JZ(g){return sv(g)?r:g}function AE(g,_,T,L,k,G){var Z=T&v,K=g.length,le=_.length;if(K!=le&&!(Z&&le>K))return!1;var De=G.get(g),Me=G.get(_);if(De&&Me)return De==_&&Me==g;var Le=-1,We=!0,nt=T&p?new Bu:r;for(G.set(g,_),G.set(_,g);++Le<K;){var gt=g[Le],Gt=_[Le];if(L)var mt=Z?L(Gt,gt,Le,_,g,G):L(gt,Gt,Le,g,_,G);if(mt!==r){if(mt)continue;We=!1;break}if(nt){if(!Hb(_,function(jt,rr){if(!Xd(nt,rr)&&(gt===jt||k(gt,jt,T,L,G)))return nt.push(rr)})){We=!1;break}}else if(!(gt===Gt||k(gt,Gt,T,L,G))){We=!1;break}}return G.delete(g),G.delete(_),We}function QZ(g,_,T,L,k,G,Z){switch(T){case It:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case Qe:return!(g.byteLength!=_.byteLength||!G(new Um(g),new Um(_)));case he:case pe:case ie:return Ja(+g,+_);case xe:return g.name==_.name&&g.message==_.message;case re:case Ce:return g==_+"";case U:var K=qb;case ue:var le=L&v;if(K||(K=Bm),g.size!=_.size&&!le)return!1;var De=Z.get(g);if(De)return De==_;L|=p,Z.set(g,_);var Me=AE(K(g),K(_),L,k,G,Z);return Z.delete(g),Me;case Re:if(Jd)return Jd.call(g)==Jd.call(_)}return!1}function eq(g,_,T,L,k,G){var Z=T&v,K=Sw(g),le=K.length,De=Sw(_),Me=De.length;if(le!=Me&&!Z)return!1;for(var Le=le;Le--;){var We=K[Le];if(!(Z?We in _:wr.call(_,We)))return!1}var nt=G.get(g),gt=G.get(_);if(nt&>)return nt==_&>==g;var Gt=!0;G.set(g,_),G.set(_,g);for(var mt=Z;++Le<le;){We=K[Le];var jt=g[We],rr=_[We];if(L)var ji=Z?L(rr,jt,We,_,g,G):L(jt,rr,We,g,_,G);if(!(ji===r?jt===rr||k(jt,rr,T,L,G):ji)){Gt=!1;break}mt||(mt=We=="constructor")}if(Gt&&!mt){var li=g.constructor,Ki=_.constructor;li!=Ki&&"constructor"in g&&"constructor"in _&&!(typeof li=="function"&&li instanceof li&&typeof Ki=="function"&&Ki instanceof Ki)&&(Gt=!1)}return G.delete(g),G.delete(_),Gt}function ms(g){return Mw(EE(g,r,GE),g+"")}function Sw(g){return YP(g,En,Cw)}function bw(g){return YP(g,Ei,DE)}var ww=jm?function(g){return jm.get(g)}:Gw;function cy(g){for(var _=g.name+"",T=Xf[_],L=wr.call(Xf,_)?T.length:0;L--;){var k=T[L],G=k.func;if(G==null||G==g)return k.name}return _}function Kf(g){var _=wr.call(V,"placeholder")?V:g;return _.placeholder}function dt(){var g=V.iteratee||Vw;return g=g===Vw?qP:g,arguments.length?g(arguments[0],arguments[1]):g}function fy(g,_){var T=g.__data__;return lq(_)?T[typeof _=="string"?"string":"hash"]:T.map}function xw(g){for(var _=En(g),T=_.length;T--;){var L=_[T],k=g[L];_[T]=[L,k,LE(k)]}return _}function Gu(g,_){var T=fX(g,_);return ZP(T)?T:r}function tq(g){var _=wr.call(g,Nu),T=g[Nu];try{g[Nu]=r;var L=!0}catch{}var k=$m.call(g);return L&&(_?g[Nu]=T:delete g[Nu]),k}var Cw=Kb?function(g){return g==null?[]:(g=Lr(g),dl(Kb(g),function(_){return RP.call(g,_)}))}:$w,DE=Kb?function(g){for(var _=[];g;)vl(_,Cw(g)),g=Wm(g);return _}:$w,qn=oi;(Jb&&qn(new Jb(new ArrayBuffer(1)))!=It||qd&&qn(new qd)!=U||Qb&&qn(Qb.resolve())!=$||Yf&&qn(new Yf)!=ue||jd&&qn(new jd)!=ce)&&(qn=function(g){var _=oi(g),T=_==fe?g.constructor:r,L=T?$u(T):"";if(L)switch(L){case FX:return It;case BX:return U;case VX:return $;case zX:return ue;case GX:return ce}return _});function rq(g,_,T){for(var L=-1,k=T.length;++L<k;){var G=T[L],Z=G.size;switch(G.type){case"drop":g+=Z;break;case"dropRight":_-=Z;break;case"take":_=Zn(_,g+Z);break;case"takeRight":g=bn(g,_-Z);break}}return{start:g,end:_}}function nq(g){var _=g.match(Im);return _?_[1].split(Lm):[]}function ME(g,_,T){_=_l(_,g);for(var L=-1,k=_.length,G=!1;++L<k;){var Z=Io(_[L]);if(!(G=g!=null&&T(g,Z)))break;g=g[Z]}return G||++L!=k?G:(k=g==null?0:g.length,!!k&&yy(k)&&ys(Z,k)&&(Rt(g)||Hu(g)))}function iq(g){var _=g.length,T=new g.constructor(_);return _&&typeof g[0]=="string"&&wr.call(g,"index")&&(T.index=g.index,T.input=g.input),T}function IE(g){return typeof g.constructor=="function"&&!av(g)?Zf(Wm(g)):{}}function aq(g,_,T){var L=g.constructor;switch(_){case Qe:return mw(g);case he:case pe:return new L(+g);case It:return $Z(g,T);case Ft:case Mr:case Vr:case nn:case jr:case _n:case Wi:case an:case In:return fE(g,T);case U:return new L;case ie:case Ce:return new L(g);case re:return HZ(g);case ue:return new L;case Re:return UZ(g)}}function oq(g,_){var T=_.length;if(!T)return g;var L=T-1;return _[L]=(T>1?"& ":"")+_[L],_=_.join(T>2?", ":" "),g.replace(Mm,`{
|
||
/* [wrapped with `+_+`] */
|
||
`)}function sq(g){return Rt(g)||Hu(g)||!!(kP&&g&&g[kP])}function ys(g,_){var T=typeof g;return _=_??z,!!_&&(T=="number"||T!="symbol"&&Be.test(g))&&g>-1&&g%1==0&&g<_}function si(g,_,T){if(!Xr(T))return!1;var L=typeof _;return(L=="number"?Pi(T)&&ys(_,T.length):L=="string"&&_ in T)?Ja(T[_],g):!1}function Tw(g,_){if(Rt(g))return!1;var T=typeof g;return T=="number"||T=="symbol"||T=="boolean"||g==null||qi(g)?!0:Hd.test(g)||!Am.test(g)||_!=null&&g in Lr(_)}function lq(g){var _=typeof g;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?g!=="__proto__":g===null}function Aw(g){var _=cy(g),T=V[_];if(typeof T!="function"||!(_ in Jt.prototype))return!1;if(g===T)return!0;var L=ww(T);return!!L&&g===L[0]}function uq(g){return!!LP&&LP in g}var cq=zm?_s:Hw;function av(g){var _=g&&g.constructor,T=typeof _=="function"&&_.prototype||Wf;return g===T}function LE(g){return g===g&&!Xr(g)}function PE(g,_){return function(T){return T==null?!1:T[g]===_&&(_!==r||g in Lr(T))}}function fq(g){var _=gy(g,function(L){return T.size===u&&T.clear(),L}),T=_.cache;return _}function hq(g,_){var T=g[1],L=_[1],k=T|L,G=k<(m|y|A),Z=L==A&&T==b||L==A&&T==D&&g[7].length<=_[8]||L==(A|D)&&_[7].length<=_[8]&&T==b;if(!(G||Z))return g;L&m&&(g[2]=_[2],k|=T&m?0:S);var K=_[3];if(K){var le=g[3];g[3]=le?dE(le,K,_[4]):K,g[4]=le?pl(g[3],c):_[4]}return K=_[5],K&&(le=g[5],g[5]=le?vE(le,K,_[6]):K,g[6]=le?pl(g[5],c):_[6]),K=_[7],K&&(g[7]=K),L&A&&(g[8]=g[8]==null?_[8]:Zn(g[8],_[8])),g[9]==null&&(g[9]=_[9]),g[0]=_[0],g[1]=k,g}function dq(g){var _=[];if(g!=null)for(var T in Lr(g))_.push(T);return _}function vq(g){return $m.call(g)}function EE(g,_,T){return _=bn(_===r?g.length-1:_,0),function(){for(var L=arguments,k=-1,G=bn(L.length-_,0),Z=ge(G);++k<G;)Z[k]=L[_+k];k=-1;for(var K=ge(_+1);++k<_;)K[k]=L[k];return K[_]=T(Z),Yi(g,this,K)}}function RE(g,_){return _.length<2?g:zu(g,ba(_,0,-1))}function pq(g,_){for(var T=g.length,L=Zn(_.length,T),k=Li(g);L--;){var G=_[L];g[L]=ys(G,T)?k[G]:r}return g}function Dw(g,_){if(!(_==="constructor"&&typeof g[_]=="function")&&_!="__proto__")return g[_]}var kE=NE(nE),ov=LX||function(g,_){return Bn.setTimeout(g,_)},Mw=NE(BZ);function OE(g,_,T){var L=_+"";return Mw(g,oq(L,gq(nq(L),T)))}function NE(g){var _=0,T=0;return function(){var L=kX(),k=N-(L-T);if(T=L,k>0){if(++_>=R)return arguments[0]}else _=0;return g.apply(r,arguments)}}function hy(g,_){var T=-1,L=g.length,k=L-1;for(_=_===r?L:_;++T<_;){var G=cw(T,k),Z=g[G];g[G]=g[T],g[T]=Z}return g.length=_,g}var FE=fq(function(g){var _=[];return g.charCodeAt(0)===46&&_.push(""),g.replace(Dm,function(T,L,k,G){_.push(k?G.replace(Em,"$1"):L||T)}),_});function Io(g){if(typeof g=="string"||qi(g))return g;var _=g+"";return _=="0"&&1/g==-W?"-0":_}function $u(g){if(g!=null){try{return Gm.call(g)}catch{}try{return g+""}catch{}}return""}function gq(g,_){return ma(Pe,function(T){var L="_."+T[0];_&T[1]&&!Nm(g,L)&&g.push(L)}),g.sort()}function BE(g){if(g instanceof Jt)return g.clone();var _=new _a(g.__wrapped__,g.__chain__);return _.__actions__=Li(g.__actions__),_.__index__=g.__index__,_.__values__=g.__values__,_}function mq(g,_,T){(T?si(g,_,T):_===r)?_=1:_=bn(Bt(_),0);var L=g==null?0:g.length;if(!L||_<1)return[];for(var k=0,G=0,Z=ge(Zm(L/_));k<L;)Z[G++]=ba(g,k,k+=_);return Z}function yq(g){for(var _=-1,T=g==null?0:g.length,L=0,k=[];++_<T;){var G=g[_];G&&(k[L++]=G)}return k}function _q(){var g=arguments.length;if(!g)return[];for(var _=ge(g-1),T=arguments[0],L=g;L--;)_[L-1]=arguments[L];return vl(Rt(T)?Li(T):[T],Vn(_,1))}var Sq=Ht(function(g,_){return on(g)?ev(g,Vn(_,1,on,!0)):[]}),bq=Ht(function(g,_){var T=wa(_);return on(T)&&(T=r),on(g)?ev(g,Vn(_,1,on,!0),dt(T,2)):[]}),wq=Ht(function(g,_){var T=wa(_);return on(T)&&(T=r),on(g)?ev(g,Vn(_,1,on,!0),r,T):[]});function xq(g,_,T){var L=g==null?0:g.length;return L?(_=T||_===r?1:Bt(_),ba(g,_<0?0:_,L)):[]}function Cq(g,_,T){var L=g==null?0:g.length;return L?(_=T||_===r?1:Bt(_),_=L-_,ba(g,0,_<0?0:_)):[]}function Tq(g,_){return g&&g.length?iy(g,dt(_,3),!0,!0):[]}function Aq(g,_){return g&&g.length?iy(g,dt(_,3),!0):[]}function Dq(g,_,T,L){var k=g==null?0:g.length;return k?(T&&typeof T!="number"&&si(g,_,T)&&(T=0,L=k),_Z(g,_,T,L)):[]}function VE(g,_,T){var L=g==null?0:g.length;if(!L)return-1;var k=T==null?0:Bt(T);return k<0&&(k=bn(L+k,0)),Fm(g,dt(_,3),k)}function zE(g,_,T){var L=g==null?0:g.length;if(!L)return-1;var k=L-1;return T!==r&&(k=Bt(T),k=T<0?bn(L+k,0):Zn(k,L-1)),Fm(g,dt(_,3),k,!0)}function GE(g){var _=g==null?0:g.length;return _?Vn(g,1):[]}function Mq(g){var _=g==null?0:g.length;return _?Vn(g,W):[]}function Iq(g,_){var T=g==null?0:g.length;return T?(_=_===r?1:Bt(_),Vn(g,_)):[]}function Lq(g){for(var _=-1,T=g==null?0:g.length,L={};++_<T;){var k=g[_];L[k[0]]=k[1]}return L}function $E(g){return g&&g.length?g[0]:r}function Pq(g,_,T){var L=g==null?0:g.length;if(!L)return-1;var k=T==null?0:Bt(T);return k<0&&(k=bn(L+k,0)),Gf(g,_,k)}function Eq(g){var _=g==null?0:g.length;return _?ba(g,0,-1):[]}var Rq=Ht(function(g){var _=Hr(g,pw);return _.length&&_[0]===g[0]?aw(_):[]}),kq=Ht(function(g){var _=wa(g),T=Hr(g,pw);return _===wa(T)?_=r:T.pop(),T.length&&T[0]===g[0]?aw(T,dt(_,2)):[]}),Oq=Ht(function(g){var _=wa(g),T=Hr(g,pw);return _=typeof _=="function"?_:r,_&&T.pop(),T.length&&T[0]===g[0]?aw(T,r,_):[]});function Nq(g,_){return g==null?"":EX.call(g,_)}function wa(g){var _=g==null?0:g.length;return _?g[_-1]:r}function Fq(g,_,T){var L=g==null?0:g.length;if(!L)return-1;var k=L;return T!==r&&(k=Bt(T),k=k<0?bn(L+k,0):Zn(k,L-1)),_===_?gX(g,_,k):Fm(g,wP,k,!0)}function Bq(g,_){return g&&g.length?QP(g,Bt(_)):r}var Vq=Ht(HE);function HE(g,_){return g&&g.length&&_&&_.length?uw(g,_):g}function zq(g,_,T){return g&&g.length&&_&&_.length?uw(g,_,dt(T,2)):g}function Gq(g,_,T){return g&&g.length&&_&&_.length?uw(g,_,r,T):g}var $q=ms(function(g,_){var T=g==null?0:g.length,L=tw(g,_);return rE(g,Hr(_,function(k){return ys(k,T)?+k:k}).sort(hE)),L});function Hq(g,_){var T=[];if(!(g&&g.length))return T;var L=-1,k=[],G=g.length;for(_=dt(_,3);++L<G;){var Z=g[L];_(Z,L,g)&&(T.push(Z),k.push(L))}return rE(g,k),T}function Iw(g){return g==null?g:NX.call(g)}function Uq(g,_,T){var L=g==null?0:g.length;return L?(T&&typeof T!="number"&&si(g,_,T)?(_=0,T=L):(_=_==null?0:Bt(_),T=T===r?L:Bt(T)),ba(g,_,T)):[]}function Wq(g,_){return ny(g,_)}function Yq(g,_,T){return hw(g,_,dt(T,2))}function Xq(g,_){var T=g==null?0:g.length;if(T){var L=ny(g,_);if(L<T&&Ja(g[L],_))return L}return-1}function Zq(g,_){return ny(g,_,!0)}function qq(g,_,T){return hw(g,_,dt(T,2),!0)}function jq(g,_){var T=g==null?0:g.length;if(T){var L=ny(g,_,!0)-1;if(Ja(g[L],_))return L}return-1}function Kq(g){return g&&g.length?iE(g):[]}function Jq(g,_){return g&&g.length?iE(g,dt(_,2)):[]}function Qq(g){var _=g==null?0:g.length;return _?ba(g,1,_):[]}function ej(g,_,T){return g&&g.length?(_=T||_===r?1:Bt(_),ba(g,0,_<0?0:_)):[]}function tj(g,_,T){var L=g==null?0:g.length;return L?(_=T||_===r?1:Bt(_),_=L-_,ba(g,_<0?0:_,L)):[]}function rj(g,_){return g&&g.length?iy(g,dt(_,3),!1,!0):[]}function nj(g,_){return g&&g.length?iy(g,dt(_,3)):[]}var ij=Ht(function(g){return yl(Vn(g,1,on,!0))}),aj=Ht(function(g){var _=wa(g);return on(_)&&(_=r),yl(Vn(g,1,on,!0),dt(_,2))}),oj=Ht(function(g){var _=wa(g);return _=typeof _=="function"?_:r,yl(Vn(g,1,on,!0),r,_)});function sj(g){return g&&g.length?yl(g):[]}function lj(g,_){return g&&g.length?yl(g,dt(_,2)):[]}function uj(g,_){return _=typeof _=="function"?_:r,g&&g.length?yl(g,r,_):[]}function Lw(g){if(!(g&&g.length))return[];var _=0;return g=dl(g,function(T){if(on(T))return _=bn(T.length,_),!0}),Xb(_,function(T){return Hr(g,Ub(T))})}function UE(g,_){if(!(g&&g.length))return[];var T=Lw(g);return _==null?T:Hr(T,function(L){return Yi(_,r,L)})}var cj=Ht(function(g,_){return on(g)?ev(g,_):[]}),fj=Ht(function(g){return vw(dl(g,on))}),hj=Ht(function(g){var _=wa(g);return on(_)&&(_=r),vw(dl(g,on),dt(_,2))}),dj=Ht(function(g){var _=wa(g);return _=typeof _=="function"?_:r,vw(dl(g,on),r,_)}),vj=Ht(Lw);function pj(g,_){return lE(g||[],_||[],Qd)}function gj(g,_){return lE(g||[],_||[],nv)}var mj=Ht(function(g){var _=g.length,T=_>1?g[_-1]:r;return T=typeof T=="function"?(g.pop(),T):r,UE(g,T)});function WE(g){var _=V(g);return _.__chain__=!0,_}function yj(g,_){return _(g),g}function dy(g,_){return _(g)}var _j=ms(function(g){var _=g.length,T=_?g[0]:0,L=this.__wrapped__,k=function(G){return tw(G,g)};return _>1||this.__actions__.length||!(L instanceof Jt)||!ys(T)?this.thru(k):(L=L.slice(T,+T+(_?1:0)),L.__actions__.push({func:dy,args:[k],thisArg:r}),new _a(L,this.__chain__).thru(function(G){return _&&!G.length&&G.push(r),G}))});function Sj(){return WE(this)}function bj(){return new _a(this.value(),this.__chain__)}function wj(){this.__values__===r&&(this.__values__=aR(this.value()));var g=this.__index__>=this.__values__.length,_=g?r:this.__values__[this.__index__++];return{done:g,value:_}}function xj(){return this}function Cj(g){for(var _,T=this;T instanceof Jm;){var L=BE(T);L.__index__=0,L.__values__=r,_?k.__wrapped__=L:_=L;var k=L;T=T.__wrapped__}return k.__wrapped__=g,_}function Tj(){var g=this.__wrapped__;if(g instanceof Jt){var _=g;return this.__actions__.length&&(_=new Jt(this)),_=_.reverse(),_.__actions__.push({func:dy,args:[Iw],thisArg:r}),new _a(_,this.__chain__)}return this.thru(Iw)}function Aj(){return sE(this.__wrapped__,this.__actions__)}var Dj=ay(function(g,_,T){wr.call(g,T)?++g[T]:ps(g,T,1)});function Mj(g,_,T){var L=Rt(g)?SP:yZ;return T&&si(g,_,T)&&(_=r),L(g,dt(_,3))}function Ij(g,_){var T=Rt(g)?dl:UP;return T(g,dt(_,3))}var Lj=yE(VE),Pj=yE(zE);function Ej(g,_){return Vn(vy(g,_),1)}function Rj(g,_){return Vn(vy(g,_),W)}function kj(g,_,T){return T=T===r?1:Bt(T),Vn(vy(g,_),T)}function YE(g,_){var T=Rt(g)?ma:ml;return T(g,dt(_,3))}function XE(g,_){var T=Rt(g)?QY:HP;return T(g,dt(_,3))}var Oj=ay(function(g,_,T){wr.call(g,T)?g[T].push(_):ps(g,T,[_])});function Nj(g,_,T,L){g=Pi(g)?g:Qf(g),T=T&&!L?Bt(T):0;var k=g.length;return T<0&&(T=bn(k+T,0)),_y(g)?T<=k&&g.indexOf(_,T)>-1:!!k&&Gf(g,_,T)>-1}var Fj=Ht(function(g,_,T){var L=-1,k=typeof _=="function",G=Pi(g)?ge(g.length):[];return ml(g,function(Z){G[++L]=k?Yi(_,Z,T):tv(Z,_,T)}),G}),Bj=ay(function(g,_,T){ps(g,T,_)});function vy(g,_){var T=Rt(g)?Hr:jP;return T(g,dt(_,3))}function Vj(g,_,T,L){return g==null?[]:(Rt(_)||(_=_==null?[]:[_]),T=L?r:T,Rt(T)||(T=T==null?[]:[T]),eE(g,_,T))}var zj=ay(function(g,_,T){g[T?0:1].push(_)},function(){return[[],[]]});function Gj(g,_,T){var L=Rt(g)?$b:CP,k=arguments.length<3;return L(g,dt(_,4),T,k,ml)}function $j(g,_,T){var L=Rt(g)?eX:CP,k=arguments.length<3;return L(g,dt(_,4),T,k,HP)}function Hj(g,_){var T=Rt(g)?dl:UP;return T(g,my(dt(_,3)))}function Uj(g){var _=Rt(g)?VP:NZ;return _(g)}function Wj(g,_,T){(T?si(g,_,T):_===r)?_=1:_=Bt(_);var L=Rt(g)?dZ:FZ;return L(g,_)}function Yj(g){var _=Rt(g)?vZ:VZ;return _(g)}function Xj(g){if(g==null)return 0;if(Pi(g))return _y(g)?Hf(g):g.length;var _=qn(g);return _==U||_==ue?g.size:sw(g).length}function Zj(g,_,T){var L=Rt(g)?Hb:zZ;return T&&si(g,_,T)&&(_=r),L(g,dt(_,3))}var qj=Ht(function(g,_){if(g==null)return[];var T=_.length;return T>1&&si(g,_[0],_[1])?_=[]:T>2&&si(_[0],_[1],_[2])&&(_=[_[0]]),eE(g,Vn(_,1),[])}),py=IX||function(){return Bn.Date.now()};function jj(g,_){if(typeof _!="function")throw new ya(o);return g=Bt(g),function(){if(--g<1)return _.apply(this,arguments)}}function ZE(g,_,T){return _=T?r:_,_=g&&_==null?g.length:_,gs(g,A,r,r,r,r,_)}function qE(g,_){var T;if(typeof _!="function")throw new ya(o);return g=Bt(g),function(){return--g>0&&(T=_.apply(this,arguments)),g<=1&&(_=r),T}}var Pw=Ht(function(g,_,T){var L=m;if(T.length){var k=pl(T,Kf(Pw));L|=C}return gs(g,L,_,T,k)}),jE=Ht(function(g,_,T){var L=m|y;if(T.length){var k=pl(T,Kf(jE));L|=C}return gs(_,L,g,T,k)});function KE(g,_,T){_=T?r:_;var L=gs(g,b,r,r,r,r,r,_);return L.placeholder=KE.placeholder,L}function JE(g,_,T){_=T?r:_;var L=gs(g,w,r,r,r,r,r,_);return L.placeholder=JE.placeholder,L}function QE(g,_,T){var L,k,G,Z,K,le,De=0,Me=!1,Le=!1,We=!0;if(typeof g!="function")throw new ya(o);_=xa(_)||0,Xr(T)&&(Me=!!T.leading,Le="maxWait"in T,G=Le?bn(xa(T.maxWait)||0,_):G,We="trailing"in T?!!T.trailing:We);function nt(sn){var Qa=L,bs=k;return L=k=r,De=sn,Z=g.apply(bs,Qa),Z}function gt(sn){return De=sn,K=ov(jt,_),Me?nt(sn):Z}function Gt(sn){var Qa=sn-le,bs=sn-De,yR=_-Qa;return Le?Zn(yR,G-bs):yR}function mt(sn){var Qa=sn-le,bs=sn-De;return le===r||Qa>=_||Qa<0||Le&&bs>=G}function jt(){var sn=py();if(mt(sn))return rr(sn);K=ov(jt,Gt(sn))}function rr(sn){return K=r,We&&L?nt(sn):(L=k=r,Z)}function ji(){K!==r&&uE(K),De=0,L=le=k=K=r}function li(){return K===r?Z:rr(py())}function Ki(){var sn=py(),Qa=mt(sn);if(L=arguments,k=this,le=sn,Qa){if(K===r)return gt(le);if(Le)return uE(K),K=ov(jt,_),nt(le)}return K===r&&(K=ov(jt,_)),Z}return Ki.cancel=ji,Ki.flush=li,Ki}var Kj=Ht(function(g,_){return $P(g,1,_)}),Jj=Ht(function(g,_,T){return $P(g,xa(_)||0,T)});function Qj(g){return gs(g,M)}function gy(g,_){if(typeof g!="function"||_!=null&&typeof _!="function")throw new ya(o);var T=function(){var L=arguments,k=_?_.apply(this,L):L[0],G=T.cache;if(G.has(k))return G.get(k);var Z=g.apply(this,L);return T.cache=G.set(k,Z)||G,Z};return T.cache=new(gy.Cache||vs),T}gy.Cache=vs;function my(g){if(typeof g!="function")throw new ya(o);return function(){var _=arguments;switch(_.length){case 0:return!g.call(this);case 1:return!g.call(this,_[0]);case 2:return!g.call(this,_[0],_[1]);case 3:return!g.call(this,_[0],_[1],_[2])}return!g.apply(this,_)}}function eK(g){return qE(2,g)}var tK=GZ(function(g,_){_=_.length==1&&Rt(_[0])?Hr(_[0],Xi(dt())):Hr(Vn(_,1),Xi(dt()));var T=_.length;return Ht(function(L){for(var k=-1,G=Zn(L.length,T);++k<G;)L[k]=_[k].call(this,L[k]);return Yi(g,this,L)})}),Ew=Ht(function(g,_){var T=pl(_,Kf(Ew));return gs(g,C,r,_,T)}),eR=Ht(function(g,_){var T=pl(_,Kf(eR));return gs(g,x,r,_,T)}),rK=ms(function(g,_){return gs(g,D,r,r,r,_)});function nK(g,_){if(typeof g!="function")throw new ya(o);return _=_===r?_:Bt(_),Ht(g,_)}function iK(g,_){if(typeof g!="function")throw new ya(o);return _=_==null?0:bn(Bt(_),0),Ht(function(T){var L=T[_],k=Sl(T,0,_);return L&&vl(k,L),Yi(g,this,k)})}function aK(g,_,T){var L=!0,k=!0;if(typeof g!="function")throw new ya(o);return Xr(T)&&(L="leading"in T?!!T.leading:L,k="trailing"in T?!!T.trailing:k),QE(g,_,{leading:L,maxWait:_,trailing:k})}function oK(g){return ZE(g,1)}function sK(g,_){return Ew(gw(_),g)}function lK(){if(!arguments.length)return[];var g=arguments[0];return Rt(g)?g:[g]}function uK(g){return Sa(g,d)}function cK(g,_){return _=typeof _=="function"?_:r,Sa(g,d,_)}function fK(g){return Sa(g,f|d)}function hK(g,_){return _=typeof _=="function"?_:r,Sa(g,f|d,_)}function dK(g,_){return _==null||GP(g,_,En(_))}function Ja(g,_){return g===_||g!==g&&_!==_}var vK=uy(iw),pK=uy(function(g,_){return g>=_}),Hu=XP(function(){return arguments}())?XP:function(g){return Jr(g)&&wr.call(g,"callee")&&!RP.call(g,"callee")},Rt=ge.isArray,gK=vP?Xi(vP):CZ;function Pi(g){return g!=null&&yy(g.length)&&!_s(g)}function on(g){return Jr(g)&&Pi(g)}function mK(g){return g===!0||g===!1||Jr(g)&&oi(g)==he}var bl=PX||Hw,yK=pP?Xi(pP):TZ;function _K(g){return Jr(g)&&g.nodeType===1&&!sv(g)}function SK(g){if(g==null)return!0;if(Pi(g)&&(Rt(g)||typeof g=="string"||typeof g.splice=="function"||bl(g)||Jf(g)||Hu(g)))return!g.length;var _=qn(g);if(_==U||_==ue)return!g.size;if(av(g))return!sw(g).length;for(var T in g)if(wr.call(g,T))return!1;return!0}function bK(g,_){return rv(g,_)}function wK(g,_,T){T=typeof T=="function"?T:r;var L=T?T(g,_):r;return L===r?rv(g,_,r,T):!!L}function Rw(g){if(!Jr(g))return!1;var _=oi(g);return _==xe||_==ye||typeof g.message=="string"&&typeof g.name=="string"&&!sv(g)}function xK(g){return typeof g=="number"&&OP(g)}function _s(g){if(!Xr(g))return!1;var _=oi(g);return _==ke||_==H||_==se||_==Y}function tR(g){return typeof g=="number"&&g==Bt(g)}function yy(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=z}function Xr(g){var _=typeof g;return g!=null&&(_=="object"||_=="function")}function Jr(g){return g!=null&&typeof g=="object"}var rR=gP?Xi(gP):DZ;function CK(g,_){return g===_||ow(g,_,xw(_))}function TK(g,_,T){return T=typeof T=="function"?T:r,ow(g,_,xw(_),T)}function AK(g){return nR(g)&&g!=+g}function DK(g){if(cq(g))throw new Lt(a);return ZP(g)}function MK(g){return g===null}function IK(g){return g==null}function nR(g){return typeof g=="number"||Jr(g)&&oi(g)==ie}function sv(g){if(!Jr(g)||oi(g)!=fe)return!1;var _=Wm(g);if(_===null)return!0;var T=wr.call(_,"constructor")&&_.constructor;return typeof T=="function"&&T instanceof T&&Gm.call(T)==TX}var kw=mP?Xi(mP):MZ;function LK(g){return tR(g)&&g>=-z&&g<=z}var iR=yP?Xi(yP):IZ;function _y(g){return typeof g=="string"||!Rt(g)&&Jr(g)&&oi(g)==Ce}function qi(g){return typeof g=="symbol"||Jr(g)&&oi(g)==Re}var Jf=_P?Xi(_P):LZ;function PK(g){return g===r}function EK(g){return Jr(g)&&qn(g)==ce}function RK(g){return Jr(g)&&oi(g)==Ge}var kK=uy(lw),OK=uy(function(g,_){return g<=_});function aR(g){if(!g)return[];if(Pi(g))return _y(g)?ja(g):Li(g);if(Zd&&g[Zd])return dX(g[Zd]());var _=qn(g),T=_==U?qb:_==ue?Bm:Qf;return T(g)}function Ss(g){if(!g)return g===0?g:0;if(g=xa(g),g===W||g===-W){var _=g<0?-1:1;return _*j}return g===g?g:0}function Bt(g){var _=Ss(g),T=_%1;return _===_?T?_-T:_:0}function oR(g){return g?Vu(Bt(g),0,te):0}function xa(g){if(typeof g=="number")return g;if(qi(g))return ee;if(Xr(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=Xr(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=TP(g);var T=Rb.test(g);return T||ne.test(g)?jY(g.slice(2),T?2:8):km.test(g)?ee:+g}function sR(g){return Mo(g,Ei(g))}function NK(g){return g?Vu(Bt(g),-z,z):g===0?g:0}function gr(g){return g==null?"":Zi(g)}var FK=qf(function(g,_){if(av(_)||Pi(_)){Mo(_,En(_),g);return}for(var T in _)wr.call(_,T)&&Qd(g,T,_[T])}),lR=qf(function(g,_){Mo(_,Ei(_),g)}),Sy=qf(function(g,_,T,L){Mo(_,Ei(_),g,L)}),BK=qf(function(g,_,T,L){Mo(_,En(_),g,L)}),VK=ms(tw);function zK(g,_){var T=Zf(g);return _==null?T:zP(T,_)}var GK=Ht(function(g,_){g=Lr(g);var T=-1,L=_.length,k=L>2?_[2]:r;for(k&&si(_[0],_[1],k)&&(L=1);++T<L;)for(var G=_[T],Z=Ei(G),K=-1,le=Z.length;++K<le;){var De=Z[K],Me=g[De];(Me===r||Ja(Me,Wf[De])&&!wr.call(g,De))&&(g[De]=G[De])}return g}),$K=Ht(function(g){return g.push(r,TE),Yi(uR,r,g)});function HK(g,_){return bP(g,dt(_,3),Do)}function UK(g,_){return bP(g,dt(_,3),nw)}function WK(g,_){return g==null?g:rw(g,dt(_,3),Ei)}function YK(g,_){return g==null?g:WP(g,dt(_,3),Ei)}function XK(g,_){return g&&Do(g,dt(_,3))}function ZK(g,_){return g&&nw(g,dt(_,3))}function qK(g){return g==null?[]:ty(g,En(g))}function jK(g){return g==null?[]:ty(g,Ei(g))}function Ow(g,_,T){var L=g==null?r:zu(g,_);return L===r?T:L}function KK(g,_){return g!=null&&ME(g,_,SZ)}function Nw(g,_){return g!=null&&ME(g,_,bZ)}var JK=SE(function(g,_,T){_!=null&&typeof _.toString!="function"&&(_=$m.call(_)),g[_]=T},Bw(Ri)),QK=SE(function(g,_,T){_!=null&&typeof _.toString!="function"&&(_=$m.call(_)),wr.call(g,_)?g[_].push(T):g[_]=[T]},dt),eJ=Ht(tv);function En(g){return Pi(g)?BP(g):sw(g)}function Ei(g){return Pi(g)?BP(g,!0):PZ(g)}function tJ(g,_){var T={};return _=dt(_,3),Do(g,function(L,k,G){ps(T,_(L,k,G),L)}),T}function rJ(g,_){var T={};return _=dt(_,3),Do(g,function(L,k,G){ps(T,k,_(L,k,G))}),T}var nJ=qf(function(g,_,T){ry(g,_,T)}),uR=qf(function(g,_,T,L){ry(g,_,T,L)}),iJ=ms(function(g,_){var T={};if(g==null)return T;var L=!1;_=Hr(_,function(G){return G=_l(G,g),L||(L=G.length>1),G}),Mo(g,bw(g),T),L&&(T=Sa(T,f|h|d,JZ));for(var k=_.length;k--;)dw(T,_[k]);return T});function aJ(g,_){return cR(g,my(dt(_)))}var oJ=ms(function(g,_){return g==null?{}:RZ(g,_)});function cR(g,_){if(g==null)return{};var T=Hr(bw(g),function(L){return[L]});return _=dt(_),tE(g,T,function(L,k){return _(L,k[0])})}function sJ(g,_,T){_=_l(_,g);var L=-1,k=_.length;for(k||(k=1,g=r);++L<k;){var G=g==null?r:g[Io(_[L])];G===r&&(L=k,G=T),g=_s(G)?G.call(g):G}return g}function lJ(g,_,T){return g==null?g:nv(g,_,T)}function uJ(g,_,T,L){return L=typeof L=="function"?L:r,g==null?g:nv(g,_,T,L)}var fR=xE(En),hR=xE(Ei);function cJ(g,_,T){var L=Rt(g),k=L||bl(g)||Jf(g);if(_=dt(_,4),T==null){var G=g&&g.constructor;k?T=L?new G:[]:Xr(g)?T=_s(G)?Zf(Wm(g)):{}:T={}}return(k?ma:Do)(g,function(Z,K,le){return _(T,Z,K,le)}),T}function fJ(g,_){return g==null?!0:dw(g,_)}function hJ(g,_,T){return g==null?g:oE(g,_,gw(T))}function dJ(g,_,T,L){return L=typeof L=="function"?L:r,g==null?g:oE(g,_,gw(T),L)}function Qf(g){return g==null?[]:Zb(g,En(g))}function vJ(g){return g==null?[]:Zb(g,Ei(g))}function pJ(g,_,T){return T===r&&(T=_,_=r),T!==r&&(T=xa(T),T=T===T?T:0),_!==r&&(_=xa(_),_=_===_?_:0),Vu(xa(g),_,T)}function gJ(g,_,T){return _=Ss(_),T===r?(T=_,_=0):T=Ss(T),g=xa(g),wZ(g,_,T)}function mJ(g,_,T){if(T&&typeof T!="boolean"&&si(g,_,T)&&(_=T=r),T===r&&(typeof _=="boolean"?(T=_,_=r):typeof g=="boolean"&&(T=g,g=r)),g===r&&_===r?(g=0,_=1):(g=Ss(g),_===r?(_=g,g=0):_=Ss(_)),g>_){var L=g;g=_,_=L}if(T||g%1||_%1){var k=NP();return Zn(g+k*(_-g+qY("1e-"+((k+"").length-1))),_)}return cw(g,_)}var yJ=jf(function(g,_,T){return _=_.toLowerCase(),g+(T?dR(_):_)});function dR(g){return Fw(gr(g).toLowerCase())}function vR(g){return g=gr(g),g&&g.replace(tt,lX).replace(VY,"")}function _J(g,_,T){g=gr(g),_=Zi(_);var L=g.length;T=T===r?L:Vu(Bt(T),0,L);var k=T;return T-=_.length,T>=0&&g.slice(T,k)==_}function SJ(g){return g=gr(g),g&&Pb.test(g)?g.replace(fl,uX):g}function bJ(g){return g=gr(g),g&&Eb.test(g)?g.replace(Bf,"\\$&"):g}var wJ=jf(function(g,_,T){return g+(T?"-":"")+_.toLowerCase()}),xJ=jf(function(g,_,T){return g+(T?" ":"")+_.toLowerCase()}),CJ=mE("toLowerCase");function TJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;if(!_||L>=_)return g;var k=(_-L)/2;return ly(qm(k),T)+g+ly(Zm(k),T)}function AJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;return _&&L<_?g+ly(_-L,T):g}function DJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;return _&&L<_?ly(_-L,T)+g:g}function MJ(g,_,T){return T||_==null?_=0:_&&(_=+_),OX(gr(g).replace(Ii,""),_||0)}function IJ(g,_,T){return(T?si(g,_,T):_===r)?_=1:_=Bt(_),fw(gr(g),_)}function LJ(){var g=arguments,_=gr(g[0]);return g.length<3?_:_.replace(g[1],g[2])}var PJ=jf(function(g,_,T){return g+(T?"_":"")+_.toLowerCase()});function EJ(g,_,T){return T&&typeof T!="number"&&si(g,_,T)&&(_=T=r),T=T===r?te:T>>>0,T?(g=gr(g),g&&(typeof _=="string"||_!=null&&!kw(_))&&(_=Zi(_),!_&&$f(g))?Sl(ja(g),0,T):g.split(_,T)):[]}var RJ=jf(function(g,_,T){return g+(T?" ":"")+Fw(_)});function kJ(g,_,T){return g=gr(g),T=T==null?0:Vu(Bt(T),0,g.length),_=Zi(_),g.slice(T,T+_.length)==_}function OJ(g,_,T){var L=V.templateSettings;T&&si(g,_,T)&&(_=r),g=gr(g),_=Sy({},_,L,CE);var k=Sy({},_.imports,L.imports,CE),G=En(k),Z=Zb(k,G),K,le,De=0,Me=_.interpolate||br,Le="__p += '",We=jb((_.escape||br).source+"|"+Me.source+"|"+(Me===Tm?Rm:br).source+"|"+(_.evaluate||br).source+"|$","g"),nt="//# sourceURL="+(wr.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UY+"]")+`
|
||
`;g.replace(We,function(mt,jt,rr,ji,li,Ki){return rr||(rr=ji),Le+=g.slice(De,Ki).replace(Ln,cX),jt&&(K=!0,Le+=`' +
|
||
__e(`+jt+`) +
|
||
'`),li&&(le=!0,Le+=`';
|
||
`+li+`;
|
||
__p += '`),rr&&(Le+=`' +
|
||
((__t = (`+rr+`)) == null ? '' : __t) +
|
||
'`),De=Ki+mt.length,mt}),Le+=`';
|
||
`;var gt=wr.call(_,"variable")&&_.variable;if(!gt)Le=`with (obj) {
|
||
`+Le+`
|
||
}
|
||
`;else if(qa.test(gt))throw new Lt(s);Le=(le?Le.replace(Of,""):Le).replace(Nf,"$1").replace(Ff,"$1;"),Le="function("+(gt||"obj")+`) {
|
||
`+(gt?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(le?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+Le+`return __p
|
||
}`;var Gt=gR(function(){return fr(G,nt+"return "+Le).apply(r,Z)});if(Gt.source=Le,Rw(Gt))throw Gt;return Gt}function NJ(g){return gr(g).toLowerCase()}function FJ(g){return gr(g).toUpperCase()}function BJ(g,_,T){if(g=gr(g),g&&(T||_===r))return TP(g);if(!g||!(_=Zi(_)))return g;var L=ja(g),k=ja(_),G=AP(L,k),Z=DP(L,k)+1;return Sl(L,G,Z).join("")}function VJ(g,_,T){if(g=gr(g),g&&(T||_===r))return g.slice(0,IP(g)+1);if(!g||!(_=Zi(_)))return g;var L=ja(g),k=DP(L,ja(_))+1;return Sl(L,0,k).join("")}function zJ(g,_,T){if(g=gr(g),g&&(T||_===r))return g.replace(Ii,"");if(!g||!(_=Zi(_)))return g;var L=ja(g),k=AP(L,ja(_));return Sl(L,k).join("")}function GJ(g,_){var T=I,L=P;if(Xr(_)){var k="separator"in _?_.separator:k;T="length"in _?Bt(_.length):T,L="omission"in _?Zi(_.omission):L}g=gr(g);var G=g.length;if($f(g)){var Z=ja(g);G=Z.length}if(T>=G)return g;var K=T-Hf(L);if(K<1)return L;var le=Z?Sl(Z,0,K).join(""):g.slice(0,K);if(k===r)return le+L;if(Z&&(K+=le.length-K),kw(k)){if(g.slice(K).search(k)){var De,Me=le;for(k.global||(k=jb(k.source,gr(Ud.exec(k))+"g")),k.lastIndex=0;De=k.exec(Me);)var Le=De.index;le=le.slice(0,Le===r?K:Le)}}else if(g.indexOf(Zi(k),K)!=K){var We=le.lastIndexOf(k);We>-1&&(le=le.slice(0,We))}return le+L}function $J(g){return g=gr(g),g&&Lb.test(g)?g.replace(Cm,mX):g}var HJ=jf(function(g,_,T){return g+(T?" ":"")+_.toUpperCase()}),Fw=mE("toUpperCase");function pR(g,_,T){return g=gr(g),_=T?r:_,_===r?hX(g)?SX(g):nX(g):g.match(_)||[]}var gR=Ht(function(g,_){try{return Yi(g,r,_)}catch(T){return Rw(T)?T:new Lt(T)}}),UJ=ms(function(g,_){return ma(_,function(T){T=Io(T),ps(g,T,Pw(g[T],g))}),g});function WJ(g){var _=g==null?0:g.length,T=dt();return g=_?Hr(g,function(L){if(typeof L[1]!="function")throw new ya(o);return[T(L[0]),L[1]]}):[],Ht(function(L){for(var k=-1;++k<_;){var G=g[k];if(Yi(G[0],this,L))return Yi(G[1],this,L)}})}function YJ(g){return mZ(Sa(g,f))}function Bw(g){return function(){return g}}function XJ(g,_){return g==null||g!==g?_:g}var ZJ=_E(),qJ=_E(!0);function Ri(g){return g}function Vw(g){return qP(typeof g=="function"?g:Sa(g,f))}function jJ(g){return KP(Sa(g,f))}function KJ(g,_){return JP(g,Sa(_,f))}var JJ=Ht(function(g,_){return function(T){return tv(T,g,_)}}),QJ=Ht(function(g,_){return function(T){return tv(g,T,_)}});function zw(g,_,T){var L=En(_),k=ty(_,L);T==null&&!(Xr(_)&&(k.length||!L.length))&&(T=_,_=g,g=this,k=ty(_,En(_)));var G=!(Xr(T)&&"chain"in T)||!!T.chain,Z=_s(g);return ma(k,function(K){var le=_[K];g[K]=le,Z&&(g.prototype[K]=function(){var De=this.__chain__;if(G||De){var Me=g(this.__wrapped__),Le=Me.__actions__=Li(this.__actions__);return Le.push({func:le,args:arguments,thisArg:g}),Me.__chain__=De,Me}return le.apply(g,vl([this.value()],arguments))})}),g}function eQ(){return Bn._===this&&(Bn._=AX),this}function Gw(){}function tQ(g){return g=Bt(g),Ht(function(_){return QP(_,g)})}var rQ=yw(Hr),nQ=yw(SP),iQ=yw(Hb);function mR(g){return Tw(g)?Ub(Io(g)):kZ(g)}function aQ(g){return function(_){return g==null?r:zu(g,_)}}var oQ=bE(),sQ=bE(!0);function $w(){return[]}function Hw(){return!1}function lQ(){return{}}function uQ(){return""}function cQ(){return!0}function fQ(g,_){if(g=Bt(g),g<1||g>z)return[];var T=te,L=Zn(g,te);_=dt(_),g-=te;for(var k=Xb(L,_);++T<g;)_(T);return k}function hQ(g){return Rt(g)?Hr(g,Io):qi(g)?[g]:Li(FE(gr(g)))}function dQ(g){var _=++CX;return gr(g)+_}var vQ=sy(function(g,_){return g+_},0),pQ=_w("ceil"),gQ=sy(function(g,_){return g/_},1),mQ=_w("floor");function yQ(g){return g&&g.length?ey(g,Ri,iw):r}function _Q(g,_){return g&&g.length?ey(g,dt(_,2),iw):r}function SQ(g){return xP(g,Ri)}function bQ(g,_){return xP(g,dt(_,2))}function wQ(g){return g&&g.length?ey(g,Ri,lw):r}function xQ(g,_){return g&&g.length?ey(g,dt(_,2),lw):r}var CQ=sy(function(g,_){return g*_},1),TQ=_w("round"),AQ=sy(function(g,_){return g-_},0);function DQ(g){return g&&g.length?Yb(g,Ri):0}function MQ(g,_){return g&&g.length?Yb(g,dt(_,2)):0}return V.after=jj,V.ary=ZE,V.assign=FK,V.assignIn=lR,V.assignInWith=Sy,V.assignWith=BK,V.at=VK,V.before=qE,V.bind=Pw,V.bindAll=UJ,V.bindKey=jE,V.castArray=lK,V.chain=WE,V.chunk=mq,V.compact=yq,V.concat=_q,V.cond=WJ,V.conforms=YJ,V.constant=Bw,V.countBy=Dj,V.create=zK,V.curry=KE,V.curryRight=JE,V.debounce=QE,V.defaults=GK,V.defaultsDeep=$K,V.defer=Kj,V.delay=Jj,V.difference=Sq,V.differenceBy=bq,V.differenceWith=wq,V.drop=xq,V.dropRight=Cq,V.dropRightWhile=Tq,V.dropWhile=Aq,V.fill=Dq,V.filter=Ij,V.flatMap=Ej,V.flatMapDeep=Rj,V.flatMapDepth=kj,V.flatten=GE,V.flattenDeep=Mq,V.flattenDepth=Iq,V.flip=Qj,V.flow=ZJ,V.flowRight=qJ,V.fromPairs=Lq,V.functions=qK,V.functionsIn=jK,V.groupBy=Oj,V.initial=Eq,V.intersection=Rq,V.intersectionBy=kq,V.intersectionWith=Oq,V.invert=JK,V.invertBy=QK,V.invokeMap=Fj,V.iteratee=Vw,V.keyBy=Bj,V.keys=En,V.keysIn=Ei,V.map=vy,V.mapKeys=tJ,V.mapValues=rJ,V.matches=jJ,V.matchesProperty=KJ,V.memoize=gy,V.merge=nJ,V.mergeWith=uR,V.method=JJ,V.methodOf=QJ,V.mixin=zw,V.negate=my,V.nthArg=tQ,V.omit=iJ,V.omitBy=aJ,V.once=eK,V.orderBy=Vj,V.over=rQ,V.overArgs=tK,V.overEvery=nQ,V.overSome=iQ,V.partial=Ew,V.partialRight=eR,V.partition=zj,V.pick=oJ,V.pickBy=cR,V.property=mR,V.propertyOf=aQ,V.pull=Vq,V.pullAll=HE,V.pullAllBy=zq,V.pullAllWith=Gq,V.pullAt=$q,V.range=oQ,V.rangeRight=sQ,V.rearg=rK,V.reject=Hj,V.remove=Hq,V.rest=nK,V.reverse=Iw,V.sampleSize=Wj,V.set=lJ,V.setWith=uJ,V.shuffle=Yj,V.slice=Uq,V.sortBy=qj,V.sortedUniq=Kq,V.sortedUniqBy=Jq,V.split=EJ,V.spread=iK,V.tail=Qq,V.take=ej,V.takeRight=tj,V.takeRightWhile=rj,V.takeWhile=nj,V.tap=yj,V.throttle=aK,V.thru=dy,V.toArray=aR,V.toPairs=fR,V.toPairsIn=hR,V.toPath=hQ,V.toPlainObject=sR,V.transform=cJ,V.unary=oK,V.union=ij,V.unionBy=aj,V.unionWith=oj,V.uniq=sj,V.uniqBy=lj,V.uniqWith=uj,V.unset=fJ,V.unzip=Lw,V.unzipWith=UE,V.update=hJ,V.updateWith=dJ,V.values=Qf,V.valuesIn=vJ,V.without=cj,V.words=pR,V.wrap=sK,V.xor=fj,V.xorBy=hj,V.xorWith=dj,V.zip=vj,V.zipObject=pj,V.zipObjectDeep=gj,V.zipWith=mj,V.entries=fR,V.entriesIn=hR,V.extend=lR,V.extendWith=Sy,zw(V,V),V.add=vQ,V.attempt=gR,V.camelCase=yJ,V.capitalize=dR,V.ceil=pQ,V.clamp=pJ,V.clone=uK,V.cloneDeep=fK,V.cloneDeepWith=hK,V.cloneWith=cK,V.conformsTo=dK,V.deburr=vR,V.defaultTo=XJ,V.divide=gQ,V.endsWith=_J,V.eq=Ja,V.escape=SJ,V.escapeRegExp=bJ,V.every=Mj,V.find=Lj,V.findIndex=VE,V.findKey=HK,V.findLast=Pj,V.findLastIndex=zE,V.findLastKey=UK,V.floor=mQ,V.forEach=YE,V.forEachRight=XE,V.forIn=WK,V.forInRight=YK,V.forOwn=XK,V.forOwnRight=ZK,V.get=Ow,V.gt=vK,V.gte=pK,V.has=KK,V.hasIn=Nw,V.head=$E,V.identity=Ri,V.includes=Nj,V.indexOf=Pq,V.inRange=gJ,V.invoke=eJ,V.isArguments=Hu,V.isArray=Rt,V.isArrayBuffer=gK,V.isArrayLike=Pi,V.isArrayLikeObject=on,V.isBoolean=mK,V.isBuffer=bl,V.isDate=yK,V.isElement=_K,V.isEmpty=SK,V.isEqual=bK,V.isEqualWith=wK,V.isError=Rw,V.isFinite=xK,V.isFunction=_s,V.isInteger=tR,V.isLength=yy,V.isMap=rR,V.isMatch=CK,V.isMatchWith=TK,V.isNaN=AK,V.isNative=DK,V.isNil=IK,V.isNull=MK,V.isNumber=nR,V.isObject=Xr,V.isObjectLike=Jr,V.isPlainObject=sv,V.isRegExp=kw,V.isSafeInteger=LK,V.isSet=iR,V.isString=_y,V.isSymbol=qi,V.isTypedArray=Jf,V.isUndefined=PK,V.isWeakMap=EK,V.isWeakSet=RK,V.join=Nq,V.kebabCase=wJ,V.last=wa,V.lastIndexOf=Fq,V.lowerCase=xJ,V.lowerFirst=CJ,V.lt=kK,V.lte=OK,V.max=yQ,V.maxBy=_Q,V.mean=SQ,V.meanBy=bQ,V.min=wQ,V.minBy=xQ,V.stubArray=$w,V.stubFalse=Hw,V.stubObject=lQ,V.stubString=uQ,V.stubTrue=cQ,V.multiply=CQ,V.nth=Bq,V.noConflict=eQ,V.noop=Gw,V.now=py,V.pad=TJ,V.padEnd=AJ,V.padStart=DJ,V.parseInt=MJ,V.random=mJ,V.reduce=Gj,V.reduceRight=$j,V.repeat=IJ,V.replace=LJ,V.result=sJ,V.round=TQ,V.runInContext=ae,V.sample=Uj,V.size=Xj,V.snakeCase=PJ,V.some=Zj,V.sortedIndex=Wq,V.sortedIndexBy=Yq,V.sortedIndexOf=Xq,V.sortedLastIndex=Zq,V.sortedLastIndexBy=qq,V.sortedLastIndexOf=jq,V.startCase=RJ,V.startsWith=kJ,V.subtract=AQ,V.sum=DQ,V.sumBy=MQ,V.template=OJ,V.times=fQ,V.toFinite=Ss,V.toInteger=Bt,V.toLength=oR,V.toLower=NJ,V.toNumber=xa,V.toSafeInteger=NK,V.toString=gr,V.toUpper=FJ,V.trim=BJ,V.trimEnd=VJ,V.trimStart=zJ,V.truncate=GJ,V.unescape=$J,V.uniqueId=dQ,V.upperCase=HJ,V.upperFirst=Fw,V.each=YE,V.eachRight=XE,V.first=$E,zw(V,function(){var g={};return Do(V,function(_,T){wr.call(V.prototype,T)||(g[T]=_)}),g}(),{chain:!1}),V.VERSION=n,ma(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){V[g].placeholder=V}),ma(["drop","take"],function(g,_){Jt.prototype[g]=function(T){T=T===r?1:bn(Bt(T),0);var L=this.__filtered__&&!_?new Jt(this):this.clone();return L.__filtered__?L.__takeCount__=Zn(T,L.__takeCount__):L.__views__.push({size:Zn(T,te),type:g+(L.__dir__<0?"Right":"")}),L},Jt.prototype[g+"Right"]=function(T){return this.reverse()[g](T).reverse()}}),ma(["filter","map","takeWhile"],function(g,_){var T=_+1,L=T==O||T==B;Jt.prototype[g]=function(k){var G=this.clone();return G.__iteratees__.push({iteratee:dt(k,3),type:T}),G.__filtered__=G.__filtered__||L,G}}),ma(["head","last"],function(g,_){var T="take"+(_?"Right":"");Jt.prototype[g]=function(){return this[T](1).value()[0]}}),ma(["initial","tail"],function(g,_){var T="drop"+(_?"":"Right");Jt.prototype[g]=function(){return this.__filtered__?new Jt(this):this[T](1)}}),Jt.prototype.compact=function(){return this.filter(Ri)},Jt.prototype.find=function(g){return this.filter(g).head()},Jt.prototype.findLast=function(g){return this.reverse().find(g)},Jt.prototype.invokeMap=Ht(function(g,_){return typeof g=="function"?new Jt(this):this.map(function(T){return tv(T,g,_)})}),Jt.prototype.reject=function(g){return this.filter(my(dt(g)))},Jt.prototype.slice=function(g,_){g=Bt(g);var T=this;return T.__filtered__&&(g>0||_<0)?new Jt(T):(g<0?T=T.takeRight(-g):g&&(T=T.drop(g)),_!==r&&(_=Bt(_),T=_<0?T.dropRight(-_):T.take(_-g)),T)},Jt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Jt.prototype.toArray=function(){return this.take(te)},Do(Jt.prototype,function(g,_){var T=/^(?:filter|find|map|reject)|While$/.test(_),L=/^(?:head|last)$/.test(_),k=V[L?"take"+(_=="last"?"Right":""):_],G=L||/^find/.test(_);k&&(V.prototype[_]=function(){var Z=this.__wrapped__,K=L?[1]:arguments,le=Z instanceof Jt,De=K[0],Me=le||Rt(Z),Le=function(jt){var rr=k.apply(V,vl([jt],K));return L&&We?rr[0]:rr};Me&&T&&typeof De=="function"&&De.length!=1&&(le=Me=!1);var We=this.__chain__,nt=!!this.__actions__.length,gt=G&&!We,Gt=le&&!nt;if(!G&&Me){Z=Gt?Z:new Jt(this);var mt=g.apply(Z,K);return mt.__actions__.push({func:dy,args:[Le],thisArg:r}),new _a(mt,We)}return gt&&Gt?g.apply(this,K):(mt=this.thru(Le),gt?L?mt.value()[0]:mt.value():mt)})}),ma(["pop","push","shift","sort","splice","unshift"],function(g){var _=Vm[g],T=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",L=/^(?:pop|shift)$/.test(g);V.prototype[g]=function(){var k=arguments;if(L&&!this.__chain__){var G=this.value();return _.apply(Rt(G)?G:[],k)}return this[T](function(Z){return _.apply(Rt(Z)?Z:[],k)})}}),Do(Jt.prototype,function(g,_){var T=V[_];if(T){var L=T.name+"";wr.call(Xf,L)||(Xf[L]=[]),Xf[L].push({name:_,func:T})}}),Xf[oy(r,y).name]=[{name:"wrapper",func:r}],Jt.prototype.clone=$X,Jt.prototype.reverse=HX,Jt.prototype.value=UX,V.prototype.at=_j,V.prototype.chain=Sj,V.prototype.commit=bj,V.prototype.next=wj,V.prototype.plant=Cj,V.prototype.reverse=Tj,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Aj,V.prototype.first=V.prototype.head,Zd&&(V.prototype[Zd]=xj),V},Uf=bX();Ou?((Ou.exports=Uf)._=Uf,Vb._=Uf):Bn._=Uf}).call(Ere)}(Kv,Kv.exports)),Kv.exports}var vf=Rre();const kre=U2(vf),zn=[];for(let e=0;e<256;++e)zn.push((e+256).toString(16).slice(1));function Ore(e,t=0){return(zn[e[t+0]]+zn[e[t+1]]+zn[e[t+2]]+zn[e[t+3]]+"-"+zn[e[t+4]]+zn[e[t+5]]+"-"+zn[e[t+6]]+zn[e[t+7]]+"-"+zn[e[t+8]]+zn[e[t+9]]+"-"+zn[e[t+10]]+zn[e[t+11]]+zn[e[t+12]]+zn[e[t+13]]+zn[e[t+14]]+zn[e[t+15]]).toLowerCase()}let rx;const Nre=new Uint8Array(16);function Fre(){if(!rx){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rx=crypto.getRandomValues.bind(crypto)}return rx(Nre)}const Bre=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nk={randomUUID:Bre};function Vre(e,t,r){if(nk.randomUUID&&!t&&!e)return nk.randomUUID();e=e||{};const n=e.random||(e.rng||Fre)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ore(n)}const pf=Or("setup/api-list",[]),Fs=Or("setup/active-uuid",""),ql=at(()=>pf.value.find(e=>e.uuid===Fs.value)),zre=e=>{const t=pf.value.find(n=>vf.isEqual(vf.omit(n,"uuid"),e));if(t){Fs.value=t.uuid;return}const r=Vre();pf.value.push({...e,uuid:r}),Fs.value=r},Gre=e=>{pf.value=pf.value.filter(t=>t.uuid!==e)};function mG(e,t){return function(){return e.apply(t,arguments)}}const{toString:$re}=Object.prototype,{getPrototypeOf:hM}=Object,AS=(e=>t=>{const r=$re.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Co=e=>(e=e.toLowerCase(),t=>AS(t)===e),DS=e=>t=>typeof t===e,{isArray:xd}=Array,cg=DS("undefined");function Hre(e){return e!==null&&!cg(e)&&e.constructor!==null&&!cg(e.constructor)&&ua(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yG=Co("ArrayBuffer");function Ure(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yG(e.buffer),t}const Wre=DS("string"),ua=DS("function"),_G=DS("number"),MS=e=>e!==null&&typeof e=="object",Yre=e=>e===!0||e===!1,l_=e=>{if(AS(e)!=="object")return!1;const t=hM(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xre=Co("Date"),Zre=Co("File"),qre=Co("Blob"),jre=Co("FileList"),Kre=e=>MS(e)&&ua(e.pipe),Jre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ua(e.append)&&((t=AS(e))==="formdata"||t==="object"&&ua(e.toString)&&e.toString()==="[object FormData]"))},Qre=Co("URLSearchParams"),[ene,tne,rne,nne]=["ReadableStream","Request","Response","Headers"].map(Co),ine=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kg(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),xd(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function SG(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bG=e=>!cg(e)&&e!==Bc;function yA(){const{caseless:e}=bG(this)&&this||{},t={},r=(n,i)=>{const a=e&&SG(t,i)||i;l_(t[a])&&l_(n)?t[a]=yA(t[a],n):l_(n)?t[a]=yA({},n):xd(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&Kg(arguments[n],r);return t}const ane=(e,t,r,{allOwnKeys:n}={})=>(Kg(t,(i,a)=>{r&&ua(i)?e[a]=mG(i,r):e[a]=i},{allOwnKeys:n}),e),one=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sne=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lne=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&hM(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},une=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},cne=e=>{if(!e)return null;if(xd(e))return e;let t=e.length;if(!_G(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fne=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hM(Uint8Array)),hne=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},dne=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},vne=Co("HTMLFormElement"),pne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ik=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),gne=Co("RegExp"),wG=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Kg(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},mne=e=>{wG(e,(t,r)=>{if(ua(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ua(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yne=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return xd(e)?n(e):n(String(e).split(t)),r},_ne=()=>{},Sne=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,nx="abcdefghijklmnopqrstuvwxyz",ak="0123456789",xG={DIGIT:ak,ALPHA:nx,ALPHA_DIGIT:nx+nx.toUpperCase()+ak},bne=(e=16,t=xG.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function wne(e){return!!(e&&ua(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xne=e=>{const t=new Array(10),r=(n,i)=>{if(MS(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=xd(n)?[]:{};return Kg(n,(o,s)=>{const l=r(o,i+1);!cg(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},Cne=Co("AsyncFunction"),Tne=e=>e&&(MS(e)||ua(e))&&ua(e.then)&&ua(e.catch),CG=((e,t)=>e?setImmediate:t?((r,n)=>(Bc.addEventListener("message",({source:i,data:a})=>{i===Bc&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Bc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ua(Bc.postMessage)),Ane=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||CG,be={isArray:xd,isArrayBuffer:yG,isBuffer:Hre,isFormData:Jre,isArrayBufferView:Ure,isString:Wre,isNumber:_G,isBoolean:Yre,isObject:MS,isPlainObject:l_,isReadableStream:ene,isRequest:tne,isResponse:rne,isHeaders:nne,isUndefined:cg,isDate:Xre,isFile:Zre,isBlob:qre,isRegExp:gne,isFunction:ua,isStream:Kre,isURLSearchParams:Qre,isTypedArray:fne,isFileList:jre,forEach:Kg,merge:yA,extend:ane,trim:ine,stripBOM:one,inherits:sne,toFlatObject:lne,kindOf:AS,kindOfTest:Co,endsWith:une,toArray:cne,forEachEntry:hne,matchAll:dne,isHTMLForm:vne,hasOwnProperty:ik,hasOwnProp:ik,reduceDescriptors:wG,freezeMethods:mne,toObjectSet:yne,toCamelCase:pne,noop:_ne,toFiniteNumber:Sne,findKey:SG,global:Bc,isContextDefined:bG,ALPHABET:xG,generateString:bne,isSpecCompliantForm:wne,toJSONObject:xne,isAsyncFn:Cne,isThenable:Tne,setImmediate:CG,asap:Ane};function kt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}be.inherits(kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const TG=kt.prototype,AG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{AG[e]={value:e}});Object.defineProperties(kt,AG);Object.defineProperty(TG,"isAxiosError",{value:!0});kt.from=(e,t,r,n,i,a)=>{const o=Object.create(TG);return be.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),kt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Dne=null;function _A(e){return be.isPlainObject(e)||be.isArray(e)}function DG(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function ok(e,t,r){return e?e.concat(t).map(function(i,a){return i=DG(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function Mne(e){return be.isArray(e)&&!e.some(_A)}const Ine=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function IS(e,t,r){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!be.isUndefined(m[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new kt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,m){let y=v;if(v&&!m&&typeof v=="object"){if(be.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&Mne(v)||(be.isFileList(v)||be.endsWith(p,"[]"))&&(y=be.toArray(v)))return p=DG(p),y.forEach(function(b,w){!(be.isUndefined(b)||b===null)&&t.append(o===!0?ok([p],w,a):o===null?p:p+"[]",u(b))}),!1}return _A(v)?!0:(t.append(ok(m,p,a),u(v)),!1)}const f=[],h=Object.assign(Ine,{defaultVisitor:c,convertValue:u,isVisitable:_A});function d(v,p){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),be.forEach(v,function(y,S){(!(be.isUndefined(y)||y===null)&&i.call(t,y,be.isString(S)?S.trim():S,p,h))===!0&&d(y,p?p.concat(S):[S])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return d(e),t}function sk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dM(e,t){this._pairs=[],e&&IS(e,this,t)}const MG=dM.prototype;MG.append=function(t,r){this._pairs.push([t,r])};MG.toString=function(t){const r=t?function(n){return t.call(this,n,sk)}:sk;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Lne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IG(e,t,r){if(!t)return e;const n=r&&r.encode||Lne;be.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=be.isURLSearchParams(t)?t.toString():new dM(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lk{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const LG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pne=typeof URLSearchParams<"u"?URLSearchParams:dM,Ene=typeof FormData<"u"?FormData:null,Rne=typeof Blob<"u"?Blob:null,kne={isBrowser:!0,classes:{URLSearchParams:Pne,FormData:Ene,Blob:Rne},protocols:["http","https","file","blob","url","data"]},vM=typeof window<"u"&&typeof document<"u",SA=typeof navigator=="object"&&navigator||void 0,One=vM&&(!SA||["ReactNative","NativeScript","NS"].indexOf(SA.product)<0),Nne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fne=vM&&window.location.href||"http://localhost",Bne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vM,hasStandardBrowserEnv:One,hasStandardBrowserWebWorkerEnv:Nne,navigator:SA,origin:Fne},Symbol.toStringTag,{value:"Module"})),ni={...Bne,...kne};function Vne(e,t){return IS(e,new ni.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return ni.isNode&&be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function zne(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gne(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function PG(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&be.isArray(i)?i.length:o,l?(be.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!be.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&be.isArray(i[o])&&(i[o]=Gne(i[o])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const r={};return be.forEachEntry(e,(n,i)=>{t(zne(n),i,r,0)}),r}return null}function $ne(e,t,r){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Jg={transitional:LG,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=be.isObject(t);if(a&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(PG(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Vne(t,this.formSerializer).toString();if((s=be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return IS(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),$ne(t)):t}],transformResponse:[function(t){const r=this.transitional||Jg.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?kt.from(s,kt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Jg.headers[e]={}});const Hne=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Une=e=>{const t={};let r,n,i;return e&&e.split(`
|
||
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Hne[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},uk=Symbol("internals");function cv(e){return e&&String(e).trim().toLowerCase()}function u_(e){return e===!1||e==null?e:be.isArray(e)?e.map(u_):String(e)}function Wne(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Yne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ix(e,t,r,n,i){if(be.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!be.isString(t)){if(be.isString(n))return t.indexOf(n)!==-1;if(be.isRegExp(n))return n.test(t)}}function Xne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zne(e,t){const r=be.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class $i{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=cv(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=u_(s))}const o=(s,l)=>be.forEach(s,(u,c)=>a(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(be.isString(t)&&(t=t.trim())&&!Yne(t))o(Une(t),r);else if(be.isHeaders(t))for(const[s,l]of t.entries())a(l,s,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=cv(t),t){const n=be.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Wne(i);if(be.isFunction(r))return r.call(this,i,n);if(be.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=cv(t),t){const n=be.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ix(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=cv(o),o){const s=be.findKey(n,o);s&&(!r||ix(n,n[s],s,r))&&(delete n[s],i=!0)}}return be.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||ix(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return be.forEach(this,(i,a)=>{const o=be.findKey(n,a);if(o){r[o]=u_(i),delete r[a];return}const s=t?Xne(a):String(a).trim();s!==a&&delete r[a],r[s]=u_(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return be.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&be.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[uk]=this[uk]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=cv(o);n[s]||(Zne(i,o),n[s]=!0)}return be.isArray(t)?t.forEach(a):a(t),this}}$i.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors($i.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});be.freezeMethods($i);function ax(e,t){const r=this||Jg,n=t||r,i=$i.from(n.headers);let a=n.data;return be.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function EG(e){return!!(e&&e.__CANCEL__)}function Cd(e,t,r){kt.call(this,e??"canceled",kt.ERR_CANCELED,t,r),this.name="CanceledError"}be.inherits(Cd,kt,{__CANCEL__:!0});function RG(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new kt("Request failed with status code "+r.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qne(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jne(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const d=c&&u-c;return d?Math.round(h*1e3/d):void 0}}function Kne(e,t){let r=0,n=1e3/t,i,a;const o=(u,c=Date.now())=>{r=c,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-f)))},()=>i&&o(i)]}const t1=(e,t,r=3)=>{let n=0;const i=jne(50,250);return Kne(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},ck=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},fk=e=>(...t)=>be.asap(()=>e(...t)),Jne=ni.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ni.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ni.origin),ni.navigator&&/(msie|trident)/i.test(ni.navigator.userAgent)):()=>!0,Qne=ni.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];be.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),be.isString(n)&&o.push("path="+n),be.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eie(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tie(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kG(e,t){return e&&!eie(t)?tie(e,t):t}const hk=e=>e instanceof $i?{...e}:e;function gf(e,t){t=t||{};const r={};function n(u,c,f,h){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:h},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,h){if(be.isUndefined(c)){if(!be.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function a(u,c){if(!be.isUndefined(c))return n(void 0,c)}function o(u,c){if(be.isUndefined(c)){if(!be.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>i(hk(u),hk(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);be.isUndefined(h)&&f!==s||(r[c]=h)}),r}const OG=e=>{const t=gf({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=$i.from(o),t.url=IG(kG(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(r)){if(ni.hasStandardBrowserEnv||ni.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ni.hasStandardBrowserEnv&&(n&&be.isFunction(n)&&(n=n(t)),n||n!==!1&&Jne(t.url))){const u=i&&a&&Qne.read(a);u&&o.set(i,u)}return t},rie=typeof XMLHttpRequest<"u",nie=rie&&function(e){return new Promise(function(r,n){const i=OG(e);let a=i.data;const o=$i.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function p(){d&&d(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const b=$i.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};RG(function(A){r(A),p()},function(A){n(A),p()},C),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new kt("Request aborted",kt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new kt("Network Error",kt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||LG;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new kt(w,C.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&be.forEach(o.toJSON(),function(w,C){m.setRequestHeader(C,w)}),be.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([h,v]=t1(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,d]=t1(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=b=>{m&&(n(!b||b.type?new Cd(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=qne(i.url);if(S&&ni.protocols.indexOf(S)===-1){n(new kt("Unsupported protocol "+S+":",kt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},iie=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof kt?c:new Cd(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new kt(`timeout ${t} of ms exceeded`,kt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>be.asap(s),l}},aie=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},oie=async function*(e,t){for await(const r of sie(e))yield*aie(r,t)},sie=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},dk=(e,t,r,n)=>{const i=oie(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let h=a+=f;r(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},LS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",NG=LS&&typeof ReadableStream=="function",lie=LS&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),FG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uie=NG&&FG(()=>{let e=!1;const t=new Request(ni.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),vk=64*1024,bA=NG&&FG(()=>be.isReadableStream(new Response("").body)),r1={stream:bA&&(e=>e.body)};LS&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!r1[t]&&(r1[t]=be.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new kt(`Response type '${t}' is not supported`,kt.ERR_NOT_SUPPORT,n)})})})(new Response);const cie=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(ni.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await lie(e)).byteLength},fie=async(e,t)=>{const r=be.toFiniteNumber(e.getContentLength());return r??cie(t)},hie=LS&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=OG(e);u=u?(u+"").toLowerCase():"text";let d=iie([i,a&&a.toAbortSignal()],o),v;const p=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&uie&&r!=="get"&&r!=="head"&&(m=await fie(c,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(be.isFormData(n)&&(x=C.headers.get("content-type"))&&c.setContentType(x),C.body){const[A,D]=ck(m,t1(fk(l)));n=dk(C.body,vk,A,D)}}be.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:d,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let S=await fetch(v);const b=bA&&(u==="stream"||u==="response");if(bA&&(s||b&&p)){const C={};["status","statusText","headers"].forEach(M=>{C[M]=S[M]});const x=be.toFiniteNumber(S.headers.get("content-length")),[A,D]=s&&ck(x,t1(fk(s),!0))||[];S=new Response(dk(S.body,vk,A,()=>{D&&D(),p&&p()}),C)}u=u||"text";let w=await r1[be.findKey(r1,u)||"text"](S,e);return!b&&p&&p(),await new Promise((C,x)=>{RG(C,x,{data:w,headers:$i.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new kt("Network Error",kt.ERR_NETWORK,e,v),{cause:y.cause||y}):kt.from(y,y&&y.code,e,v)}}),wA={http:Dne,xhr:nie,fetch:hie};be.forEach(wA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pk=e=>`- ${e}`,die=e=>be.isFunction(e)||e===null||e===!1,BG={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){r=e[a];let o;if(n=r,!die(r)&&(n=wA[(o=String(r)).toLowerCase()],n===void 0))throw new kt(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+a]=n}if(!n){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since :
|
||
`+a.map(pk).join(`
|
||
`):" "+pk(a[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:wA};function ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cd(null,e)}function gk(e){return ox(e),e.headers=$i.from(e.headers),e.data=ax.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),BG.getAdapter(e.adapter||Jg.adapter)(e).then(function(n){return ox(e),n.data=ax.call(e,e.transformResponse,n),n.headers=$i.from(n.headers),n},function(n){return EG(n)||(ox(e),n&&n.response&&(n.response.data=ax.call(e,e.transformResponse,n.response),n.response.headers=$i.from(n.response.headers))),Promise.reject(n)})}const VG="1.7.8",PS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{PS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mk={};PS.transitional=function(t,r,n){function i(a,o){return"[Axios v"+VG+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new kt(i(o," has been removed"+(r?" in "+r:"")),kt.ERR_DEPRECATED);return r&&!mk[o]&&(mk[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};PS.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function vie(e,t,r){if(typeof e!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new kt("option "+a+" must be "+l,kt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new kt("Unknown option "+a,kt.ERR_BAD_OPTION)}}const c_={assertOptions:vie,validators:PS},Po=c_.validators;class Qc{constructor(t){this.defaults=t,this.interceptors={request:new lk,response:new lk}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
||
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gf(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&c_.assertOptions(n,{silentJSONParsing:Po.transitional(Po.boolean),forcedJSONParsing:Po.transitional(Po.boolean),clarifyTimeoutError:Po.transitional(Po.boolean)},!1),i!=null&&(be.isFunction(i)?r.paramsSerializer={serialize:i}:c_.assertOptions(i,{encode:Po.function,serialize:Po.function},!0)),c_.assertOptions(r,{baseUrl:Po.spelling("baseURL"),withXsrfToken:Po.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&be.merge(a.common,a[r.method]);a&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),r.headers=$i.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const v=[gk.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.length,c=Promise.resolve(r);f<h;)c=c.then(v[f++],v[f++]);return c}h=s.length;let d=r;for(f=0;f<h;){const v=s[f++],p=s[f++];try{d=v(d)}catch(m){p.call(this,m);break}}try{c=gk.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=gf(this.defaults,t);const r=kG(t.baseURL,t.url);return IG(r,t.params,t.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(t){Qc.prototype[t]=function(r,n){return this.request(gf(n||{},{method:t,url:r,data:(n||{}).data}))}});be.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(gf(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Qc.prototype[t]=r(),Qc.prototype[t+"Form"]=r(!0)});class pM{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Cd(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new pM(function(i){t=i}),cancel:t}}}function pie(e){return function(r){return e.apply(null,r)}}function gie(e){return be.isObject(e)&&e.isAxiosError===!0}const xA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xA).forEach(([e,t])=>{xA[t]=e});function zG(e){const t=new Qc(e),r=mG(Qc.prototype.request,t);return be.extend(r,Qc.prototype,t,{allOwnKeys:!0}),be.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return zG(gf(e,i))},r}const Zt=zG(Jg);Zt.Axios=Qc;Zt.CanceledError=Cd;Zt.CancelToken=pM;Zt.isCancel=EG;Zt.VERSION=VG;Zt.toFormData=IS;Zt.AxiosError=kt;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=pie;Zt.isAxiosError=gie;Zt.mergeConfig=gf;Zt.AxiosHeaders=$i;Zt.formToJSON=e=>PG(be.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=BG.getAdapter;Zt.HttpStatusCode=xA;Zt.default=Zt;Zt.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=ql.value)==null?void 0:t.protocol)+"://"+((r=ql.value)==null?void 0:r.host)+":"+((n=ql.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=ql.value)==null?void 0:i.password),e});const gM=Ye(),mie=()=>Zt.get("/version"),Vc=at(()=>{var e;return(e=gM.value)==null?void 0:e.includes("sing-box")}),GG=Ye("1.19.0");Sr(ql,async e=>{if(e){const{data:t}=await mie();gM.value=t.version}},{immediate:!0});const yie=()=>Zt.get("/proxies"),_ie=(e,t)=>Zt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),Sie=(e,t,r)=>Zt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),bie=(e,t,r)=>Zt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),wie=()=>Zt.get("/providers/proxies"),$G=e=>Zt.put(`/providers/proxies/${encodeURIComponent(e)}`),xie=e=>Zt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Cie=()=>Zt.get("/rules"),Tie=()=>Zt.get("/providers/rules"),HG=e=>Zt.put(`/providers/rules/${encodeURIComponent(e)}`),ES=e=>Zt.delete(`/connections/${e}`),Aie=()=>Zt.get("/configs"),Die=e=>Zt.patch("/configs",e),yk=()=>Zt.post("/cache/fakeip/flush"),Mie=()=>Zt.put("/configs?reload=true",{path:"",payload:""}),Iie=()=>Zt.post("/upgrade/ui"),Lie=()=>Zt.post("/upgrade"),RS=(e,t)=>{const r=ql.value,n=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return n.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([i,a])=>{n.searchParams.append(i,a)}),Lre(n,{autoClose:!1,autoReconnect:!0})},Pie=()=>RS("connections"),Eie=(e={})=>RS("logs",e),Rie=()=>RS("memory"),kie=()=>RS("traffic"),Oie=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${GG.value}`},Yo=Ye([]),f_=Ye([]),n1=Ye(0),i1=Ye(0);let My;const Nie=()=>{My==null||My(),Yo.value=[],f_.value=[],n1.value=0,i1.value=0;const e=Pie(),t=Sr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);n1.value=n.downloadTotal,i1.value=n.uploadTotal,!v_.value&&(f_.value=[...f_.value,...vf.differenceWith(Yo.value,n.connections,(a,o)=>a.id===o.id)],Yo.value=((i=n.connections)==null?void 0:i.map(a=>{const o=Yo.value.find(s=>s.id===a.id);return o?{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}:{...a,downloadSpeed:0,uploadSpeed:0}}))??[])});My=()=>{t(),e.close()}},Mp=Or("config/quick-filter-regex","direct"),h_=Or("config/quick-filter-enabled",!1),Jv=Ye(Oc.ACTIVE),_k={[Fi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Fi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Fi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Fi.DOWNLOAD]:(e,t)=>t.download-e.download,[Fi.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[Fi.UPLOAD]:(e,t)=>t.upload-e.upload,[Fi.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[Fi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Fi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Fi.CONNECT_TIME]:(e,t)=>hu(t.start).valueOf()-hu(e.start).valueOf()},d_=Or("config/connection-sort-type",Fi.HOST),Ip=Ye(""),v_=Ye(!1),a1=at(()=>(Jv.value===Oc.ACTIVE?Yo.value:f_.value).filter(e=>{if(h_.value&&Mp.value){const t=new RegExp(Mp.value,"i");if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return Vl.value&&e.metadata.sourceIP!==Vl.value?!1:Ip.value?[e.metadata.host,e.metadata.destinationIP,e.metadata.destinationPort,e.metadata.sourceIP,e.metadata.sourcePort,e.metadata.processPath,e.metadata.type,e.metadata.network,e.chains.join(""),e.rule].some(t=>t==null?void 0:t.includes(Ip.value)):!0}).sort((e,t)=>{const r=Fc.value?_k[d_.value](e,t):_k[Fi.HOST](e,t);return r===0?e.id.localeCompare(t.id):r})),Vl=Ye(""),Fie=at(()=>kre.uniq(Yo.value.map(e=>e.metadata.sourceIP)).sort()),Ic="GLOBAL",CA=Ye([]),qs=Ye({}),mM=Ye({}),Wh=Ye([]),kS=e=>mM.value[UG(e)],id=async()=>{const{data:e}=await yie(),{data:t}=await wie(),r=e.proxies[Ic].all??[];qs.value=e.proxies,CA.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==Ic&&!(n!=null&&n.hidden)}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),mM.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,Gie(i)])),Wh.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},Bie=async(e,t)=>{await _ie(e,t),qs.value[e].now=t,a_.value&&Yo.value.filter(r=>r.chains.includes(e)).forEach(r=>ES(r.id))},Vie=async e=>{const{data:t}=await Sie(e,Cp.value,Tp.value);mM.value[UG(e)]=t.delay},zie=async e=>{await bie(e,Cp.value,Tp.value),await id()},Gie=e=>{var t;return((t=vf.last(e.history))==null?void 0:t.delay)??0},UG=e=>{let t=qs.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=qs.value[t.now];if(!r)return t.name;t=r}return t.name},$ie=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Hie=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Uie=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Wie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Sk=(e,t,r)=>{let n=e;return typeof t=="string"||Array.isArray(t)?n=e.toLocaleString(t,r):(t===!0||r!==void 0)&&(n=e.toLocaleString(void 0,r)),n};function Yie(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const r=t.bits?t.binary?Wie:Uie:t.binary?Hie:$ie,n=t.space?" ":"";if(t.signed&&e===0)return` 0${n}${r[0]}`;const i=e<0,a=i?"-":t.signed?"+":"";i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=Sk(e,t.locale,o);return a+c+n+r[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const l=Sk(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Wr=(e,t)=>Yie(e,{binary:!1,...t}),Xie=Pre(),WG=at(()=>Xie.width.value>1280),OS=e=>hu(e).locale(sa.value).fromNow(),Iy=e=>{const t=kS(e);return t===0?1/0:t},Zie=e=>{const t=qs.value[e];return t?["direct","reject"].includes(t.type.toLowerCase())||!!t.all:!1},YG=e=>{switch(e=[...e],o_.value&&(e=e.filter(t=>Zie(t)||kS(t)>0)),i_.value){case Wl.DEFAULT:return e;case Wl.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case Wl.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case Wl.LATENCY_ASC:return e.sort((t,r)=>Iy(t)-Iy(r));case Wl.LATENCY_DESC:return e.sort((t,r)=>Iy(r)-Iy(t))}},yM=e=>{const t=e.includes(":");for(const r in Ls.value)if(e===r||t&&e.endsWith(r))return Ls.value[r];return e},XG=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-";function ZG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function jie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Kie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function jG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function bk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function _M(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})])}function Jie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function KG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})])}function JG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function QG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function e$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function t$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function wk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"})])}function xk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})])}function r$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function n$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function i$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function a$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function eae(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function o$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"})])}function SM(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const bM="-",tae=e=>{const t=nae(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(bM);return s[0]===""&&s.length!==1&&s.shift(),s$(s,t)||rae(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},s$=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?s$(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(bM);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},Ck=/^\[(.+)\]$/,rae=e=>{if(Ck.test(e)){const t=Ck.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nae=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return aae(Object.entries(e.classGroups),r).forEach(([a,o])=>{TA(o,n,a,t)}),n},TA=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Tk(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(iae(i)){TA(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{TA(o,Tk(t,a),r,n)})})},Tk=(e,t)=>{let r=e;return t.split(bM).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},iae=e=>e.isThemeGetter,aae=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,oae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},l$="!",sae=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;m<s.length;m++){let y=s[m];if(u===0){if(y===i&&(n||s.slice(m,m+a)===t)){l.push(s.slice(c,m)),c=m+a;continue}if(y==="/"){f=m;continue}}y==="["?u++:y==="]"&&u--}const h=l.length===0?s:s.substring(c),d=h.startsWith(l$),v=d?h.substring(1):h,p=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:v,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},lae=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},uae=e=>({cache:oae(e.cacheSize),parseClassName:sae(e),...tae(e)}),cae=/\s+/,fae=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(cae);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(u);let v=!!d,p=n(v?h.substring(0,d):h);if(!p){if(!v){s=u+(s.length>0?" "+s:s);continue}if(p=n(h),!p){s=u+(s.length>0?" "+s:s);continue}v=!1}const m=lae(c).join(":"),y=f?m+l$:m,S=y+p;if(a.includes(S))continue;a.push(S);const b=i(p,v);for(let w=0;w<b.length;++w){const C=b[w];a.push(y+C)}s=u+(s.length>0?" "+s:s)}return s};function hae(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=u$(t))&&(n&&(n+=" "),n+=r);return n}const u$=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=u$(e[n]))&&(r&&(r+=" "),r+=t);return r};function dae(e,...t){let r,n,i,a=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=uae(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=fae(l,r);return i(l,c),c}return function(){return a(hae.apply(null,arguments))}}const Gr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},c$=/^\[(?:([a-z-]+):)?(.+)\]$/i,vae=/^\d+\/\d+$/,pae=new Set(["px","full","screen"]),gae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xs=e=>Yh(e)||pae.has(e)||vae.test(e),wl=e=>Td(e,"length",Mae),Yh=e=>!!e&&!Number.isNaN(Number(e)),sx=e=>Td(e,"number",Yh),fv=e=>!!e&&Number.isInteger(Number(e)),bae=e=>e.endsWith("%")&&Yh(e.slice(0,-1)),Vt=e=>c$.test(e),xl=e=>gae.test(e),wae=new Set(["length","size","percentage"]),xae=e=>Td(e,wae,f$),Cae=e=>Td(e,"position",f$),Tae=new Set(["image","url"]),Aae=e=>Td(e,Tae,Lae),Dae=e=>Td(e,"",Iae),hv=()=>!0,Td=(e,t,r)=>{const n=c$.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Mae=e=>mae.test(e)&&!yae.test(e),f$=()=>!1,Iae=e=>_ae.test(e),Lae=e=>Sae.test(e),Pae=()=>{const e=Gr("colors"),t=Gr("spacing"),r=Gr("blur"),n=Gr("brightness"),i=Gr("borderColor"),a=Gr("borderRadius"),o=Gr("borderSpacing"),s=Gr("borderWidth"),l=Gr("contrast"),u=Gr("grayscale"),c=Gr("hueRotate"),f=Gr("invert"),h=Gr("gap"),d=Gr("gradientColorStops"),v=Gr("gradientColorStopPositions"),p=Gr("inset"),m=Gr("margin"),y=Gr("opacity"),S=Gr("padding"),b=Gr("saturate"),w=Gr("scale"),C=Gr("sepia"),x=Gr("skew"),A=Gr("space"),D=Gr("translate"),M=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Vt,t],R=()=>[Vt,t],N=()=>["",xs,wl],O=()=>["auto",Yh,Vt],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Vt],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Yh,Vt];return{cacheSize:500,separator:":",theme:{colors:[hv],spacing:[xs,wl],blur:["none","",xl,Vt],brightness:te(),borderColor:[e],borderRadius:["none","","full",xl,Vt],borderSpacing:R(),borderWidth:N(),contrast:te(),grayscale:j(),hueRotate:te(),invert:j(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[bae,wl],inset:P(),margin:P(),opacity:te(),padding:R(),saturate:te(),scale:te(),sepia:j(),skew:te(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",Vt]}],container:["container"],columns:[{columns:[xl]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),Vt]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fv,Vt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vt]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",fv,Vt]}],"grid-cols":[{"grid-cols":[hv]}],"col-start-end":[{col:["auto",{span:["full",fv,Vt]},Vt]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[hv]}],"row-start-end":[{row:["auto",{span:[fv,Vt]},Vt]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vt,t]}],"min-w":[{"min-w":[Vt,t,"min","max","fit"]}],"max-w":[{"max-w":[Vt,t,"none","full","min","max","fit","prose",{screen:[xl]},xl]}],h:[{h:[Vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xl,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sx]}],"font-family":[{font:[hv]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vt]}],"line-clamp":[{"line-clamp":["none",Yh,sx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xs,Vt]}],"list-image":[{"list-image":["none",Vt]}],"list-style-type":[{list:["none","disc","decimal",Vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xs,wl]}],"underline-offset":[{"underline-offset":["auto",xs,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),Cae]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Aae]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[xs,Vt]}],"outline-w":[{outline:[xs,wl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xs,wl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xl,Dae]}],"shadow-color":[{shadow:[hv]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xl,Vt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vt]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Vt]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[fv,Vt]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xs,wl,sx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Tr=dae(Pae),Eae={class:"tabs-boxed tabs tabs-sm"},Rae={class:"shrink-0"},kae=["value"],Oae={class:"shrink-0"},Nae=["data-tip"],Fae=["value","label"],Bae={class:"join w-full flex-1"},Vae=["value","label"],zae=qt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{a1.value.forEach(n=>{ES(n.id)})},r=at(()=>Fie.value.map(n=>({label:yM(n),value:n})));return(n,i)=>(oe(),ve("div",{class:Tt(q(Tr)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[X("div",Eae,[X("a",{role:"tab",class:Tt(q(Tr)("tab",q(Jv)===q(Oc).ACTIVE&&"tab-active")),onClick:i[0]||(i[0]=()=>Jv.value=q(Oc).ACTIVE)},Ie(n.$t("activeConnections")),3),X("a",{role:"tab",class:Tt(q(Tr)("tab",q(Jv)===q(Oc).CLOSED&&"tab-active")),onClick:i[1]||(i[1]=()=>Jv.value=q(Oc).CLOSED)},Ie(n.$t("closedConnections")),3)]),q(Fc)?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[X("span",Rae,Ie(n.$t("sortBy"))+":",1),Qt(X("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":i[2]||(i[2]=a=>vt(d_)?d_.value=a:null)},[(oe(!0),ve(it,null,lr(Object.values(q(Fi)),a=>(oe(),ve("option",{key:a,value:a},Ie(n.$t(a)||a),9,kae))),128))],512),[[po,q(d_)]])],2)):Ut("",!0),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[X("span",Oae,Ie(n.$t("quickFilter"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-full","onUpdate:modelValue":i[3]||(i[3]=a=>vt(Mp)?Mp.value=a:null)},null,512),[[oa,q(Mp)]]),Qt(X("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":i[4]||(i[4]=a=>vt(h_)?h_.value=a:null)},null,512),[[Ea,q(h_)]]),X("div",{class:Tt(`tooltip ${n.horizontal?"tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ze(q(eae),{class:"h-4 w-4"})],10,Nae)],2),n.horizontal?Ut("",!0):Qt((oe(),ve("select",{key:1,class:"select select-bordered select-sm","onUpdate:modelValue":i[5]||(i[5]=a=>vt(Vl)?Vl.value=a:null)},[i[9]||(i[9]=X("option",{value:"",label:"all"},null,-1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("option",{key:a.value,value:a.value,label:a.label},null,8,Fae))),128))],512)),[[po,q(Vl)]]),X("div",Bae,[n.horizontal?Qt((oe(),ve("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":i[6]||(i[6]=a=>vt(Vl)?Vl.value=a:null)},[i[10]||(i[10]=X("option",{value:"",label:"all"},null,-1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("option",{key:a.value,value:a.value,label:a.label},null,8,Vae))),128))],512)),[[po,q(Vl)]]):Ut("",!0),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-32 flex-1","onUpdate:modelValue":i[7]||(i[7]=a=>vt(Ip)?Ip.value=a:null)},null,512),[[oa,q(Ip)]]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:i[8]||(i[8]=a=>v_.value=!q(v_))},[(oe(),er(du(q(v_)?q(i$):q(n$)),{class:"h-4 w-4"}))]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[ze(q(SM),{class:"h-4 w-4"})])])],2))}}),h$=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},d$=h$(zae,[["__scopeId","data-v-944dd909"]]),Qv=Ye([]),Xh=Ye(""),p_=Ye(!1),g_=Or("config/log-level",Nc.Info);let Ly;const AA=()=>{Ly==null||Ly(),Qv.value=[];let e=1;const t=Eie({level:g_.value}),r=Sr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(p_.value){e++;return}Qv.value.unshift({...i,time:new Date().valueOf(),seq:e++}),Qv.value=Qv.value.slice(0,1e3)});Ly=()=>{r(),t.close()}},Gae=["value"],v$=qt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(oe(),ve("div",{class:Tt(q(Tr)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Qt(X("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>vt(g_)?g_.value=n:null),onChange:r[1]||(r[1]=(...n)=>q(AA)&&q(AA)(...n))},[(oe(!0),ve(it,null,lr(Object.values(q(Nc)),n=>(oe(),ve("option",{key:n,value:n},Ie(n),9,Gae))),128))],544),[[po,q(g_)]]),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-0 flex-1","onUpdate:modelValue":r[2]||(r[2]=n=>vt(Xh)?Xh.value=n:null)},null,512),[[oa,q(Xh)]]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>p_.value=!q(p_))},[(oe(),er(du(q(p_)?q(i$):q(n$)),{class:"h-4 w-4"}))])],2))}}),Xo=Ye(),p$=async()=>{Xo.value=(await Aie()).data},g$=async e=>{await Die(e),p$()},m$=Ye(hf.PROXIES),y$=at(()=>{var e;return m$.value===hf.PROVIDER?Wh.value.map(t=>t.name):Vc.value&&n_.value&&qs.value[Ic]?[...CA.value,Ic]:!Vc.value&&((e=Xo.value)==null?void 0:e.mode.toLocaleUpperCase())===Ic&&qs.value[Ic]?[Ic]:CA.value}),$ae=at(()=>xp.value&&y$.value.length>1),NS=()=>({proxiesTabShow:m$,renderGroups:y$,hasTwoColumns:$ae}),Hae={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},Uae=["onClick"],Wae={key:1,class:"flex flex-col gap-2"},Yae={key:1,class:"w-full sm:hidden"},Xae={class:"shrink-0"},Zae=["label","value"],qae=["value"],jae=["label","value"],_$=qt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=NS(),r=Ye(!1),n=async()=>{if(!r.value){r.value=!0;try{await Promise.all(Wh.value.map(o=>$G(o.name))),await id(),r.value=!1}catch{await id(),r.value=!1}}},i=at(()=>{var o,s;return((o=Xo.value)==null?void 0:o["mode-list"])||((s=Xo.value)==null?void 0:s.modes)||["direct","rule","global"]}),a=o=>{const s=o.target.value;g$({mode:s})};return(o,s)=>q(Xo)?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex flex-col gap-2 p-2 text-sm",o.horizontal&&"flex-row flex-wrap pb-0"))},[q(Wh).length?(oe(),ve(it,{key:0},[q(Wh).length?(oe(),ve("div",Hae,[(oe(!0),ve(it,null,lr(q(hf),l=>(oe(),ve("a",{role:"tab",class:Tt(["tab",{"tab-active":q(t)===l}]),key:l,onClick:u=>t.value=l},Ie(o.$t(l)),11,Uae))),128))])):Ut("",!0),q(t)===q(hf).PROVIDER?(oe(),ve("div",Wae,[X("button",{class:Tt(q(Tr)("btn btn-sm",r.value?"animate-pulse":"")),onClick:n},Ie(o.$t("updateAllProviders")),3)])):Ut("",!0)],64)):Ut("",!0),o.horizontal?(oe(),ve("div",Yae)):Ut("",!0),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",o.horizontal&&"sm:w-auto"))},[X("span",Xae,Ie(o.$t("hideUnavailable"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=l=>vt(o_)?o_.value=l:null)},null,512),[[Ea,q(o_)]]),Qt(X("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[1]||(s[1]=l=>vt(i_)?i_.value=l:null)},[(oe(!0),ve(it,null,lr(Object.values(q(Wl)),l=>(oe(),ve("option",{key:l,label:o.$t(l),value:l},null,8,Zae))),128))],512),[[po,q(i_)]])],2),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",o.horizontal&&"sm:w-auto"))},[X("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:q(Xo).mode,onChange:a},[(oe(!0),ve(it,null,lr(i.value,l=>(oe(),ve("option",{key:l,label:o.$t(l.toLowerCase())||l,value:l},null,8,jae))),128))],40,qae)],2)],2)):Ut("",!0)}}),Lp=Ye(nd.RULES),S$=Ye(),o1=Ye([]),s1=async()=>{const{data:e}=await Cie(),{data:t}=await Tie();S$.value=e.rules,o1.value=Object.values(t.providers)},Kae={role:"tablist",class:"tabs-boxed tabs tabs-sm"},Jae=["onClick"],Qae={key:0,class:"flex flex-col gap-2"},b$=qt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ye(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(o1.value.map(n=>HG(n.name))),await s1(),t.value=!1}catch{await s1(),t.value=!1}}};return(n,i)=>q(o1).length?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row pb-0"))},[X("div",Kae,[(oe(!0),ve(it,null,lr(q(nd),a=>(oe(),ve("a",{role:"tab",class:Tt(["tab",{"tab-active":q(Lp)===a}]),key:a,onClick:o=>Lp.value=a},Ie(n.$t(a)),11,Jae))),128))]),q(Lp)===q(nd).PROVIDER?(oe(),ve("div",Qae,[X("button",{class:Tt(q(Tr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Ie(n.$t("updateAllProviders")),3)])):Ut("",!0)],2)):Ut("",!0)}}),eoe="data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIADAAMAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APXaKKx/EfirRfCdmLjWL1YiwzFAnzTS/wC6vp7nA96ZJsgEkAAknsKCCCQQQR2NfPHiT4wax4jvI7DTFbStMkkCMsb/AL6VScfM46A+i4/Gl8N/GDWPDl5JYamrarpkchRFkf8AfRKDgbXPUD0bP1FIdj6ForH8O+KtE8V2ZudHvVlKjMkD/LNF/vL6e4yPetimIK8D+KniNrf4iajpupWcWpaWscGyCU7XhzChJikHKHPOOVJ6g175Xzl8W7E3PxP1aWSeK3t0jtg0kh7+QnCqOWP0H1wOaQ0YVt4ct9QuYrzw3dtepG6vJYyqFu4lByTtHEgHqmT6qKLnw5b6fcy3niS7aySR2eOxhAa7lUnIJU8RA+r8+imqui3trBr2mwafBjN3EGuZwDI3zj7o6IPpk/7WOKNavbafXdSg1CD7t3KFuYFAkX5z94cBx9cH/axxQM7T4a+I2uPGsGnabZxaZphtrktBEdzykQuQZZD8znPOOFB6AV78hzGpPoK+b/hdYm28f2ksc8Vxbva3QWSNu/kPwynlT9R9MjmvpCP/AFa/QUCY6ue8UeDNF8WwbdUtA0wXEdzFhJo/TDY5Hs2R9K6GimI+edQ+FGt+GvENhd2gOpacl3EWlhQiSJd45dOSB7jI9xUVr8L9X13X768vydM0+S7lKPKhaWYbz/q4+p+pwPevoojPqCOhBwR9DUUVtFE7SKpMjfed2LMfxPNIdzmfDXgjS/D1qYrC0FtvXbLO5D3Ew7hn6KD/AHVwK6wDAAHQUUUxH//Z",toe="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e",l1=new Array(60).fill(0).map((e,t)=>({name:t,value:e})),wM=Ye(0),xM=Ye(0),CM=Ye(0),ep=Ye([...l1]),tp=Ye([...l1]);let Py;const roe=()=>{Py==null||Py(),ep.value=[...l1],tp.value=[...l1];const e=Rie(),t=Sr(e.data,i=>{if(!i)return;const a=JSON.parse(i);wM.value=a.inuse}),r=kie(),n=Sr(r.data,i=>{if(!i)return;const a=JSON.parse(i),o=Date.now().valueOf();xM.value=a.down,CM.value=a.up,ep.value.push({value:a.down,name:o}),tp.value.push({value:a.up,name:o}),ep.value=ep.value.slice(-60),tp.value=tp.value.slice(-60)});Py=()=>{e.close(),t(),r.close(),n()}},noe={class:"flex gap-2"},ioe=["value"],w$=qt({__name:"BackendSwitch",setup(e){const t=at(()=>pf.value.map(n=>({label:`${n.protocol}://${n.host}:${n.port}`,value:n.uuid}))),r=()=>{Fs.value=null};return(n,i)=>(oe(),ve("div",noe,[Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=a=>vt(Fs)?Fs.value=a:null)},[(oe(!0),ve(it,null,lr(t.value,a=>(oe(),ve("option",{key:a.value,value:a.value},Ie(a.label),9,ioe))),128))],512),[[po,q(Fs)]]),X("button",{class:"btn btn-circle btn-xs",onClick:r},[ze(q(a$),{class:"h-4 w-4"})])]))}}),aoe={class:"flex flex-col gap-2 p-2 text-xs"},ooe={class:"grid grid-cols-2 gap-2"},soe={class:"flex gap-1"},loe=["src"],uoe={class:"flex"},coe=qt({__name:"CommonCtrl",setup(e){return(t,r)=>(oe(),ve("div",aoe,[X("div",ooe,[X("div",null,Ie(t.$t("connections"))+": "+Ie(q(Yo).length),1),X("div",null,Ie(t.$t("memoryUsage"))+": "+Ie(q(Wr)(q(wM),{binary:!0})),1),X("div",null,Ie(t.$t("download"))+": "+Ie(q(Wr)(q(n1))),1),X("div",null,Ie(t.$t("dlSpeed"))+": "+Ie(q(Wr)(q(xM)))+"/s",1),X("div",null,Ie(t.$t("upload"))+": "+Ie(q(Wr)(q(i1))),1),X("div",null,Ie(t.$t("ulSpeed"))+": "+Ie(q(Wr)(q(CM)))+"/s",1)]),X("div",soe,[Xt(Ie(t.$t("version"))+": ",1),X("img",{src:q(Vc)?q(toe):q(eoe),class:"w-4 rounded-sm"},null,8,loe),Xt(" "+Ie(q(gM)),1)]),X("div",uoe,[ze(w$,{class:"flex-1"}),X("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:r[0]||(r[0]=n=>Kc.value=!0)},[ze(q(jie),{class:"h-5 w-5"})])])]))}});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var DA=function(e,t){return DA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},DA(e,t)};function Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");DA(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var foe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),hoe=function(){function e(){this.browser=new foe,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}(),At=new hoe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(At.wxa=!0,At.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?At.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(At.node=!0,At.svgSupported=!0):doe(navigator.userAgent,At);function doe(e,t){var r=t.browser,n=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);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var TM=12,x$="sans-serif",gu=TM+"px "+x$,voe=20,poe=100,goe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function moe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-voe)/poe;t[n]=i}return t}var yoe=moe(goe),mu={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=mu.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||gu),e.measureText(r);r=r||"",n=n||gu;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||TM,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=yoe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},C$=is(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),T$=is(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ad=Object.prototype.toString,FS=Array.prototype,_oe=FS.forEach,Soe=FS.filter,AM=FS.slice,boe=FS.map,Ak=(function(){}).constructor,Ey=Ak?Ak.prototype:null,DM="__proto__",woe=2311;function A$(){return woe++}function MM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Je(e){if(e==null||typeof e!="object")return e;var t=e,r=Ad.call(e);if(r==="[object Array]"){if(!Pp(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Je(e[n])}}else if(T$[r]){if(!Pp(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!C$[r]&&!Pp(e)&&!ad(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==DM&&(t[o]=Je(e[o]))}return t}function ft(e,t,r){if(!Ke(t)||!Ke(e))return r?Je(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==DM){var i=e[n],a=t[n];Ke(a)&&Ke(i)&&!Se(a)&&!Se(i)&&!ad(a)&&!ad(i)&&!Dk(a)&&!Dk(i)&&!Pp(a)&&!Pp(i)?ft(i,a,r):(r||!(n in e))&&(e[n]=Je(t[n]))}return e}function IM(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=ft(r,e[n],t);return r}function de(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==DM&&(e[r]=t[r]);return e}function qe(e,t,r){for(var n=Mt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function St(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function xoe(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function dn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else qe(e,t,r)}function ii(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function E(e,t,r){if(e&&t)if(e.forEach&&e.forEach===_oe)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function we(e,t,r){if(!e)return[];if(!t)return LM(e);if(e.map&&e.map===boe)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function is(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function sr(e,t,r){if(!e)return[];if(!t)return LM(e);if(e.filter&&e.filter===Soe)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Coe(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Mt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Toe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(AM.call(arguments)))}}var Fe=Ey&&Xe(Ey.bind)?Ey.call.bind(Ey.bind):Toe;function st(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(AM.call(arguments)))}}function Se(e){return Array.isArray?Array.isArray(e):Ad.call(e)==="[object Array]"}function Xe(e){return typeof e=="function"}function Ne(e){return typeof e=="string"}function MA(e){return Ad.call(e)==="[object String]"}function $t(e){return typeof e=="number"}function Ke(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Dk(e){return!!C$[Ad.call(e)]}function Hi(e){return!!T$[Ad.call(e)]}function ad(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function BS(e){return e.colorStops!=null}function Aoe(e){return e.image!=null}function Doe(e){return Ad.call(e)==="[object RegExp]"}function fg(e){return e!==e}function On(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ot(e,t){return e??t}function Qo(e,t,r){return e??t??r}function LM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return AM.apply(e,t)}function PM(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 wi(e,t){if(!e)throw new Error(t)}function uo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var D$="__ec_primitive__";function u1(e){e[D$]=!0}function Pp(e){return e[D$]}var Moe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Mt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),M$=typeof Map=="function";function Ioe(){return M$?new Map:new Moe}var Loe=function(){function e(t){var r=Se(t);this.data=Ioe();var n=this;t instanceof e?t.each(i):t&&E(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return M$?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function He(e){return new Loe(e)}function c1(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function VS(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&de(r,t),r}function I$(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ve(e,t){return e.hasOwnProperty(t)}function rn(){}var m_=180/Math.PI;function Df(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function pi(e,t){return e[0]=t[0],e[1]=t[1],e}function Hs(e){return[e[0],e[1]]}function Poe(e,t,r){return e[0]=t,e[1]=r,e}function Mk(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function IA(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function zc(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function LA(e){return Math.sqrt(Eoe(e))}function Eoe(e){return e[0]*e[0]+e[1]*e[1]}function y_(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Dd(e,t){var r=LA(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function PA(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var jl=PA;function Roe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ef=Roe;function __(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Un(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Kl(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Jl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var th=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),koe=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new th(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new th(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new th(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new th(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new th(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new th(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ya=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Ooe=Math.log(2);function EA(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Ooe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(f+=(d%2?-1:1)*e[r][h]*EA(e,t-1,c,u,i|v,a),d++)}return a[o]=f,f}function Ik(e,t){var r=[[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]]],n={},i=EA(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*EA(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var Lk="___zrEVENTSAVED",lx=[];function Noe(e,t,r,n,i){return RA(lx,t,n,i,!0)&&RA(e,r,lx[0],lx[1])}function RA(e,t,r,n,i){if(t.getBoundingClientRect&&At.domSupported&&!L$(t)){var a=t[Lk]||(t[Lk]={}),o=Foe(t,a),s=Boe(o,a,i);if(s)return s(e,r,n),!0}return!1}function Foe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Boe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Ik(s,o):Ik(o,s))}function L$(e){return e.nodeName.toUpperCase()==="CANVAS"}var Voe=/([&<>"'])/g,zoe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bi(e){return e==null?"":(e+"").replace(Voe,function(t,r){return zoe[r]})}var Goe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ux=[],$oe=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function kA(e,t,r,n){return r=r||{},n?Pk(e,t,r):$oe&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Pk(e,t,r),r}function Pk(e,t,r){if(At.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(L$(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(RA(ux,e,n,i)){r.zrX=ux[0],r.zrY=ux[1];return}}r.zrX=r.zrY=0}function EM(e){return e||window.event}function Ia(e,t,r){if(t=EM(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&kA(e,o,t,r)}else{kA(e,t,t,r);var a=Hoe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Goe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Hoe(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function OA(e,t,r,n){e.addEventListener(t,r,n)}function Uoe(e,t,r,n){e.removeEventListener(t,r,n)}var js=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Ek(e){return e.which===2||e.which===3}var Woe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=kA(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in cx)if(cx.hasOwnProperty(r)){var n=cx[r](this._track,t);if(n)return n}},e}();function Rk(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Yoe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var cx={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Rk(n)/Rk(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Yoe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ca(){return[1,0,0,1,0,0]}function zS(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function RM(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 Us(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function as(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Mf(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function kM(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Md(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Xoe(e){var t=ca();return RM(t,e),t}var ut=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Ry=Math.min,ky=Math.max,Yu=new ut,Xu=new ut,Zu=new ut,qu=new ut,dv=new ut,vv=new ut,ht=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Ry(t.x,this.x),n=Ry(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ky(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ky(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=ca();return as(a,a,[-r.x,-r.y]),kM(a,a,[n,i]),as(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,h=!(a<l||u<i||s<c||f<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),m=Math.abs(u-i),y=Math.abs(s-c),S=Math.abs(f-o),b=Math.min(p,m),w=Math.min(y,S);a<l||u<i?b>v&&(v=b,p<m?ut.set(vv,-p,0):ut.set(vv,m,0)):b<d&&(d=b,p<m?ut.set(dv,p,0):ut.set(dv,-m,0)),s<c||f<o?w>v&&(v=w,y<S?ut.set(vv,0,-y):ut.set(vv,0,S)):b<d&&(d=b,y<S?ut.set(dv,0,y):ut.set(dv,0,-S))}return r&&ut.copy(r,h?dv:vv),h},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=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(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.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}Yu.x=Zu.x=r.x,Yu.y=qu.y=r.y,Xu.x=qu.x=r.x+r.width,Xu.y=Zu.y=r.y+r.height,Yu.transform(n),qu.transform(n),Xu.transform(n),Zu.transform(n),t.x=Ry(Yu.x,Xu.x,Zu.x,qu.x),t.y=Ry(Yu.y,Xu.y,Zu.y,qu.y);var l=ky(Yu.x,Xu.x,Zu.x,qu.x),u=ky(Yu.y,Xu.y,Zu.y,qu.y);t.width=l-t.x,t.height=u-t.y},e}(),P$="silent";function Zoe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:qoe}}function qoe(){js(this.event)}var joe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ya),pv=function(){function e(t,r){this.x=t,this.y=r}return e}(),Koe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fx=new ht(0,0,0,0),E$=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new pv(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new joe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new koe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(E(Koe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=R$(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new pv(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new pv(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Zoe(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new pv(r,n);if(kk(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ht(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(fx.copy(h.getBoundingRect()),h.transform&&fx.applyTransform(h.transform),fx.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,m=0;m<u;m+=d)for(var y=0;y<p;y+=v){var S=r+m*Math.cos(y),b=n+m*Math.sin(y);if(kk(s,o,S,b,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Woe);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new pv;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ya);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){E$.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=R$(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),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||jl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Joe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?P$:!0}return!1}function kk(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Joe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==P$)){t.target=o;break}}}function R$(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var k$=32,gv=7;function Qoe(e){for(var t=0;e>=k$;)t|=e&1,e>>=1;return e+t}function Ok(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;ese(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function ese(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Nk(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){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(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function hx(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function dx(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function tse(e,t){var r=gv,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var v=n[d],p=i[d],m=n[d+1],y=i[d+1];i[d]=p+y,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var S=dx(e[m],e,v,p,0,t);v+=S,p-=S,p!==0&&(y=hx(e[v+p-1],e,m,y,y-1,t),y!==0&&(p<=y?f(v,p,m,y):h(v,p,m,y)))}function f(d,v,p,m){var y=0;for(y=0;y<v;y++)o[y]=e[d+y];var S=0,b=p,w=d;if(e[w++]=e[b++],--m===0){for(y=0;y<v;y++)e[w+y]=o[S+y];return}if(v===1){for(y=0;y<m;y++)e[w+y]=e[b+y];e[w+m]=o[S];return}for(var C=r,x,A,D;;){x=0,A=0,D=!1;do if(t(e[b],o[S])<0){if(e[w++]=e[b++],A++,x=0,--m===0){D=!0;break}}else if(e[w++]=o[S++],x++,A=0,--v===1){D=!0;break}while((x|A)<C);if(D)break;do{if(x=dx(e[b],o,S,v,0,t),x!==0){for(y=0;y<x;y++)e[w+y]=o[S+y];if(w+=x,S+=x,v-=x,v<=1){D=!0;break}}if(e[w++]=e[b++],--m===0){D=!0;break}if(A=hx(o[S],e,b,m,0,t),A!==0){for(y=0;y<A;y++)e[w+y]=e[b+y];if(w+=A,b+=A,m-=A,m===0){D=!0;break}}if(e[w++]=o[S++],--v===1){D=!0;break}C--}while(x>=gv||A>=gv);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),v===1){for(y=0;y<m;y++)e[w+y]=e[b+y];e[w+m]=o[S]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[w+y]=o[S+y]}}function h(d,v,p,m){var y=0;for(y=0;y<m;y++)o[y]=e[p+y];var S=d+v-1,b=m-1,w=p+m-1,C=0,x=0;if(e[w--]=e[S--],--v===0){for(C=w-(m-1),y=0;y<m;y++)e[C+y]=o[y];return}if(m===1){for(w-=v,S-=v,x=w+1,C=S+1,y=v-1;y>=0;y--)e[x+y]=e[C+y];e[w]=o[b];return}for(var A=r;;){var D=0,M=0,I=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],D++,M=0,--v===0){I=!0;break}}else if(e[w--]=o[b--],M++,D=0,--m===1){I=!0;break}while((D|M)<A);if(I)break;do{if(D=v-dx(o[b],e,d,v,v-1,t),D!==0){for(w-=D,S-=D,v-=D,x=w+1,C=S+1,y=D-1;y>=0;y--)e[x+y]=e[C+y];if(v===0){I=!0;break}}if(e[w--]=o[b--],--m===1){I=!0;break}if(M=m-hx(e[S],o,0,m,m-1,t),M!==0){for(w-=M,b-=M,m-=M,x=w+1,C=b+1,y=0;y<M;y++)e[x+y]=o[C+y];if(m<=1){I=!0;break}}if(e[w--]=e[S--],--v===0){I=!0;break}A--}while(D>=gv||M>=gv);if(I)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(w-=v,S-=v,x=w+1,C=S+1,y=v-1;y>=0;y--)e[x+y]=e[C+y];e[w]=o[b]}else{if(m===0)throw new Error;for(C=w-(m-1),y=0;y<m;y++)e[C+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function S_(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<k$){a=Ok(e,r,n,t),Nk(e,r,n,r+a,t);return}var o=tse(e,t),s=Qoe(i);do{if(a=Ok(e,r,n,t),a<s){var l=i;l>s&&(l=s),Nk(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var na=1,rp=2,Th=4,Fk=!1;function vx(){Fk||(Fk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rse=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bk}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,S_(n,Bk)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=na),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(vx(),c.z=0),isNaN(c.z2)&&(vx(),c.z2=0),isNaN(c.zlevel)&&(vx(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=St(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),f1;f1=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ep={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:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ep.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?Ep.bounceIn(e*2)*.5:Ep.bounceOut(e*2-1)*.5+.5}},Oy=Math.pow,lu=Math.sqrt,h1=1e-8,O$=1e-4,Vk=lu(3),Ny=1/3,Ho=Df(),Oa=Df(),Zh=Df();function Ql(e){return e>-h1&&e<h1}function N$(e){return e>h1||e<-h1}function wn(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function zk(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function d1(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Ql(c)&&Ql(f))if(Ql(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=f*f-4*c*h;if(Ql(p)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y)}else if(p>0){var S=lu(p),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-Oy(-b,Ny):b=Oy(b,Ny),w<0?w=-Oy(-w,Ny):w=Oy(w,Ny);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var C=(2*c*s-3*o*f)/(2*lu(c*c*c)),x=Math.acos(C)/3,A=lu(c),D=Math.cos(x),v=(-s-2*A*D)/(3*o),y=(-s+A*(D+Vk*Math.sin(x)))/(3*o),M=(-s+A*(D-Vk*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y),M>=0&&M<=1&&(a[d++]=M)}}return d}function F$(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ql(o)){if(N$(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ql(c))i[0]=-a/(2*o);else if(c>0){var f=lu(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function yu(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function B$(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,v,p,m,y;Ho[0]=l,Ho[1]=u;for(var S=0;S<1;S+=.05)Oa[0]=wn(e,r,i,o,S),Oa[1]=wn(t,n,a,s,S),m=ef(Ho,Oa),m<d&&(f=S,d=m);d=1/0;for(var b=0;b<32&&!(h<O$);b++)v=f-h,p=f+h,Oa[0]=wn(e,r,i,o,v),Oa[1]=wn(t,n,a,s,v),m=ef(Oa,Ho),v>=0&&m<d?(f=v,d=m):(Zh[0]=wn(e,r,i,o,p),Zh[1]=wn(t,n,a,s,p),y=ef(Zh,Ho),p<=1&&y<d?(f=p,d=y):h*=.5);return c&&(c[0]=wn(e,r,i,o,f),c[1]=wn(t,n,a,s,f)),lu(d)}function nse(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=wn(e,r,i,o,v),m=wn(t,n,a,s,v),y=p-u,S=m-c;f+=Math.sqrt(y*y+S*S),u=p,c=m}return f}function Rn(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function NA(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function ise(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ql(a)){if(N$(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ql(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=lu(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function V$(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hg(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function z$(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Ho[0]=o,Ho[1]=s;for(var h=0;h<1;h+=.05){Oa[0]=Rn(e,r,i,h),Oa[1]=Rn(t,n,a,h);var d=ef(Ho,Oa);d<f&&(u=h,f=d)}f=1/0;for(var v=0;v<32&&!(c<O$);v++){var p=u-c,m=u+c;Oa[0]=Rn(e,r,i,p),Oa[1]=Rn(t,n,a,p);var d=ef(Oa,Ho);if(p>=0&&d<f)u=p,f=d;else{Zh[0]=Rn(e,r,i,m),Zh[1]=Rn(t,n,a,m);var y=ef(Zh,Ho);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Rn(e,r,i,u),l[1]=Rn(t,n,a,u)),lu(f)}function ase(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=Rn(e,r,i,h),v=Rn(t,n,a,h),p=d-s,m=v-l;u+=Math.sqrt(p*p+m*m),s=d,l=v}return u}var ose=/cubic-bezier\(([0-9,\.e ]+)\)/;function OM(e){var t=e&&ose.exec(e);if(t){var r=t[1].split(","),n=+uo(r[0]),i=+uo(r[1]),a=+uo(r[2]),o=+uo(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:d1(0,n,a,1,l,s)&&wn(0,i,o,1,s[0])}}}var sse=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rn,this.ondestroy=t.ondestroy||rn,this.onrestart=t.onrestart||rn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,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(t){this.easing=t,this.easingFunc=Xe(t)?t:Ep[t]||OM(t)},e}(),G$=function(){function e(t){this.value=t}return e}(),lse=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new G$(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Qg=function(){function e(t){this._list=new lse,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new G$(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Gk={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 go(e){return e=Math.round(e),e<0?0:e>255?255:e}function use(e){return e=Math.round(e),e<0?0:e>360?360:e}function dg(e){return e<0?0:e>1?1:e}function px(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?go(parseFloat(t)/100*255):go(parseInt(t,10))}function tf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?dg(parseFloat(t)/100):dg(parseFloat(t))}function gx(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function eu(e,t,r){return e+(t-e)*r}function Ma(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function FA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $$=new Qg(20),Fy=null;function rh(e,t){Fy&&FA(Fy,t),Fy=$$.put(e,Fy||t.slice())}function fa(e,t){if(e){t=t||[];var r=$$.get(e);if(r)return FA(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Gk)return FA(t,Gk[n]),rh(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Ma(t,0,0,0,1);return}return Ma(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),rh(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ma(t,0,0,0,1);return}return Ma(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),rh(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ma(t,+u[0],+u[1],+u[2],1):Ma(t,0,0,0,1);c=tf(u.pop());case"rgb":if(u.length>=3)return Ma(t,px(u[0]),px(u[1]),px(u[2]),u.length===3?c:tf(u[3])),rh(e,t),t;Ma(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ma(t,0,0,0,1);return}return u[3]=tf(u[3]),BA(u,t),rh(e,t),t;case"hsl":if(u.length!==3){Ma(t,0,0,0,1);return}return BA(u,t),rh(e,t),t;default:return}}Ma(t,0,0,0,1)}}function BA(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tf(e[1]),i=tf(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Ma(t,go(gx(o,a,r+1/3)*255),go(gx(o,a,r)*255),go(gx(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cse(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function VA(e,t){var r=fa(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ws(r,r.length===4?"rgba":"rgb")}}function mx(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=go(eu(o[0],s[0],l)),r[1]=go(eu(o[1],s[1],l)),r[2]=go(eu(o[2],s[2],l)),r[3]=dg(eu(o[3],s[3],l)),r}}function fse(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=fa(t[i]),s=fa(t[a]),l=n-i,u=Ws([go(eu(o[0],s[0],l)),go(eu(o[1],s[1],l)),go(eu(o[2],s[2],l)),dg(eu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Rp(e,t,r,n){var i=fa(e);if(e)return i=cse(i),t!=null&&(i[0]=use(t)),r!=null&&(i[1]=tf(r)),n!=null&&(i[2]=tf(n)),Ws(BA(i),"rgba")}function v1(e,t){var r=fa(e);if(r&&t!=null)return r[3]=dg(t),Ws(r,"rgba")}function Ws(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function p1(e,t){var r=fa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var $k=new Qg(100);function zA(e){if(Ne(e)){var t=$k.get(e);return t||(t=VA(e,-.1),$k.put(e,t)),t}else if(BS(e)){var r=de({},e);return r.colorStops=we(e.colorStops,function(n){return{offset:n.offset,color:VA(n.color,-.1)}}),r}return e}var g1=Math.round;function vg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=fa(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Hk=1e-4;function tu(e){return e<Hk&&e>-Hk}function By(e){return g1(e*1e3)/1e3}function GA(e){return g1(e*1e4)/1e4}function hse(e){return"matrix("+By(e[0])+","+By(e[1])+","+By(e[2])+","+By(e[3])+","+GA(e[4])+","+GA(e[5])+")"}var dse={left:"start",right:"end",center:"middle",middle:"middle"};function vse(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function pse(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function gse(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function H$(e){return e&&!!e.image}function mse(e){return e&&!!e.svgElement}function NM(e){return H$(e)||mse(e)}function U$(e){return e.type==="linear"}function W$(e){return e.type==="radial"}function Y$(e){return e&&(e.type==="linear"||e.type==="radial")}function GS(e){return"url(#"+e+")"}function X$(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Z$(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*m_,i=ot(e.scaleX,1),a=ot(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+g1(o*m_)+"deg, "+g1(s*m_)+"deg)"),l.join(" ")}var yse=function(){return At.hasGlobalWindow&&Xe(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}}(),$A=Array.prototype.slice;function Ps(e,t,r){return(t-e)*r+e}function yx(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Ps(t[a],r[a],n);return e}function _se(e,t,r,n){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]=Ps(t[o][s],r[o][s],n)}return e}function Vy(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Uk(e,t,r,n){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]+r[o][s]*n}return e}function Sse(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function bse(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:$A.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function kp(e){if(ii(e)){var t=e.length;if(ii(e[0])){for(var r=[],n=0;n<t;n++)r.push($A.call(e[n]));return r}return $A.call(e)}return e}function b_(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 wse(e){return ii(e&&e[0])?2:1}var zy=0,w_=1,q$=2,np=3,HA=4,UA=5,Wk=6;function Yk(e){return e===HA||e===UA}function Gy(e){return e===w_||e===q$}var mv=[0,0,0,0],xse=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Wk,l=r;if(ii(r)){var u=wse(r);s=u,(u===1&&!$t(r[0])||u===2&&!$t(r[0][0]))&&(o=!0)}else if($t(r)&&!fg(r))s=zy;else if(Ne(r))if(!isNaN(+r))s=zy;else{var c=fa(r);c&&(l=c,s=np)}else if(BS(r)){var f=de({},l);f.colorStops=we(r.colorStops,function(d){return{offset:d.offset,color:fa(d.color)}}),U$(r)?s=HA:W$(r)&&(s=UA),l=f}a===0?this.valType=s:(s!==this.valType||s===Wk)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Xe(n)?n:Ep[n]||OM(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Gy(i),u=Yk(i),c=0;c<a;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/t,s||(l&&c!==a-1?bse(h,d,i):u&&Sse(h.colorStops,d.colorStops))}if(!s&&i!==UA&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===zy?n[c].additiveValue=n[c].value-v:i===np?n[c].additiveValue=Vy([],n[c].value,v,-1):Gy(i)&&(n[c].additiveValue=i===w_?Vy([],n[c].value,v,-1):Uk([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===np,c,f=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=h(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=h(c-1,s-2)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-d.percent,y=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var S=n?this._additiveValue:u?mv:t[l];if((Gy(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:v.rawValue;else if(Gy(a))a===w_?yx(S,d[i],v[i],y):_se(S,d[i],v[i],y);else if(Yk(a)){var b=d[i],w=v[i],C=a===HA;t[l]={type:C?"linear":"radial",x:Ps(b.x,w.x,y),y:Ps(b.y,w.y,y),colorStops:we(b.colorStops,function(A,D){var M=w.colorStops[D];return{offset:Ps(A.offset,M.offset,y),color:b_(yx([],A.color,M.color,y))}}),global:w.global},C?(t[l].x2=Ps(b.x2,w.x2,y),t[l].y2=Ps(b.y2,w.y2,y)):t[l].r=Ps(b.r,w.r,y)}else if(u)yx(S,d[i],v[i],y),n||(t[l]=b_(S));else{var x=Ps(d[i],v[i],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===zy?t[n]=t[n]+i:r===np?(fa(t[n],mv),Vy(mv,mv,i,1),t[n]=b_(mv)):r===w_?Vy(t[n],t[n],i,1):r===q$&&Uk(t[n],t[n],i,1)},e}(),FM=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){MM("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new xse(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===np&&u&&(u=b_(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,kp(u),i),this._trackKeys.push(s)}l.addKeyframe(t,kp(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new sse({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,m=0;m<v.length;m++)if(v[m]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,d);var y=r._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return we(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=kp(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Mt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Rh(){return new Date().getTime()}var Cse=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Rh()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(f1(n),!r._paused&&r.update())}f1(n)},t.prototype.start=function(){this._running||(this._time=Rh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Rh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Rh()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new FM(r,n.loop);return this.addAnimator(i),i},t}(Ya),Tse=300,_x=At.domSupported,Sx=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=we(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Xk={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zk=!1;function WA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Ase(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 bx(e){e&&(e.zrByTouch=!0)}function Dse(e,t){return Ia(e.dom,new Mse(e,t),!0)}function j$(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Mse=function(){function e(t,r){this.stopPropagation=rn,this.stopImmediatePropagation=rn,this.preventDefault=rn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),io={mousedown:function(e){e=Ia(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ia(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=Ia(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ia(this.dom,e);var t=e.toElement||e.relatedTarget;j$(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Zk=!0,e=Ia(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Zk||(e=Ia(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ia(this.dom,e),bx(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),io.mousemove.call(this,e),io.mousedown.call(this,e)},touchmove:function(e){e=Ia(this.dom,e),bx(e),this.handler.processGesture(e,"change"),io.mousemove.call(this,e)},touchend:function(e){e=Ia(this.dom,e),bx(e),this.handler.processGesture(e,"end"),io.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Tse&&io.click.call(this,e)},pointerdown:function(e){io.mousedown.call(this,e)},pointermove:function(e){WA(e)||io.mousemove.call(this,e)},pointerup:function(e){io.mouseup.call(this,e)},pointerout:function(e){WA(e)||io.mouseout.call(this,e)}};E(["click","dblclick","contextmenu"],function(e){io[e]=function(t){t=Ia(this.dom,t),this.trigger(e,t)}});var YA={pointermove:function(e){WA(e)||YA.mousemove.call(this,e)},pointerup:function(e){YA.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 Ise(e,t){var r=t.domHandlers;At.pointerEventsSupported?E(Sx.pointer,function(n){x_(t,n,function(i){r[n].call(e,i)})}):(At.touchEventsSupported&&E(Sx.touch,function(n){x_(t,n,function(i){r[n].call(e,i),Ase(t)})}),E(Sx.mouse,function(n){x_(t,n,function(i){i=EM(i),t.touching||r[n].call(e,i)})}))}function Lse(e,t){At.pointerEventsSupported?E(Xk.pointer,r):At.touchEventsSupported||E(Xk.mouse,r);function r(n){function i(a){a=EM(a),j$(e,a.target)||(a=Dse(e,a),t.domHandlers[n].call(e,a))}x_(t,n,i,{capture:!0})}}function x_(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,OA(e.domTarget,t,r,n)}function xx(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Uoe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var qk=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Pse=function(e){Q(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new qk(r,io),_x&&(i._globalHandlerScope=new qk(document,YA)),Ise(i,i._localHandlerScope),i}return t.prototype.dispose=function(){xx(this._localHandlerScope),_x&&xx(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,_x&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Lse(this,n):xx(n)}},t}(Ya),K$=1;At.hasGlobalWindow&&(K$=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var m1=K$,XA=.4,ZA="#333",qA="#ccc",Ese="#eee",jk=zS,Kk=5e-5;function ju(e){return e>Kk||e<-Kk}var Ku=[],nh=[],Cx=ca(),Tx=Math.abs,Bs=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ju(this.rotation)||ju(this.x)||ju(this.y)||ju(this.scaleX-1)||ju(this.scaleY-1)||ju(this.skewX)||ju(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(jk(n),this.invTransform=null);return}n=n||ca(),r?this.getLocalTransform(n):jk(n),t&&(r?Us(n,t,n):RM(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ku);var n=Ku[0]<0?-1:1,i=Ku[1]<0?-1:1,a=((Ku[0]-n)*r+n)/Ku[0]||0,o=((Ku[1]-i)*r+i)/Ku[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ca(),Md(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ca(),Us(nh,t.invTransform,r),r=nh);var n=this.originX,i=this.originY;(n||i)&&(Cx[4]=n,Cx[5]=i,Us(nh,r,Cx),nh[4]-=n,nh[5]-=i,r=nh),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Tx(t[0]-1)>1e-10&&Tx(t[3]-1)>1e-10?Math.sqrt(Tx(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){J$(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Mf(r,r,u),r[4]+=n+c,r[5]+=i+f,r},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}(),os=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function J$(e,t){for(var r=0;r<os.length;r++){var n=os[r];e[n]=t[n]}}var Jk={};function ha(e,t){t=t||gu;var r=Jk[t];r||(r=Jk[t]=new Qg(500));var n=r.get(e);return n==null&&(n=mu.measureText(e,t).width,r.put(e,n)),n}function Qk(e,t,r,n){var i=ha(e,t),a=$S(t),o=ip(0,i,r),s=Ah(0,a,n),l=new ht(o,s,i,a);return l}function em(e,t,r,n){var i=((e||"")+"").split(`
|
||
`),a=i.length;if(a===1)return Qk(i[0],t,r,n);for(var o=new ht(0,0,0,0),s=0;s<i.length;s++){var l=Qk(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function ip(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ah(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function $S(e){return ha("国",e)}function bo(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function y1(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=bo(n[0],r.width),u+=bo(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Ax="__zr_normal__",Dx=os.concat(["ignore"]),Rse=is(os,function(e,t){return e[t]=!0,e},{ignore:!1}),ih={},kse=new ht(0,0,0,0),HS=function(){function e(t){this.id=A$(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=kse;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ih,n,c):y1(ih,n,c),a.x=ih.x,a.y=ih.y,o=ih.align,s=ih.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=bo(f[0],c.width),d=bo(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+d+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,S=void 0,b=void 0;p&&this.canBeInsideText()?(y=n.insideFill,S=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(y),b=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=na,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qA:ZA},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&fa(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ws(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},de(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ke(t))for(var n=t,i=Mt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Ax)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Dx)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Ax,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Ax,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){MM("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,r,n,c),h&&h.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=St(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=St(i,t),o=St(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];de(r,a),a.textConfig&&(n=n||{},de(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=de({},i?this.textConfig:n.textConfig),de(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Dx.length;c++){var f=Dx[c],h=a&&Rse[f];r&&r[f]!=null?h?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Bs,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),de(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=na;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new FM(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=St(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Mx(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Mx(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Mx(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},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=na;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();dn(HS,Ya);dn(HS,Bs);function Mx(e,t,r,n,i){r=r||{};var a=[];Q$(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var h=0;h<a.length;h++){var d=a[h];c&&d.done(c),f&&d.aborted(f),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Ix(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Ose(e){return ii(e[0])}function Nse(e,t,r){if(ii(t[r]))if(ii(e[r])||(e[r]=[]),Hi(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Ix(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(Ose(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Ix(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Ix(a,i,o);a.length=i.length}else e[r]=t[r]}function Fse(e,t){return e===t||ii(e)&&ii(t)&&Bse(e,t)}function Bse(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Q$(e,t,r,n,i,a,o,s){for(var l=Mt(n),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!Ke(a),v=e.animators,p=[],m=0;m<l.length;m++){var y=l[m],S=n[y];if(S!=null&&r[y]!=null&&(d||a[y]))if(Ke(S)&&!ii(S)&&!BS(S)){if(t){s||(r[y]=S,e.updateDuringAnimation(t));continue}Q$(e,y,r[y],S,i,a&&a[y],o,s)}else p.push(y);else s||(r[y]=S,e.updateDuringAnimation(t),p.push(y))}var b=p.length;if(!f&&b)for(var w=0;w<v.length;w++){var C=v[w];if(C.targetName===t){var x=C.stopTracks(p);if(x){var A=St(v,C);v.splice(A,1)}}}if(i.force||(p=sr(p,function(P){return!Fse(n[P],r[P])}),b=p.length),b>0||i.force&&!o.length){var D=void 0,M=void 0,I=void 0;if(s){M={},h&&(D={});for(var w=0;w<b;w++){var y=p[w];M[y]=r[y],h?D[y]=n[y]:r[y]=n[y]}}else if(h){I={};for(var w=0;w<b;w++){var y=p[w];I[y]=kp(r[y]),Nse(r,n,y)}}var C=new FM(r,!1,!1,f?sr(v,function(R){return R.targetName===t}):null);C.targetName=t,i.scope&&(C.scope=i.scope),h&&D&&C.whenWithKeys(0,D,p),I&&C.whenWithKeys(0,I,p),C.whenWithKeys(u??500,s?M:n,p).delay(c||0),e.addAnimator(C,t),o.push(C)}}var et=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=St(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=St(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ht(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(ht.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(HS);et.prototype.type="group";/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var C_={},eH={};function Vse(e){delete eH[e]}function zse(e){if(!e)return!1;if(typeof e=="string")return p1(e,1)<XA;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=p1(t[i].color,1);return r/=n,r<XA}return!1}var Gse=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new rse,o=n.renderer||"canvas";C_[o]||(o=Mt(C_)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new C_[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!At.node&&!At.worker&&!l?new Pse(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?At.touchEventsSupported:!!c,h=44,d;f&&(d=ot(n.pointerSize,h)),this.handler=new E$(a,s,u,s.root,d),this.animation=new Cse({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=zse(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||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(t){var r,n=Rh();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Rh();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof et&&t[r].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,Vse(this.id))},e}();function eO(e,t){var r=new Gse(A$(),e,t);return eH[r.id]=r,r}function $se(e,t){C_[e]=t}var jA;function Hse(e){if(typeof jA=="function")return jA(e)}function Use(e){jA=e}var tO=1e-4,tH=20;function Wse(e){return e.replace(/^\s+|\s+$/g,"")}function ir(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ee(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 Ne(e)?Wse(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function qr(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),tH),e=(+e).toFixed(t),r?e:+e}function za(e){return e.sort(function(t,r){return t-r}),e}function Zo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Yse(e)}function Yse(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function rH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Xse(e,t){var r=is(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=we(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=we(i,function(d){return Math.floor(d)}),s=is(o,function(d,v){return d+v},0),l=we(i,function(d,v){return d-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return we(o,function(d){return d/n})}function Zse(e,t){var r=Math.max(Zo(e),Zo(t)),n=e+t;return r>tH?n:qr(n,r)}var rO=9007199254740991;function nH(e){var t=Math.PI*2;return(e%t+t)%t}function pg(e){return e>-tO&&e<tO}var qse=/^(?:(\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 ss(e){if(e instanceof Date)return e;if(Ne(e)){var t=qse.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(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 jse(e){return Math.pow(10,BM(e))}function BM(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function iH(e,t){var r=BM(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Lx(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function nO(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ks(e){var t=parseFloat(e);return t==e&&(t!==0||!Ne(e)||e.indexOf("x")<=0)?t:NaN}function aH(e){return!isNaN(Ks(e))}function oH(){return Math.round(Math.random()*9)}function sH(e,t){return t===0?e:sH(t,e%t)}function iO(e,t){return e==null?t:t==null?e:e*t/sH(e,t)}function tr(e){throw new Error(e)}function aO(e,t,r){return(t-e)*r+e}var lH="series\0",uH="\0_ec_\0";function cr(e){return e instanceof Array?e:e==null?[]:[e]}function mf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var oO=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Id(e){return Ke(e)&&!Se(e)&&!(e instanceof Date)?e.value:e}function Kse(e){return Ke(e)&&!(e instanceof Array)}function cH(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=He();E(t,function(l,u){if(!Ke(l)){t[u]=null;return}});var s=Jse(e,o,r);return(n||i)&&Qse(s,e,o,t),n&&ele(s,t),n||i?tle(s,t,i):a&&rle(s,t),nle(s),s}function Jse(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||gg(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Qse(e,t,r,n){E(n,function(i,a){if(!(!i||i.id==null)){var o=Op(i.id),s=r.get(o);if(s!=null){var l=e[s];wi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function ele(e,t){E(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!gg(r)&&!gg(a)&&fH("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function tle(e,t,r){E(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||gg(i.existing)||i.existing&&n.id!=null&&!fH("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function rle(e,t){E(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function nle(e){var t=He();E(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),E(e,function(r){var n=r.newOption;wi(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),E(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ke(a)){if(o.name=a.name!=null?Op(a.name):i?i.name:lH+n,i)o.id=Op(i.id);else if(a.id!=null)o.id=Op(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function fH(e,t,r){var n=mn(t[e],null),i=mn(r[e],null);return n!=null&&i!=null&&n===i}function Op(e){return mn(e,"")}function mn(e,t){return e==null?t:Ne(e)?e:$t(e)||MA(e)?e+"":t}function VM(e){var t=e.name;return!!(t&&t.indexOf(lH))}function gg(e){return e&&e.id!=null&&Op(e.id).indexOf(uH)===0}function ile(e){return uH+e}function ale(e,t,r){E(e,function(n){var i=n.newOption;Ke(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=ole(t,i,n.existing,r))})}function ole(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function sle(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=mn(o[u].seriesId,null);if(f==null)return;for(var h=cr(o[u].dataIndex),d=l&&l[f],v=0,p=h.length;v<p;v++){var m=h[v];d&&d[m]?d[m]=null:(s[f]||(s[f]={}))[m]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function yf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Se(t.dataIndex)?we(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Se(t.name)?we(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Nt(){var e="__ec_inner_"+lle++;return function(t){return t[e]||(t[e]={})}}var lle=oH();function Np(e,t,r){var n=zM(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=tm(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function zM(e,t){var r;if(Ne(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=He(),a={},o=!1;return E(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&St(t.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var cn={useDefault:!0,enableAll:!1,enableNone:!1},ule={useDefault:!1,enableAll:!0,enableNone:!0};function tm(e,t,r,n){n=n||cn;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(wi(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(wi(n.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 hH(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function cle(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function fle(e){return e==="auto"?At.domSupported?"html":"richText":e||"html"}function KA(e,t){var r=He(),n=[];return E(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function dH(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if($t(n)){var o=aO(r||0,n,i);return qr(o,a?Math.max(Zo(r||0),Zo(n)):t)}else{if(Ne(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=e.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,v=u[f],o=aO(d,v,i);s[f]=qr(o,a?Math.max(Zo(d),Zo(v)):t)}}return s}}var hle=".",Ju="___EC__COMPONENT__CONTAINER___",vH="___EC__EXTENDED_CLASS___";function qo(e){var t={main:"",sub:""};if(e){var r=e.split(hle);t.main=r[0]||"",t.sub=r[1]||""}return t}function dle(e){wi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function vle(e){return!!(e&&e[vH])}function GM(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return ple(n)?i=function(a){Q(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},xoe(i,this)),de(i.prototype,r),i[vH]=!0,i.extend=this.extend,i.superCall=yle,i.superApply=_le,i.superClass=n,i}}function ple(e){return Xe(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function pH(e,t){e.extend=t.extend}var gle=Math.round(Math.random()*10);function mle(e){var t=["__\0is_clz",gle++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function yle(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function _le(e,t,r){return this.superClass.prototype[t].apply(e,r)}function US(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){dle(i),n.prototype.type=i;var a=qo(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Ju){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Ju]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=qo(n),a=[],o=t[i.main];return o&&o[Ju]?E(o,function(s,l){l!==Ju&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=qo(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return E(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=qo(n),a=t[i.main];return a&&a[Ju]};function r(n){var i=t[n.main];return(!i||!i[Ju])&&(i=t[n.main]={},i[Ju]=!0),i}}function _f(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&St(i,l)>=0||a&&St(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Sle=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ble=_f(Sle),wle=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return ble(this,t,r)},e}(),JA=new Qg(50);function xle(e){if(typeof e=="string"){var t=JA.get(e);return t&&t.image}else return e}function $M(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=JA.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!WS(t)&&a.pending.push(o)):(t=mu.loadImage(e,sO,sO),t.__zrImageSrc=e,JA.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function sO(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function WS(e){return e&&e.width&&e.height}var Px=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Cle(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
|
||
`);i=gH(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=mH(a[o],i);return a.join(`
|
||
`)}function gH(e,t,r,n){n=n||{};var i=de({},n);i.font=t,r=ot(r,"..."),i.maxIterations=ot(n.maxIterations,2);var a=i.minChar=ot(n.minChar,0);i.cnCharWidth=ha("国",t);var o=i.ascCharWidth=ha("a",t);i.placeholder=ot(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=ha(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function mH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=ha(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Tle(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=ha(e,n)}return e===""&&(e=t.placeholder),e}function Tle(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function Ale(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=$S(i),s=ot(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?yH(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
||
`):[];var h=f.length*s,d=ot(t.height,h);if(h>d&&u){var v=Math.floor(d/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=gH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<f.length;m++)f[m]=mH(f[m],p);for(var y=d,S=0,m=0;m<f.length;m++)S=Math.max(ha(f[m],i),S);c==null&&(c=S);var b=S;return n&&(y+=n[0]+n[2],b+=n[1]+n[3],c+=n[1]+n[3]),l&&(b=c),{lines:f,height:d,outerWidth:b,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:h,width:c}}var Dle=function(){function e(){}return e}(),lO=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Mle=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function Ile(e,t){var r=new Mle;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Px.lastIndex=0,l;(l=Px.exec(e))!=null;){var u=l.index;u>s&&Ex(r,e.substring(s,u),t,o),Ex(r,l[2],t,o,l[1]),s=Px.lastIndex}s<e.length&&Ex(r,e.substring(s,e.length),t,o);var c=[],f=0,h=0,d=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function m(z,j,ee){z.width=j,z.lineHeight=ee,f+=ee,h=Math.max(h,j)}e:for(var y=0;y<r.lines.length;y++){for(var S=r.lines[y],b=0,w=0,C=0;C<S.tokens.length;C++){var x=S.tokens[C],A=x.styleName&&t.rich[x.styleName]||{},D=x.textPadding=A.padding,M=D?D[1]+D[3]:0,I=x.font=A.font||t.font;x.contentHeight=$S(I);var P=ot(A.height,x.contentHeight);if(x.innerHeight=P,D&&(P+=D[0]+D[2]),x.height=P,x.lineHeight=Qo(A.lineHeight,t.lineHeight,P),x.align=A&&A.align||t.align,x.verticalAlign=A&&A.verticalAlign||"middle",p&&i!=null&&f+x.lineHeight>i){C>0?(S.tokens=S.tokens.slice(0,C),m(S,w,b),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var R=A.width,N=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")x.percentWidth=R,c.push(x),x.contentWidth=ha(x.text,I);else{if(N){var O=A.backgroundColor,F=O&&O.image;F&&(F=xle(F),WS(F)&&(x.width=Math.max(x.width,F.width*P/F.height)))}var B=v&&n!=null?n-w:null;B!=null&&B<x.width?!N||B<M?(x.text="",x.width=x.contentWidth=0):(x.text=Cle(x.text,B-M,I,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=ha(x.text,I)):x.contentWidth=ha(x.text,I)}x.width+=M,w+=x.width,A&&(b=Math.max(b,x.lineHeight))}m(S,w,b)}r.outerWidth=r.width=ot(n,h),r.outerHeight=r.height=ot(i,f),r.contentHeight=f,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var x=c[y],W=x.percentWidth;x.width=parseInt(W,10)/100*r.width}return r}function Ex(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=bo(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
|
||
`),u=!0),n.accumWidth=v}else{var p=yH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+d,f=p.linesWidths,c=p.lines}}else c=t.split(`
|
||
`);for(var m=0;m<c.length;m++){var y=c[m],S=new Dle;if(S.styleName=i,S.text=y,S.isLineHolder=!y&&!a,typeof o.width=="number"?S.width=o.width:S.width=f?f[m]:ha(y,l),!m&&!u){var b=(s[s.length-1]||(s[0]=new lO)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=S:(y||!w||a)&&b.push(S)}else s.push(new lO([S]))}}function Lle(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ple=is(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ele(e){return Lle(e)?!!Ple[e]:!0}function yH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var h=e.charAt(f);if(h===`
|
||
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=ha(h,t),v=n?!1:!Ele(h);if(a.length?c+d>r:i+c+d>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var QA="__zr_style_"+Math.round(Math.random()*10),rf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},YS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rf[QA]=!0;var uO=["z","z2","invisible"],Rle=["invisible"],Ua=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Mt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kle(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ht(0,0,0,0)),n?ht.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ht(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:de(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=rp,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&rp)},t.prototype.styleUpdated=function(){this.__dirty&=~rp},t.prototype.createStyle=function(r){return VS(rf,r)},t.prototype.useStyle=function(r){r[QA]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[QA]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,uO)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Mt(c),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var v=Mt(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Rle:uO,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return de(r,n),r},t.prototype.getAnimationStyleProps=function(){return YS},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=na|rp}(),t}(HS),Rx=new ht(0,0,0,0),kx=new ht(0,0,0,0);function kle(e,t,r){return Rx.copy(e.getBoundingRect()),e.transform&&Rx.applyTransform(e.transform),kx.width=t,kx.height=r,!Rx.intersect(kx)}var Vi=Math.min,zi=Math.max,Ox=Math.sin,Nx=Math.cos,Qu=Math.PI*2,$y=Df(),Hy=Df(),Uy=Df();function XS(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=Vi(i,n[0]),a=zi(a,n[0]),o=Vi(o,n[1]),s=zi(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function cO(e,t,r,n,i,a){i[0]=Vi(e,r),i[1]=Vi(t,n),a[0]=zi(e,r),a[1]=zi(t,n)}var fO=[],hO=[];function Ole(e,t,r,n,i,a,o,s,l,u){var c=F$,f=wn,h=c(e,r,i,o,fO);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=f(e,r,i,o,fO[d]);l[0]=Vi(v,l[0]),u[0]=zi(v,u[0])}h=c(t,n,a,s,hO);for(var d=0;d<h;d++){var p=f(t,n,a,s,hO[d]);l[1]=Vi(p,l[1]),u[1]=zi(p,u[1])}l[0]=Vi(e,l[0]),u[0]=zi(e,u[0]),l[0]=Vi(o,l[0]),u[0]=zi(o,u[0]),l[1]=Vi(t,l[1]),u[1]=zi(t,u[1]),l[1]=Vi(s,l[1]),u[1]=zi(s,u[1])}function Nle(e,t,r,n,i,a,o,s){var l=V$,u=Rn,c=zi(Vi(l(e,r,i),1),0),f=zi(Vi(l(t,n,a),1),0),h=u(e,r,i,c),d=u(t,n,a,f);o[0]=Vi(e,i,h),o[1]=Vi(t,a,d),s[0]=zi(e,i,h),s[1]=zi(t,a,d)}function Fle(e,t,r,n,i,a,o,s,l){var u=Kl,c=Jl,f=Math.abs(i-a);if(f%Qu<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if($y[0]=Nx(i)*r+e,$y[1]=Ox(i)*n+t,Hy[0]=Nx(a)*r+e,Hy[1]=Ox(a)*n+t,u(s,$y,Hy),c(l,$y,Hy),i=i%Qu,i<0&&(i=i+Qu),a=a%Qu,a<0&&(a=a+Qu),i>a&&!o?a+=Qu:i<a&&o&&(i+=Qu),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(Uy[0]=Nx(d)*r+e,Uy[1]=Ox(d)*n+t,u(s,Uy,s),c(l,Uy,l))}var mr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ec=[],tc=[],Eo=[],Cl=[],Ro=[],ko=[],Fx=Math.min,Bx=Math.max,rc=Math.cos,nc=Math.sin,Cs=Math.abs,eD=Math.PI,Ol=eD*2,Vx=typeof Float32Array<"u",yv=[];function zx(e){var t=Math.round(e/eD*1e8)/1e8;return t%2*eD}function HM(e,t){var r=zx(e[0]);r<0&&(r+=Ol);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ol?i=r+Ol:t&&r-i>=Ol?i=r-Ol:!t&&r>i?i=r+(Ol-zx(r-i)):t&&r<i&&(i=r-(Ol-zx(i-r))),e[0]=r,e[1]=i}var ls=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Cs(n/m1/t)||0,this._uy=Cs(n/m1/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(mr.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Cs(t-this._xi),i=Cs(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mr.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(mr.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(mr.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),yv[0]=i,yv[1]=a,HM(yv,o),i=yv[0],a=yv[1];var s=a-i;return this.addData(mr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=rc(a)*n+t,this._yi=nc(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(mr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mr.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Vx&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Vx&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Vx&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Eo[0]=Eo[1]=Ro[0]=Ro[1]=Number.MAX_VALUE,Cl[0]=Cl[1]=ko[0]=ko[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case mr.M:r=i=t[o++],n=a=t[o++],Ro[0]=i,Ro[1]=a,ko[0]=i,ko[1]=a;break;case mr.L:cO(r,n,t[o],t[o+1],Ro,ko),r=t[o++],n=t[o++];break;case mr.C:Ole(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ro,ko),r=t[o++],n=t[o++];break;case mr.Q:Nle(r,n,t[o++],t[o++],t[o],t[o+1],Ro,ko),r=t[o++],n=t[o++];break;case mr.A:var u=t[o++],c=t[o++],f=t[o++],h=t[o++],d=t[o++],v=t[o++]+d;o+=1;var p=!t[o++];l&&(i=rc(d)*f+u,a=nc(d)*h+c),Fle(u,c,f,h,d,v,p,Ro,ko),r=rc(v)*f+u,n=nc(v)*h+c;break;case mr.R:i=r=t[o++],a=n=t[o++];var m=t[o++],y=t[o++];cO(i,a,i+m,a+y,Ro,ko);break;case mr.Z:r=i,n=a;break}Kl(Eo,Eo,Ro),Jl(Cl,Cl,ko)}return o===0&&(Eo[0]=Eo[1]=Cl[0]=Cl[1]=0),new ht(Eo[0],Eo[1],Cl[0]-Eo[0],Cl[1]-Eo[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<r;){var d=t[h++],v=h===1;v&&(a=t[h],o=t[h+1],s=a,l=o);var p=-1;switch(d){case mr.M:a=s=t[h++],o=l=t[h++];break;case mr.L:{var m=t[h++],y=t[h++],S=m-a,b=y-o;(Cs(S)>n||Cs(b)>i||h===r-1)&&(p=Math.sqrt(S*S+b*b),a=m,o=y);break}case mr.C:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++],x=t[h++],A=t[h++];p=nse(a,o,w,C,m,y,x,A,10),a=x,o=A;break}case mr.Q:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++];p=ase(a,o,w,C,m,y,10),a=m,o=y;break}case mr.A:var D=t[h++],M=t[h++],I=t[h++],P=t[h++],R=t[h++],N=t[h++],O=N+R;h+=1,v&&(s=rc(R)*I+D,l=nc(R)*P+M),p=Bx(I,P)*Fx(Ol,Math.abs(N)),a=rc(O)*I+D,o=nc(O)*P+M;break;case mr.R:{s=a=t[h++],l=o=t[h++];var F=t[h++],B=t[h++];p=F*2+B*2;break}case mr.Z:{var S=s-a,b=l-o;p=Math.sqrt(S*S+b*b),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,d=r<1,v,p,m=0,y=0,S,b=0,w,C;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,S=r*p,!S)))e:for(var x=0;x<o;){var A=n[x++],D=x===1;switch(D&&(u=n[x],c=n[x+1],s=u,l=c),A!==mr.L&&b>0&&(t.lineTo(w,C),b=0),A){case mr.M:s=u=n[x++],l=c=n[x++],t.moveTo(u,c);break;case mr.L:{f=n[x++],h=n[x++];var M=Cs(f-u),I=Cs(h-c);if(M>i||I>a){if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;t.lineTo(u*(1-R)+f*R,c*(1-R)+h*R);break e}m+=P}t.lineTo(f,h),u=f,c=h,b=0}else{var N=M*M+I*I;N>b&&(w=f,C=h,b=N)}break}case mr.C:{var O=n[x++],F=n[x++],B=n[x++],W=n[x++],z=n[x++],j=n[x++];if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;yu(u,O,B,z,R,ec),yu(c,F,W,j,R,tc),t.bezierCurveTo(ec[1],tc[1],ec[2],tc[2],ec[3],tc[3]);break e}m+=P}t.bezierCurveTo(O,F,B,W,z,j),u=z,c=j;break}case mr.Q:{var O=n[x++],F=n[x++],B=n[x++],W=n[x++];if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;hg(u,O,B,R,ec),hg(c,F,W,R,tc),t.quadraticCurveTo(ec[1],tc[1],ec[2],tc[2]);break e}m+=P}t.quadraticCurveTo(O,F,B,W),u=B,c=W;break}case mr.A:var ee=n[x++],te=n[x++],me=n[x++],Ae=n[x++],Pe=n[x++],Oe=n[x++],Ue=n[x++],se=!n[x++],he=me>Ae?me:Ae,pe=Cs(me-Ae)>.001,ye=Pe+Oe,xe=!1;if(d){var P=v[y++];m+P>S&&(ye=Pe+Oe*(S-m)/P,xe=!0),m+=P}if(pe&&t.ellipse?t.ellipse(ee,te,me,Ae,Ue,Pe,ye,se):t.arc(ee,te,he,Pe,ye,se),xe)break e;D&&(s=rc(Pe)*me+ee,l=nc(Pe)*Ae+te),u=rc(ye)*me+ee,c=nc(ye)*Ae+te;break;case mr.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var ke=n[x++],H=n[x++];if(d){var P=v[y++];if(m+P>S){var U=S-m;t.moveTo(f,h),t.lineTo(f+Fx(U,ke),h),U-=ke,U>0&&t.lineTo(f+ke,h+Fx(U,H)),U-=H,U>0&&t.lineTo(f+Bx(ke-U,0),h+H),U-=ke,U>0&&t.lineTo(f,h+Bx(H-U,0));break e}m+=P}t.rect(f,h,ke,H);break;case mr.Z:if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;t.lineTo(u*(1-R)+s*R,c*(1-R)+l*R);break e}m+=P}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=mr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function zl(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Ble(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var h=B$(e,t,r,n,i,a,o,s,u,c,null);return h<=f/2}function _H(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=z$(e,t,r,n,i,a,s,l,null);return c<=u/2}var dO=Math.PI*2;function la(e){return e%=dO,e<0&&(e+=dO),e}var _v=Math.PI*2;function Vle(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%_v<1e-4)return!0;if(a){var f=n;n=la(i),i=la(f)}else n=la(n),i=la(i);n>i&&(i+=_v);var h=Math.atan2(l,s);return h<0&&(h+=_v),h>=n&&h<=i||h+_v>=n&&h+_v<=i}function Es(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Tl=ls.CMD,ic=Math.PI*2,zle=1e-4;function Gle(e,t){return Math.abs(e-t)<zle}var mi=[-1,-1,-1],Ra=[-1,-1];function $le(){var e=Ra[0];Ra[0]=Ra[1],Ra[1]=e}function Hle(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=d1(t,n,a,s,u,mi);if(c===0)return 0;for(var f=0,h=-1,d=void 0,v=void 0,p=0;p<c;p++){var m=mi[p],y=m===0||m===1?.5:1,S=wn(e,r,i,o,m);S<l||(h<0&&(h=F$(t,n,a,s,Ra),Ra[1]<Ra[0]&&h>1&&$le(),d=wn(t,n,a,s,Ra[0]),h>1&&(v=wn(t,n,a,s,Ra[1]))),h===2?m<Ra[0]?f+=d<t?y:-y:m<Ra[1]?f+=v<d?y:-y:f+=s<v?y:-y:m<Ra[0]?f+=d<t?y:-y:f+=s<d?y:-y)}return f}function Ule(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=ise(t,n,a,s,mi);if(l===0)return 0;var u=V$(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Rn(t,n,a,u),h=0;h<l;h++){var d=mi[h]===0||mi[h]===1?.5:1,v=Rn(e,r,i,mi[h]);v<o||(mi[h]<u?c+=f<t?d:-d:c+=a<f?d:-d)}return c}else{var d=mi[0]===0||mi[0]===1?.5:1,v=Rn(e,r,i,mi[0]);return v<o?0:a<t?d:-d}}function Wle(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);mi[0]=-l,mi[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ic-1e-4){n=0,i=ic;var c=a?1:-1;return o>=mi[0]+e&&o<=mi[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=ic,i+=ic);for(var h=0,d=0;d<2;d++){var v=mi[d];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=ic+p),(p>=n&&p<=i||p+ic>=n&&p+ic<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),h+=c)}}return h}function SH(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,h,d,v=0;v<o;){var p=a[v++],m=v===1;switch(p===Tl.M&&v>1&&(r||(s+=Es(l,u,c,f,n,i))),m&&(l=a[v],u=a[v+1],c=l,f=u),p){case Tl.M:c=a[v++],f=a[v++],l=c,u=f;break;case Tl.L:if(r){if(zl(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Es(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.C:if(r){if(Ble(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Hle(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.Q:if(r){if(_H(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Ule(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.A:var y=a[v++],S=a[v++],b=a[v++],w=a[v++],C=a[v++],x=a[v++];v+=1;var A=!!(1-a[v++]);h=Math.cos(C)*b+y,d=Math.sin(C)*w+S,m?(c=h,f=d):s+=Es(l,u,h,d,n,i);var D=(n-y)*w/b+y;if(r){if(Vle(y,S,w,C,C+x,A,t,D,i))return!0}else s+=Wle(y,S,w,C,C+x,A,D,i);l=Math.cos(C+x)*b+y,u=Math.sin(C+x)*w+S;break;case Tl.R:c=l=a[v++],f=u=a[v++];var M=a[v++],I=a[v++];if(h=c+M,d=f+I,r){if(zl(c,f,h,f,t,n,i)||zl(h,f,h,d,t,n,i)||zl(h,d,c,d,t,n,i)||zl(c,d,c,f,t,n,i))return!0}else s+=Es(h,f,h,d,n,i),s+=Es(c,d,c,f,n,i);break;case Tl.Z:if(r){if(zl(l,u,c,f,t,n,i))return!0}else s+=Es(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Gle(u,f)&&(s+=Es(l,u,c,f,n,i)||0),s!==0}function Yle(e,t,r){return SH(e,0,!1,t,r)}function Xle(e,t,r,n){return SH(e,t,!0,r,n)}var _1=qe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rf),Zle={style:qe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},YS.style)},Gx=os.concat(["invisible","culling","z","z2","zlevel","parent"]),Ct=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Gx.length;++s)i[Gx[s]]=this[Gx[s]];i.__dirty|=na}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Mt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?de(this.style,s):this.useStyle(s):o==="shape"?de(this.shape,s):e.prototype.attrKV.call(this,o,s)}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 r=this.style.fill;if(r!=="none"){if(Ne(r)){var n=p1(r,0);return n>.5?ZA:n>.2?Ese:qA}else if(r)return qA}return ZA},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ne(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=p1(r,0)<XA;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Th},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new ls(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Th)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Xle(s,l/u,r,n)))return!0}if(this.hasFill())return Yle(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Th,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:de(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Th)},t.prototype.createStyle=function(r){return VS(_1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=de({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=de({},i.shape),de(u,n.shape)):(u=de({},a?this.shape:i.shape),de(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=de({},this.shape);for(var c={},f=Mt(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Zle},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){Q(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Je(r.style)},o.prototype.getDefaultShape=function(){return Je(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=na|rp|Th}(),t}(Ua),qle=qe({strokeFirst:!0,font:gu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},_1),od=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return VS(qle,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=em(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ua);od.prototype.type="tspan";var jle=qe({x:0,y:0},rf),Kle={style:qe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},YS.style)};function Jle(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Fn=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return VS(jle,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Jle(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Kle},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ht(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ua);Fn.prototype.type="image";function Qle(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var kh=Math.round;function bH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(kh(n*2)===kh(i*2)&&(e.x1=e.x2=Gc(n,s,!0)),kh(a*2)===kh(o*2)&&(e.y1=e.y2=Gc(a,s,!0))),e}}function wH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Gc(n,s,!0),e.y=Gc(i,s,!0),e.width=Math.max(Gc(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gc(i+o,s,!1)-e.y,o===0?0:1)),e}}function Gc(e,t,r){if(!t)return e;var n=kh(e*2);return(n+kh(t))%2===0?n/2:(n+(r?1:-1))/2}var eue=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tue={},Ot=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eue},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=wH(tue,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Qle(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ct);Ot.prototype.type="rect";var vO={fill:"#000"},pO=2,rue={style:qe({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},YS.style)},zt=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vO,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},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,aue(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new ht(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||vO},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return de(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Mt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},de(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return rue},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||gu,i=r.padding,a=wO(r),o=Ale(a,r),s=$x(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle,p=r.x||0,m=r.y||0,y=r.align||v.align||"left",S=r.verticalAlign||v.verticalAlign||"top",b=p,w=Ah(m,o.contentHeight,S);if(s||i){var C=ip(p,c,y),x=Ah(m,u,S);s&&this._renderBackground(r,r,C,x,c,u)}w+=d/2,i&&(b=bO(p,y,i),S==="top"?w+=i[0]:S==="bottom"&&(w-=i[2]));for(var A=0,D=!1,M=SO("fill"in r?r.fill:(D=!0,v.fill)),I=_O("stroke"in r?r.stroke:!l&&(!v.autoStroke||D)?(A=pO,v.stroke):null),P=r.textShadowBlur>0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),N=o.calculatedLineHeight,O=0;O<h.length;O++){var F=this._getOrCreateChild(od),B=F.createStyle();F.useStyle(B),B.text=h[O],B.x=b,B.y=w,y&&(B.textAlign=y),B.textBaseline="middle",B.opacity=r.opacity,B.strokeFirst=!0,P&&(B.shadowBlur=r.textShadowBlur||0,B.shadowColor=r.textShadowColor||"transparent",B.shadowOffsetX=r.textShadowOffsetX||0,B.shadowOffsetY=r.textShadowOffsetY||0),B.stroke=I,B.fill=M,I&&(B.lineWidth=r.lineWidth||A,B.lineDash=r.lineDash,B.lineDashOffset=r.lineDashOffset||0),B.font=n,mO(B,r),w+=d,R&&F.setBoundingRect(new ht(ip(B.x,r.width,B.textAlign),Ah(B.y,N,B.textBaseline),f,N))}},t.prototype._updateRichTexts=function(){var r=this.style,n=wO(r),i=Ile(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,h=r.align||f.align,d=r.verticalAlign||f.verticalAlign,v=ip(u,o,h),p=Ah(c,s,d),m=v,y=p;l&&(m+=l[3],y+=l[0]);var S=m+a;$x(r)&&this._renderBackground(r,r,v,p,o,s);for(var b=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var C=i.lines[w],x=C.tokens,A=x.length,D=C.lineHeight,M=C.width,I=0,P=m,R=S,N=A-1,O=void 0;I<A&&(O=x[I],!O.align||O.align==="left");)this._placeToken(O,r,D,y,P,"left",b),M-=O.width,P+=O.width,I++;for(;N>=0&&(O=x[N],O.align==="right");)this._placeToken(O,r,D,y,R,"right",b),M-=O.width,R-=O.width,N--;for(P+=(a-(P-m)-(S-R)-M)/2;I<=N;)O=x[I],this._placeToken(O,r,D,y,P+O.width/2,"center",b),P+=O.width,I++;y+=D}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&$x(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=bO(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(od),m=p.createStyle();p.useStyle(m);var y=this._defaultStyle,S=!1,b=0,w=SO("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),C=_O("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||S)?(b=pO,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,x&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||gu,m.opacity=Qo(u.opacity,n.opacity,1),mO(m,u),C&&(m.lineWidth=Qo(u.lineWidth,n.lineWidth,b),m.lineDash=ot(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=C),w&&(m.fill=w);var A=r.contentWidth,D=r.contentHeight;p.setBoundingRect(new ht(ip(m.x,A,m.textAlign),Ah(m.y,D,m.textBaseline),A,D))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,d=r.borderRadius,v=this,p,m;if(h||r.lineHeight||u&&c){p=this._getOrCreateChild(Ot),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=d,p.dirtyShape()}if(h){var S=p.style;S.fill=l||null,S.fillOpacity=ot(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Fn),m.onload=function(){v.dirtyStyle()};var b=m.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=p.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=ot(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var w=(p||m).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Qo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return CH(r)&&(n=[r.fontStyle,r.fontWeight,xH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&uo(n)||r.textFont||r.font},t}(Ua),nue={left:!0,right:1,center:1},iue={top:1,bottom:1,middle:1},gO=["fontStyle","fontWeight","fontSize","fontFamily"];function xH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?TM+"px":e+"px"}function mO(e,t){for(var r=0;r<gO.length;r++){var n=gO[r],i=t[n];i!=null&&(e[n]=i)}}function CH(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function aue(e){return yO(e),E(e.rich,yO),e}function yO(e){if(e){e.font=zt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||nue[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||iue[r]?r:"top";var n=e.padding;n&&(e.padding=PM(e.padding))}}function _O(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function SO(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function bO(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function wO(e){var t=e.text;return t!=null&&(t+=""),t}function $x(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var rt=Nt(),tD=function(e,t,r,n){if(n){var i=rt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=rt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},xO=1,CO={},TH=Nt(),UM=Nt(),WM=0,rm=1,ZS=2,xi=["emphasis","blur","select"],mg=["normal","emphasis","blur","select"],Ld=10,oue=9,nf="highlight",T_="downplay",Fp="select",A_="unselect",Bp="toggleSelect";function ah(e){return e!=null&&e!=="none"}function qS(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function AH(e){qS(e,"emphasis",ZS)}function DH(e){e.hoverState===ZS&&qS(e,"normal",WM)}function YM(e){qS(e,"blur",rm)}function MH(e){e.hoverState===rm&&qS(e,"normal",WM)}function sue(e){e.selected=!0}function lue(e){e.selected=!1}function TO(e,t,r){t(e,r)}function sl(e,t,r){TO(e,t,r),e.isGroup&&e.traverse(function(n){TO(n,t,r)})}function S1(e,t){switch(t){case"emphasis":e.hoverState=ZS;break;case"normal":e.hoverState=WM;break;case"blur":e.hoverState=rm;break;case"select":e.selected=!0}}function uue(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function cue(e,t,r,n){var i=r&&St(r,"select")>=0,a=!1;if(e instanceof Ct){var o=TH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ah(s)||ah(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=de({},n),u=de({},u),u.fill=s):!ah(u.fill)&&ah(s)?(a=!0,n=de({},n),u=de({},u),u.fill=zA(s)):!ah(u.stroke)&&ah(l)&&(a||(n=de({},n),u=de({},u)),u.stroke=zA(l)),n.style=u}}if(n&&n.z2==null){a||(n=de({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Ld)}return n}function fue(e,t,r){if(r&&r.z2==null){r=de({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??oue)}return r}function hue(e,t,r){var n=St(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:uue(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=de({},r),o=de({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Hx(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cue(this,e,t,r);if(e==="blur")return hue(this,e,r);if(e==="select")return fue(this,e,r)}return r}function Sf(e){e.stateProxy=Hx;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Hx),r&&(r.stateProxy=Hx)}function AO(e,t){!EH(e,t)&&!e.__highByOuter&&sl(e,AH)}function DO(e,t){!EH(e,t)&&!e.__highByOuter&&sl(e,DH)}function Js(e,t){e.__highByOuter|=1<<(t||0),sl(e,AH)}function Qs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&sl(e,DH)}function IH(e){sl(e,YM)}function XM(e){sl(e,MH)}function LH(e){sl(e,sue)}function PH(e){sl(e,lue)}function EH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function RH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=UM(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){MH(u)}),s&&r.push(a)),o.isBlured=!1}),E(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function rD(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&XM(h)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!h||t==="series"&&c)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(m){m.__highByOuter&&c&&t==="self"||YM(m)}),ii(t))a(u.getData(),t);else if(Ke(t))for(var v=Mt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),UM(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function nD(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){UM(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){YM(a)})}}}function due(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=yf(i,t);a=(Se(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=rt(o);rD(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&rD(n,c,f,r)}}}function ZM(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function vue(e,t,r){var n=rt(e),i=ZM(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&nD(n.componentMainType,n.componentIndex,r),E(a,function(s){return AO(s,t)})):(rD(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&nD(n.componentMainType,n.componentIndex,r),AO(e,t))}function pue(e,t,r){RH(r);var n=rt(e),i=ZM(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?E(i,function(a){return DO(a,t)}):DO(e,t)}function gue(e,t,r){if(aD(t)){var n=t.dataType,i=e.getData(n),a=yf(i,t);Se(a)||(a=[a]),e[t.type===Bp?"toggleSelect":t.type===Fp?"select":"unselect"](a,n)}}function MO(e){var t=e.getAllData();E(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?LH(a):PH(a)})})}function mue(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();E(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function af(e,t,r){$c(e,!0),sl(e,Sf),iD(e,t,r)}function yue(e){$c(e,!1)}function Yr(e,t,r,n){n?yue(e):af(e,t,r)}function iD(e,t,r){var n=rt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var IO=["emphasis","blur","select"],_ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Wn(e,t,r,n){r=r||"itemStyle";for(var i=0;i<IO.length;i++){var a=IO[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[_ue[r]]()}}function $c(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function yg(e){return!!(e&&e.__highDownDispatcher)}function Sue(e,t,r){var n=rt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function bue(e){var t=CO[e];return t==null&&xO<=32&&(t=CO[e]=xO++),t}function aD(e){var t=e.type;return t===Fp||t===A_||t===Bp}function LO(e){var t=e.type;return t===nf||t===T_}function wue(e){var t=TH(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var oh=ls.CMD,xue=[[],[],[]],PO=Math.sqrt,Cue=Math.atan2;function kH(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=oh.M,f=oh.C,h=oh.L,d=oh.R,v=oh.A,p=oh.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case f:a=3;break;case p:a=2;break;case v:var m=t[4],y=t[5],S=PO(t[0]*t[0]+t[1]*t[1]),b=PO(t[2]*t[2]+t[3]*t[3]),w=Cue(-t[1]/b,t[0]/S);r[o]*=S,r[o++]+=m,r[o]*=b,r[o++]+=y,r[o++]*=S,r[o++]*=b,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],Un(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Un(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var C=xue[l];C[0]=r[o++],C[1]=r[o++],Un(C,C,t),r[s++]=C[0],r[s++]=C[1]}}e.increaseVersion()}}var Ux=Math.sqrt,Wy=Math.sin,Yy=Math.cos,Sv=Math.PI;function EO(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function oD(e,t){return(e[0]*t[0]+e[1]*t[1])/(EO(e)*EO(t))}function RO(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(oD(e,t))}function kO(e,t,r,n,i,a,o,s,l,u,c){var f=l*(Sv/180),h=Yy(f)*(e-r)/2+Wy(f)*(t-n)/2,d=-1*Wy(f)*(e-r)/2+Yy(f)*(t-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=Ux(v),s*=Ux(v));var p=(i===a?-1:1)*Ux((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=p*o*d/s,y=p*-s*h/o,S=(e+r)/2+Yy(f)*m-Wy(f)*y,b=(t+n)/2+Wy(f)*m+Yy(f)*y,w=RO([1,0],[(h-m)/o,(d-y)/s]),C=[(h-m)/o,(d-y)/s],x=[(-1*h-m)/o,(-1*d-y)/s],A=RO(C,x);if(oD(C,x)<=-1&&(A=Sv),oD(C,x)>=1&&(A=0),A<0){var D=Math.round(A/Sv*1e6)/1e6;A=Sv*2+D%2*Sv}c.addData(u,S,b,o,s,w,A,f,a)}var Tue=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Aue=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Due(e){var t=new ls;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ls.CMD,l=e.match(Tue);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(Aue)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var m=0;m<v;){var y=void 0,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0,A=void 0,D=r,M=n,I=void 0,P=void 0;switch(f){case"l":r+=d[m++],n+=d[m++],h=s.L,t.addData(h,r,n);break;case"L":r=d[m++],n=d[m++],h=s.L,t.addData(h,r,n);break;case"m":r+=d[m++],n+=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,f="l";break;case"M":r=d[m++],n=d[m++],h=s.M,t.addData(h,r,n),i=r,a=n,f="L";break;case"h":r+=d[m++],h=s.L,t.addData(h,r,n);break;case"H":r=d[m++],h=s.L,t.addData(h,r,n);break;case"v":n+=d[m++],h=s.L,t.addData(h,r,n);break;case"V":n=d[m++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),r=d[m-2],n=d[m-1];break;case"c":h=s.C,t.addData(h,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n,d[m++]+r,d[m++]+n),r+=d[m-2],n+=d[m-1];break;case"S":y=r,S=n,I=t.len(),P=t.data,o===s.C&&(y+=r-P[I-4],S+=n-P[I-3]),h=s.C,D=d[m++],M=d[m++],r=d[m++],n=d[m++],t.addData(h,y,S,D,M,r,n);break;case"s":y=r,S=n,I=t.len(),P=t.data,o===s.C&&(y+=r-P[I-4],S+=n-P[I-3]),h=s.C,D=r+d[m++],M=n+d[m++],r+=d[m++],n+=d[m++],t.addData(h,y,S,D,M,r,n);break;case"Q":D=d[m++],M=d[m++],r=d[m++],n=d[m++],h=s.Q,t.addData(h,D,M,r,n);break;case"q":D=d[m++]+r,M=d[m++]+n,r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,D,M,r,n);break;case"T":y=r,S=n,I=t.len(),P=t.data,o===s.Q&&(y+=r-P[I-4],S+=n-P[I-3]),r=d[m++],n=d[m++],h=s.Q,t.addData(h,y,S,r,n);break;case"t":y=r,S=n,I=t.len(),P=t.data,o===s.Q&&(y+=r-P[I-4],S+=n-P[I-3]),r+=d[m++],n+=d[m++],h=s.Q,t.addData(h,y,S,r,n);break;case"A":b=d[m++],w=d[m++],C=d[m++],x=d[m++],A=d[m++],D=r,M=n,r=d[m++],n=d[m++],h=s.A,kO(D,M,r,n,x,A,b,w,C,h,t);break;case"a":b=d[m++],w=d[m++],C=d[m++],x=d[m++],A=d[m++],D=r,M=n,r+=d[m++],n+=d[m++],h=s.A,kO(D,M,r,n,x,A,b,w,C,h,t);break}}(f==="z"||f==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var OH=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Ct);function NH(e){return e.setData!=null}function FH(e,t){var r=Due(e),n=de({},t);return n.buildPath=function(i){if(NH(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){kH(r,i),this.dirtyShape()},n}function BH(e,t){return new OH(FH(e,t))}function Mue(e,t){var r=FH(e,t),n=function(i){Q(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(OH);return n}function Iue(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ct(t);return o.createPathProxy(),o.buildPath=function(s){if(NH(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function qM(e,t){t=t||{};var r=new Ct;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?kH(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Lue=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),ll=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Lue},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Ct);ll.prototype.type="circle";var Pue=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),jS=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Pue},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(Ct);jS.prototype.type="ellipse";var VH=Math.PI,Wx=VH*2,ac=Math.sin,sh=Math.cos,Eue=Math.acos,jn=Math.atan2,OO=Math.abs,Vp=Math.sqrt,ap=Math.max,Oo=Math.min,no=1e-4;function Rue(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=f*l-c*u;if(!(h*h<no))return h=(c*(t-a)-f*(e-i))/h,[e+h*l,t+h*u]}function Xy(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Vp(s*s+l*l),c=u*l,f=-u*s,h=e+c,d=t+f,v=r+c,p=n+f,m=(h+v)/2,y=(d+p)/2,S=v-h,b=p-d,w=S*S+b*b,C=i-a,x=h*p-v*d,A=(b<0?-1:1)*Vp(ap(0,C*C*w-x*x)),D=(x*b-S*A)/w,M=(-x*S-b*A)/w,I=(x*b+S*A)/w,P=(-x*S+b*A)/w,R=D-m,N=M-y,O=I-m,F=P-y;return R*R+N*N>O*O+F*F&&(D=I,M=P),{cx:D,cy:M,x0:-c,y0:-f,x1:D*(i/C-1),y1:M*(i/C-1)}}function kue(e){var t;if(Se(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Oue(e,t){var r,n=ap(t.r,0),i=ap(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,h=!!t.clockwise,d=OO(u-l),v=d>Wx&&d%Wx;if(v>no&&(d=v),!(n>no))e.moveTo(c,f);else if(d>Wx-no)e.moveTo(c+n*sh(l),f+n*ac(l)),e.arc(c,f,n,l,u,!h),i>no&&(e.moveTo(c+i*sh(u),f+i*ac(u)),e.arc(c,f,i,u,l,h));else{var p=void 0,m=void 0,y=void 0,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,R=void 0,N=void 0,O=void 0,F=n*sh(l),B=n*ac(l),W=i*sh(u),z=i*ac(u),j=d>no;if(j){var ee=t.cornerRadius;ee&&(r=kue(ee),p=r[0],m=r[1],y=r[2],S=r[3]);var te=OO(n-i)/2;if(b=Oo(te,y),w=Oo(te,S),C=Oo(te,p),x=Oo(te,m),M=A=ap(b,w),I=D=ap(C,x),(A>no||D>no)&&(P=n*sh(u),R=n*ac(u),N=i*sh(l),O=i*ac(l),d<VH)){var me=Rue(F,B,N,O,P,R,W,z);if(me){var Ae=F-me[0],Pe=B-me[1],Oe=P-me[0],Ue=R-me[1],se=1/ac(Eue((Ae*Oe+Pe*Ue)/(Vp(Ae*Ae+Pe*Pe)*Vp(Oe*Oe+Ue*Ue)))/2),he=Vp(me[0]*me[0]+me[1]*me[1]);M=Oo(A,(n-he)/(se+1)),I=Oo(D,(i-he)/(se-1))}}}if(!j)e.moveTo(c+F,f+B);else if(M>no){var pe=Oo(y,M),ye=Oo(S,M),xe=Xy(N,O,F,B,n,pe,h),ke=Xy(P,R,W,z,n,ye,h);e.moveTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),M<A&&pe===ye?e.arc(c+xe.cx,f+xe.cy,M,jn(xe.y0,xe.x0),jn(ke.y0,ke.x0),!h):(pe>0&&e.arc(c+xe.cx,f+xe.cy,pe,jn(xe.y0,xe.x0),jn(xe.y1,xe.x1),!h),e.arc(c,f,n,jn(xe.cy+xe.y1,xe.cx+xe.x1),jn(ke.cy+ke.y1,ke.cx+ke.x1),!h),ye>0&&e.arc(c+ke.cx,f+ke.cy,ye,jn(ke.y1,ke.x1),jn(ke.y0,ke.x0),!h))}else e.moveTo(c+F,f+B),e.arc(c,f,n,l,u,!h);if(!(i>no)||!j)e.lineTo(c+W,f+z);else if(I>no){var pe=Oo(p,I),ye=Oo(m,I),xe=Xy(W,z,P,R,i,-ye,h),ke=Xy(F,B,N,O,i,-pe,h);e.lineTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),I<D&&pe===ye?e.arc(c+xe.cx,f+xe.cy,I,jn(xe.y0,xe.x0),jn(ke.y0,ke.x0),!h):(ye>0&&e.arc(c+xe.cx,f+xe.cy,ye,jn(xe.y0,xe.x0),jn(xe.y1,xe.x1),!h),e.arc(c,f,i,jn(xe.cy+xe.y1,xe.cx+xe.x1),jn(ke.cy+ke.y1,ke.cx+ke.x1),h),pe>0&&e.arc(c+ke.cx,f+ke.cy,pe,jn(ke.y1,ke.x1),jn(ke.y0,ke.x0),!h))}else e.lineTo(c+W,f+z),e.arc(c,f,i,u,l,h)}e.closePath()}}}var Nue=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}(),Ci=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nue},t.prototype.buildPath=function(r,n){Oue(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ct);Ci.prototype.type="sector";var Fue=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),nm=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Fue},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Ct);nm.prototype.type="ring";function Bue(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)Kl(c,c,e[h]),Jl(f,f,e[h]);Kl(c,c,n[0]),Jl(f,f,n[1])}for(var h=0,d=e.length;h<d;h++){var v=e[h];if(r)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(Hs(e[h]));continue}else l=e[h-1],u=e[h+1];zc(a,u,l),y_(a,a,t);var p=PA(v,l),m=PA(v,u),y=p+m;y!==0&&(p/=y,m/=y),y_(o,a,-p),y_(s,a,m);var S=Mk([],v,o),b=Mk([],v,s);n&&(Jl(S,S,c),Kl(S,S,f),Jl(b,b,c),Kl(b,b,f)),i.push(S),i.push(b)}return r&&i.push(i.shift()),i}function zH(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=Bue(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var Vue=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ti=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Vue},t.prototype.buildPath=function(r,n){zH(r,n,!0)},t}(Ct);Ti.prototype.type="polygon";var zue=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Mi=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zue},t.prototype.buildPath=function(r,n){zH(r,n,!1)},t}(Ct);Mi.prototype.type="polyline";var Gue={},$ue=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),xn=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $ue},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=bH(Gue,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Ct);xn.prototype.type="line";var ki=[],Hue=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 NO(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?zk:wn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?zk:wn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?NA:Rn)(e.x1,e.cpx1,e.x2,t),(r?NA:Rn)(e.y1,e.cpy1,e.y2,t)]}var im=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hue},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),c==null||f==null?(h<1&&(hg(i,l,o,h,ki),l=ki[1],o=ki[2],hg(a,u,s,h,ki),u=ki[1],s=ki[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(yu(i,l,c,o,h,ki),l=ki[1],c=ki[2],o=ki[3],yu(a,u,f,s,h,ki),u=ki[1],f=ki[2],s=ki[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return NO(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=NO(this.shape,r,!0);return Dd(n,n)},t}(Ct);im.prototype.type="bezier-curve";var Uue=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}(),KS=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Uue},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(Ct);KS.prototype.type="arc";var jM=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ct.prototype.getBoundingRect.call(this)},t}(Ct),GH=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),am=function(e){Q(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(GH),$H=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(GH),oc=[0,0],sc=[0,0],Zy=new ut,qy=new ut,b1=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ut;for(var n=0;n<2;n++)this._axes[n]=new ut;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ut.sub(i[0],n[1],n[0]),ut.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Zy.set(1/0,1/0),qy.set(0,0),!this._intersectCheckOneSide(this,t,Zy,qy,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Zy,qy,i,-1)&&(n=!1,i)||i||ut.copy(r,n?Zy:qy),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,oc),this._getProjMinMaxOnAxis(l,r._corners,sc),oc[1]<sc[0]||oc[0]>sc[1]){if(s=!1,a)return s;var c=Math.abs(sc[0]-oc[1]),f=Math.abs(oc[0]-sc[1]);Math.min(c,f)>i.len()&&(c<f?ut.scale(i,u,-c*o):ut.scale(i,u,f*o))}else if(n){var c=Math.abs(sc[0]-oc[1]),f=Math.abs(oc[0]-sc[1]);Math.min(c,f)<n.len()&&(c<f?ut.scale(n,u,c*o):ut.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}(),Wue=[],Yue=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ht(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(Wue)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Ua),HH=Nt();function Pd(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=ot(n.duration,200),c=ot(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Xe(f)&&(f=f(r,i)),Xe(u)&&(u=u(r));var h={duration:u||0,delay:f,easing:c};return h}else return null}function KM(e,t,r,n,i,a,o){var s=!1,l;Xe(i)?(o=a,a=i,i=null):Ke(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Pd(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Yt(e,t,r,n,i,a){KM("update",e,t,r,n,i,a)}function Rr(e,t,r,n,i,a){KM("enter",e,t,r,n,i,a)}function qh(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function _u(e,t,r,n,i,a){qh(e)||KM("leave",e,t,r,n,i,a)}function FO(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),_u(e,{style:{opacity:0}},t,r,n)}function _g(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||FO(i,t,r,n)}):FO(e,t,r,n)}function wo(e){HH(e).oldStyle=e.style}function Xue(e){return HH(e).oldStyle}var w1=Math.max,x1=Math.min,sD={};function Zue(e){return Ct.extend(e)}var que=Mue;function jue(e,t){return que(e,t)}function To(e,t){sD[e]=t}function JM(e){if(sD.hasOwnProperty(e))return sD[e]}function JS(e,t,r,n){var i=BH(e,t);return r&&(n==="center"&&(r=WH(r,i.getBoundingRect())),YH(i,r)),i}function UH(e,t,r){var n=new Fn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(WH(t,a))}}});return n}function WH(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Ba=Iue;function YH(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function sd(e,t){return bH(e,e,{lineWidth:t}),e}function Kue(e){return wH(e.shape,e.shape,e.style),e}var D_=Gc;function of(e,t){for(var r=zS([]);e&&e!==t;)Us(r,e.getLocalTransform(),r),e=e.parent;return r}function mo(e,t,r){return t&&!ii(t)&&(t=Bs.getLocalTransform(t)),r&&(t=Md([],t)),Un([],e,t)}function QS(e,t,r){var n=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"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=mo(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function BO(e){return!e.isGroup}function Jue(e){return e.shape!=null}function om(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){BO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Jue(o)&&(s.shape=de({},o.shape)),s}var a=n(e);t.traverse(function(o){if(BO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Yt(o,l,r,rt(o).dataIndex)}}})}function XH(e,t){return we(e,function(r){var n=r[0];n=w1(n,t.x),n=x1(n,t.x+t.width);var i=r[1];return i=w1(i,t.y),i=x1(i,t.y+t.height),[n,i]})}function Que(e,t){var r=w1(e.x,t.x),n=x1(e.x+e.width,t.x+t.width),i=w1(e.y,t.y),a=x1(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function sm(e,t,r){var n=de({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),qe(i,r),new Fn(n)):JS(e.replace("path://",""),n,r,"center")}function op(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ZH(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function ZH(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=Yx(c,f,l,u);if(ece(h))return!1;var d=e-i,v=t-a,p=Yx(d,v,l,u)/h;if(p<0||p>1)return!1;var m=Yx(d,v,c,f)/h;return!(m<0||m>1)}function Yx(e,t,r,n){return e*n-r*t}function ece(e){return e<=1e-6&&e>=-1e-6}function Ed(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ne(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&E(Mt(l),function(c){Ve(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=rt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:qe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function VO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Iu(e,t){if(e)if(Se(e))for(var r=0;r<e.length;r++)VO(e[r],t);else VO(e,t)}To("circle",ll);To("ellipse",jS);To("sector",Ci);To("ring",nm);To("polygon",Ti);To("polyline",Mi);To("rect",Ot);To("line",xn);To("bezierCurve",im);To("arc",KS);const If=Object.freeze(Object.defineProperty({__proto__:null,Arc:KS,BezierCurve:im,BoundingRect:ht,Circle:ll,CompoundPath:jM,Ellipse:jS,Group:et,Image:Fn,IncrementalDisplayable:Yue,Line:xn,LinearGradient:am,OrientedBoundingRect:b1,Path:Ct,Point:ut,Polygon:Ti,Polyline:Mi,RadialGradient:$H,Rect:Ot,Ring:nm,Sector:Ci,Text:zt,applyTransform:mo,clipPointsByRect:XH,clipRectByRect:Que,createIcon:sm,extendPath:jue,extendShape:Zue,getShapeClass:JM,getTransform:of,groupTransition:om,initProps:Rr,isElementRemoved:qh,lineLineIntersect:ZH,linePolygonIntersect:op,makeImage:UH,makePath:JS,mergePath:Ba,registerShape:To,removeElement:_u,removeElementWithFadeOut:_g,resizePath:YH,setTooltipConfig:Ed,subPixelOptimize:D_,subPixelOptimizeLine:sd,subPixelOptimizeRect:Kue,transformDirection:QS,traverseElements:Iu,updateProps:Yt},Symbol.toStringTag,{value:"Module"}));var eb={};function qH(e,t){for(var r=0;r<xi.length;r++){var n=xi[r],i=t[n],a=e.ensureState(n);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 lD(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Xe(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<xi.length;u++){var c=xi[u],f=t[c];l[c]=ot(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Yn(e,t,r,n){r=r||eb;for(var i=e instanceof zt,a=!1,o=0;o<mg.length;o++){var s=t[mg[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new zt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=lD(r,t),c=t.normal,f=!!c.getShallow("show"),h=Ar(c,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(C1(c,r,!1));for(var o=0;o<xi.length;o++){var d=xi[o],s=t[d];if(s){var v=l.ensureState(d),p=!!ot(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=Ar(s,n&&n[d],r,!0,!i),v.style.text=u[d],!i){var m=e.ensureState(d);m.textConfig=C1(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),r.enableTextSetter&&(Rd(l).setLabelText=function(y){var S=lD(r,t,y);qH(l,S)})}else l&&(l.ignore=!0);e.dirty()}function Dn(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<xi.length;n++){var i=xi[n];r[i]=e.getModel([i,t])}return r}function Ar(e,t,r,n,i){var a={};return tce(a,e,r,n,i),t&&de(a,t),a}function C1(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=ot(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function tce(e,t,r,n,i){r=r||eb;var a=t.ecModel,o=a&&a.option.textStyle,s=rce(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);HO(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var h=t.get("minMargin");h!=null&&(e.margin=h),HO(e,t,o,r,n,i,!0,!1)}function rce(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||eb).rich;if(r){t=t||{};for(var n=Mt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var zO=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],GO=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],$O=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function HO(e,t,r,n,i,a,o,s){r=!i&&r||eb;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ot(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var h=ot(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=ot(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var v=ot(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<zO.length;p++){var m=zO[p],y=ot(t.getShallow(m),r[m]);y!=null&&(e[m]=y)}for(var p=0;p<GO.length;p++){var m=GO[p],y=t.getShallow(m);y!=null&&(e[m]=y)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!o||!n.disableBox){for(var p=0;p<$O.length;p++){var m=$O[p],y=t.getShallow(m);y!=null&&(e[m]=y)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function QM(e,t){var r=t&&t.getModel("textStyle");return uo([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Rd=Nt();function jH(e,t,r,n){if(e){var i=Rd(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function KH(e,t,r,n,i){var a=Rd(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=ot(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=dH(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var h=lD({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);qH(e,h)}e.percent=0,(a.prevValue==null?Rr:Yt)(e,{percent:1},n,t,null,u)}var nce=["textStyle","color"],Xx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zx=new zt,ice=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(nce):null)},e.prototype.getFont=function(){return QM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xx.length;n++)r[Xx[n]]=this.getShallow(Xx[n]);return Zx.useStyle(r),Zx.update(),Zx.getBoundingRect()},e}(),JH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ace=_f(JH),oce=function(){function e(){}return e.prototype.getLineStyle=function(t){return ace(this,t)},e}(),QH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sce=_f(QH),lce=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return sce(this,t,r)},e}(),nr=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ft(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Je(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!At.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();GM(nr);mle(nr);dn(nr,oce);dn(nr,lce);dn(nr,wle);dn(nr,ice);var uce=Math.round(Math.random()*10);function kd(e){return[e||"",uce++].join("_")}function cce(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=qo(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=qo(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function fce(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,h={};for(E(a,function(S){h[S]=!0});f.length;){var d=f.pop(),v=c[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),E(v.successor,p?y:m)}E(h,function(){var S="";throw new Error(S)});function m(S){c[S].entryCount--,c[S].entryCount===0&&f.push(S)}function y(S){h[S]=!0,m(S)}};function r(a){var o={},s=[];return E(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),E(f,function(h){St(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);St(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return E(a,function(l){St(o,l)>=0&&s.push(l)}),s}}function Lu(e,t){return ft(ft({},e,!0),t,!0)}const hce={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:". "}}}},dce={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var T1="ZH",eI="EN",jh=eI,M_={},tI={},eU=At.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||jh).toUpperCase();return e.indexOf(T1)>-1?T1:jh}():jh;function tU(e,t){e=e.toUpperCase(),tI[e]=new nr(t),M_[e]=t}function vce(e){if(Ne(e)){var t=M_[e.toUpperCase()]||{};return e===T1||e===eI?Je(t):ft(Je(t),Je(M_[jh]),!1)}else return ft(Je(e),Je(M_[jh]),!1)}function uD(e){return tI[e]}function pce(){return tI[jh]}tU(eI,hce);tU(T1,dce);var rI=1e3,nI=rI*60,zp=nI*60,Va=zp*24,UO=Va*365,sp={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}"},jy="{yyyy}-{MM}-{dd}",WO={year:"{yyyy}",month:"{yyyy}-{MM}",day:jy,hour:jy+" "+sp.hour,minute:jy+" "+sp.minute,second:jy+" "+sp.second,millisecond:sp.none},qx=["year","month","day","hour","minute","second","millisecond"],rU=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Al(e,t){return e+="","0000".substr(0,t-e.length)+e}function Kh(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 gce(e){return e===Kh(e)}function mce(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function tb(e,t,r,n){var i=ss(e),a=i[iI(r)](),o=i[Jh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[rb(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Sg(r)](),f=(c-1)%12+1,h=i[nb(r)](),d=i[ib(r)](),v=i[ab(r)](),p=c>=12?"pm":"am",m=p.toUpperCase(),y=n instanceof nr?n:uD(n||eU)||pce(),S=y.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),C=S.get("dayOfWeek"),x=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Al(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Al(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Al(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Al(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Al(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Al(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Al(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Al(v,3)).replace(/{S}/g,v+"")}function yce(e,t,r,n,i){var a=null;if(Ne(r))a=r;else if(Xe(r))a=r(e.value,t,{level:e.level});else{var o=de({},sp);if(e.level>0)for(var s=0;s<qx.length;++s)o[qx[s]]="{primary|"+o[qx[s]]+"}";var l=r?r.inherit===!1?r:qe(r,o):o,u=nU(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=rU.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Se(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return tb(new Date(e.value),a,i,n)}function nU(e,t){var r=ss(e),n=r[Jh(t)]()+1,i=r[rb(t)](),a=r[Sg(t)](),o=r[nb(t)](),s=r[ib(t)](),l=r[ab(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function YO(e,t,r){var n=$t(e)?ss(e):e;switch(t=t||nU(e,r),t){case"year":return n[iI(r)]();case"half-year":return n[Jh(r)]()>=6?1:0;case"quarter":return Math.floor((n[Jh(r)]()+1)/4);case"month":return n[Jh(r)]();case"day":return n[rb(r)]();case"half-day":return n[Sg(r)]()/24;case"hour":return n[Sg(r)]();case"minute":return n[nb(r)]();case"second":return n[ib(r)]();case"millisecond":return n[ab(r)]()}}function iI(e){return e?"getUTCFullYear":"getFullYear"}function Jh(e){return e?"getUTCMonth":"getMonth"}function rb(e){return e?"getUTCDate":"getDate"}function Sg(e){return e?"getUTCHours":"getHours"}function nb(e){return e?"getUTCMinutes":"getMinutes"}function ib(e){return e?"getUTCSeconds":"getSeconds"}function ab(e){return e?"getUTCMilliseconds":"getMilliseconds"}function _ce(e){return e?"setUTCFullYear":"setFullYear"}function iU(e){return e?"setUTCMonth":"setMonth"}function aU(e){return e?"setUTCDate":"setDate"}function oU(e){return e?"setUTCHours":"setHours"}function sU(e){return e?"setUTCMinutes":"setMinutes"}function lU(e){return e?"setUTCSeconds":"setSeconds"}function uU(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cU(e){if(!aH(e))return Ne(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function fU(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Od=PM;function cD(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&uo(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ss(e):e;if(isNaN(+l)){if(s)return"-"}else return tb(l,n,r)}if(t==="ordinal")return MA(e)?i(e):$t(e)&&a(e)?e+"":"-";var u=Ks(e);return a(u)?cU(u):MA(e)?i(e):typeof e=="boolean"?e+"":"-"}var XO=["a","b","c","d","e","f","g"],jx=function(e,t){return"{"+e+(t??"")+"}"};function hU(e,t,r){Se(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=XO[a];e=e.replace(jx(o),jx(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(jx(XO[l],s),r?Bi(u):u)}return e}function Sce(e,t,r){return E(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function bce(e,t){var r=Ne(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return 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:'+Bi(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bi(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function bf(e,t){return t=t||"transparent",Ne(e)?e:Ke(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function A1(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var I_=E,dU=["left","right","top","bottom","width","height"],Hc=[["width","left","right"],["height","top","bottom"]];function aI(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),d,v;if(e==="horizontal"){var p=c.width+(h?-h.x+c.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var sf=aI;st(aI,"vertical");st(aI,"horizontal");function wce(e,t,r){var n=t.width,i=t.height,a=Ee(e.left,n),o=Ee(e.top,i),s=Ee(e.right,n),l=Ee(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Od(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function yn(e,t,r){r=Od(r||0);var n=t.width,i=t.height,a=Ee(e.left,n),o=Ee(e.top,i),s=Ee(e.right,n),l=Ee(e.bottom,i),u=Ee(e.width,n),c=Ee(e.height,i),f=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new ht(a+r[3],o+r[0],u,c);return v.margin=r,v}function ob(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new ht(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=yn(qe({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=d):(a.x+=h,a.y+=d),a===e&&e.markRedraw(),!0}function xce(e,t){return e[Hc[t][0]]!=null||e[Hc[t][1]]!=null&&e[Hc[t][2]]!=null}function bg(e){var t=e.layoutMode||e.constructor.layoutMode;return Ke(t)?t:t?{type:t}:null}function Su(e,t,r){var n=r&&r.ignoreSize;!Se(n)&&(n=[n,n]);var i=o(Hc[0],0),a=o(Hc[1],1);u(Hc[0],e,i),u(Hc[1],e,a);function o(c,f){var h={},d=0,v={},p=0,m=2;if(I_(c,function(b){v[b]=e[b]}),I_(c,function(b){s(t,b)&&(h[b]=v[b]=t[b]),l(h,b)&&d++,l(v,b)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===m||!d)return v;if(d>=m)return h;for(var y=0;y<c.length;y++){var S=c[y];if(!s(h,S)&&s(e,S)){h[S]=e[S];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){I_(c,function(d){f[d]=h[d]})}}function Nd(e){return vU({},e)}function vU(e,t){return t&&e&&I_(dU,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Cce=Nt(),Dt=function(e){Q(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=kd("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=bg(this),a=i?Nd(r):{},o=n.getTheme();ft(r,o.get(this.mainType)),ft(r,this.getDefaultOption()),i&&Su(r,a,i)},t.prototype.mergeOption=function(r,n){ft(this.option,r,!0);var i=bg(this);i&&Su(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!vle(r))return r.defaultOption;var n=Cce(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ft(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return tm(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(nr);pH(Dt,nr);US(Dt);cce(Dt);fce(Dt,Tce);function Tce(e){var t=[];return E(Dt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=we(t,function(r){return qo(r).main}),e!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}var pU="";typeof navigator<"u"&&(pU=navigator.platform||"");var lh="rgba(0, 0, 0, 0.2)";const Ace={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:lh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:lh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:lh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:lh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:lh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:lh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pU.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gU=He(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xa="original",ai="arrayRows",Za="objectRows",cs="keyedColumns",uu="typedArray",mU="unknown",es="column",Fd="row",$n={Must:1,Might:2,Not:3},yU=Nt();function Dce(e){yU(e).datasetMap=He()}function _U(e,t,r){var n={},i=sI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=yU(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),E(e,function(p,m){var y=Ke(p)?p:e[m]={name:p};y.type==="ordinal"&&c==null&&(c=m,f=v(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});E(e,function(p,m){var y=p.name,S=v(p);if(c==null){var b=h.valueWayDim;d(n[y],b,S),d(o,b,S),h.valueWayDim+=S}else if(c===m)d(n[y],0,S),d(a,0,S);else{var b=h.categoryWayDim;d(n[y],b,S),d(o,b,S),h.categoryWayDim+=S}});function d(p,m,y){for(var S=0;S<y;S++)p.push(m+S)}function v(p){var m=p.dimsDef;return m?m.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function oI(e,t,r){var n={},i=sI(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Za||a===cs)&&E(o,function(c,f){(Ke(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],d=0,v=Math.min(5,r);d<v;d++){var p=bU(t.data,a,t.seriesLayoutBy,o,t.startIndex,d);h.push(p);var m=p===$n.Not;if(m&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!m&&h[c.n]===$n.Not)&&(c.n=d),y(c)&&h[c.n]!==$n.Not)return c;m||(p===$n.Might&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v)&&(f.n=d))}function y(S){return S.v!=null&&S.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function sI(e){var t=e.get("data",!0);if(!t)return tm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},cn).models[0]}function Mce(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:tm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},cn).models}function SU(e,t){return bU(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function bU(e,t,r,n,i,a){var o,s=5;if(Hi(e))return $n.Not;var l,u;if(n){var c=n[a];Ke(c)?(l=c.name,u=c.type):Ne(c)&&(l=c)}if(u!=null)return u==="ordinal"?$n.Must:$n.Not;if(t===ai){var f=e;if(r===Fd){for(var h=f[a],d=0;d<(h||[]).length&&d<s;d++)if((o=w(h[i+d]))!=null)return o}else for(var d=0;d<f.length&&d<s;d++){var v=f[i+d];if(v&&(o=w(v[a]))!=null)return o}}else if(t===Za){var p=e;if(!l)return $n.Not;for(var d=0;d<p.length&&d<s;d++){var m=p[d];if(m&&(o=w(m[l]))!=null)return o}}else if(t===cs){var y=e;if(!l)return $n.Not;var h=y[l];if(!h||Hi(h))return $n.Not;for(var d=0;d<h.length&&d<s;d++)if((o=w(h[d]))!=null)return o}else if(t===Xa)for(var S=e,d=0;d<S.length&&d<s;d++){var m=S[d],b=Id(m);if(!Se(b))return $n.Not;if((o=w(b[a]))!=null)return o}function w(C){var x=Ne(C);if(C!=null&&Number.isFinite(Number(C))&&C!=="")return x?$n.Might:$n.Not;if(x&&C!=="-")return $n.Must}return $n.Not}var fD=He();function Ice(e,t){wi(fD.get(e)==null&&t),fD.set(e,t)}function Lce(e,t,r){var n=fD.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var ZO=Nt(),Pce=Nt(),lI=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=cr(this.get("color",!0)),a=this.get("colorLayer",!0);return wU(this,ZO,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Rce(this,ZO)},e}();function hD(e,t,r,n){var i=cr(e.get(["aria","decal","decals"]));return wU(e,Pce,i,null,t,r,n)}function Ece(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function wU(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Ece(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Rce(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ky,bv,qO,jO="\0_ec_inner",kce=1,uI=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new nr(a),this._locale=new nr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=QO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,QO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?qO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&E(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=He(),u=n&&n.replaceMergeMainTypeMap;Dce(this),E(r,function(f,h){f!=null&&(Dt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Je(f):ft(i[h],f,!0))}),u&&u.each(function(f,h){Dt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Dt.topologicalTravel(s,Dt.getAllClassMainTypes(),c,this);function c(f){var h=Lce(this,f,cr(r[f])),d=a.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=cH(d,h,v);ale(p,f,Dt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,b;E(p,function(w,C){var x=w.existing,A=w.newOption;if(!A)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=f==="series",M=Dt.getClass(f,w.keyInfo.subType,!D);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(A,this),x.optionUpdated(A,!1);else{var I=de({componentIndex:C},w.keyInfo);x=new M(A,this,this,I),de(x,I),w.brandNew&&(x.__requireNewView=!0),x.init(A,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),y.push(x),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&Ky(this)}this._seriesIndices||Ky(this)},t.prototype.getOption=function(){var r=Je(this.option);return E(r,function(n,i){if(Dt.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!gg(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[jO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],E(cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=KO("id",a,s):o!=null?l=KO("name",o,s):l=sr(s,function(u){return!!u}),JO(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):sr(this._componentsMap.get(i),function(u){return!!u});return l(JO(o,r));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return r.filter?sr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Xe(r)){var o=n,s=r;a.each(function(f,h){for(var d=0;f&&d<f.length;d++){var v=f[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=Ne(r)?a.get(r):Ke(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=mn(r,null);return sr(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return sr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return sr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){bv(this),E(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){E(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){bv(this),E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return E(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return bv(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){bv(this);var i=[];E(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=He(i)},t.prototype.restoreData=function(r){Ky(this);var n=this._componentsMap,i=[];n.each(function(a,o){Dt.hasClass(o)&&i.push(o)}),Dt.topologicalTravel(i,Dt.getAllClassMainTypes(),function(a){E(n.get(a),function(o){o&&(a!=="series"||!Oce(o,r))&&o.restoreData()})})},t.internalField=function(){Ky=function(r){var n=r._seriesIndices=[];E(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=He(n)},bv=function(r){},qO=function(r,n){r.option={},r.option[jO]=kce,r._componentsMap=He({series:[]}),r._componentsCount=He();var i=n.aria;Ke(i)&&i.enabled==null&&(i.enabled=!0),Nce(n,r._theme.option),ft(n,Ace,!1),r._mergeOption(n,null)}}(),t}(nr);function Oce(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Nce(e,t){var r=e.color&&!e.colorLayer;E(t,function(n,i){i==="colorLayer"&&r||Dt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?ft(e[i],n,!1):Je(n):e[i]==null&&(e[i]=n))})}function KO(e,t,r){if(Se(t)){var n=He();return E(t,function(a){if(a!=null){var o=mn(a,null);o!=null&&n.set(a,!0)}}),sr(r,function(a){return a&&n.get(a[e])})}else{var i=mn(t,null);return sr(r,function(a){return a&&i!=null&&a[e]===i})}}function JO(e,t){return t.hasOwnProperty("subType")?sr(e,function(r){return r&&r.subType===t.subType}):e}function QO(e){var t=He();return e&&E(cr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}dn(uI,lI);var Fce=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],xU=function(){function e(t){E(Fce,function(r){this[r]=Fe(t[r],t)},this)}return e}(),Kx={},lm=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];E(Kx,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){E(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Kx[t]=r},e.get=function(t){return Kx[t]},e}(),Bce=/^(min|max)?(.+)$/,Vce=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(E(cr(t.series),function(o){o&&o.data&&Hi(o.data)&&u1(o.data)}),E(cr(t.dataset),function(o){o&&o.source&&Hi(o.source)&&u1(o.source)})),t=Je(t);var i=this._optionBackup,a=zce(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Je(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Je(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Gce(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Hce(o,this._currentMediaIndices)&&(s=we(o,function(c){return Je(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function zce(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&Se(u)&&E(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),E(l,function(d){return h(d)}),E(n,function(d){return h(d.option)});function h(d){E(t,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Gce(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return E(e,function(a,o){var s=o.match(Bce);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();$ce(n[u],a,l)||(i=!1)}}),i}function $ce(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Hce(e,t){return e.join(",")===t.join(",")}var eo=E,wg=Ke,eN=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Jx(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=eN.length;r<n;r++){var i=eN[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ft(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ft(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function ei(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,qe(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function lp(e){ei(e,"itemStyle"),ei(e,"lineStyle"),ei(e,"areaStyle"),ei(e,"label"),ei(e,"labelLine"),ei(e,"upperLabel"),ei(e,"edgeLabel")}function ln(e,t){var r=wg(e)&&e[t],n=wg(r)&&r.textStyle;if(n)for(var i=0,a=oO.length;i<a;i++){var o=oO[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function La(e){e&&(lp(e),ln(e,"label"),e.emphasis&&ln(e.emphasis,"label"))}function Uce(e){if(wg(e)){Jx(e),lp(e),ln(e,"label"),ln(e,"upperLabel"),ln(e,"edgeLabel"),e.emphasis&&(ln(e.emphasis,"label"),ln(e.emphasis,"upperLabel"),ln(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Jx(t),La(t));var r=e.markLine;r&&(Jx(r),La(r));var n=e.markArea;n&&La(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Hi(a))for(var o=0;o<a.length;o++)La(a[o]);E(e.categories,function(u){lp(u)})}if(i&&!Hi(i))for(var o=0;o<i.length;o++)La(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)La(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Se(l[o])?(La(l[o][0]),La(l[o][1])):La(l[o]);e.type==="gauge"?(ln(e,"axisLabel"),ln(e,"title"),ln(e,"detail")):e.type==="treemap"?(ei(e.breadcrumb,"itemStyle"),E(e.levels,function(u){lp(u)})):e.type==="tree"&&lp(e.leaves)}}function Ts(e){return Se(e)?e:e?[e]:[]}function tN(e){return(Se(e)?e[0]:e)||{}}function Wce(e,t){eo(Ts(e.series),function(n){wg(n)&&Uce(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),eo(r,function(n){eo(Ts(e[n]),function(i){i&&(ln(i,"axisLabel"),ln(i.axisPointer,"label"))})}),eo(Ts(e.parallel),function(n){var i=n&&n.parallelAxisDefault;ln(i,"axisLabel"),ln(i&&i.axisPointer,"label")}),eo(Ts(e.calendar),function(n){ei(n,"itemStyle"),ln(n,"dayLabel"),ln(n,"monthLabel"),ln(n,"yearLabel")}),eo(Ts(e.radar),function(n){ln(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),eo(Ts(e.geo),function(n){wg(n)&&(La(n),eo(Ts(n.regions),function(i){La(i)}))}),eo(Ts(e.timeline),function(n){La(n),ei(n,"label"),ei(n,"itemStyle"),ei(n,"controlStyle",!0);var i=n.data;Se(i)&&E(i,function(a){Ke(a)&&(ei(a,"label"),ei(a,"itemStyle"))})}),eo(Ts(e.toolbox),function(n){ei(n,"iconStyle"),eo(n.feature,function(i){ei(i,"iconStyle")})}),ln(tN(e.axisPointer),"label"),ln(tN(e.tooltip).axisPointer,"label")}function Yce(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Xce(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function rN(e){e&&E(Zce,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Zce=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],qce=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function wv(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Qx.length;r++){var n=Qx[r][1],i=Qx[r][0];t[n]!=null&&(t[i]=t[n])}}function nN(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function iN(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function jce(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function CU(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&CU(e[r].children,t)}function TU(e,t){Wce(e,t),e.series=cr(e.series),E(e.series,function(r){if(Ke(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),nN(r.label);var i=r.data;if(i&&!Hi(i))for(var a=0;a<i.length;a++)nN(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Yce(r,"pointer.color");o!=null&&Xce(r,"itemStyle.color",o)}else if(n==="bar"){wv(r),wv(r.backgroundStyle),wv(r.emphasis);var i=r.data;if(i&&!Hi(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(wv(i[a]),wv(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),iN(r),CU(r.data,iN)}else n==="graph"||n==="sankey"?jce(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&qe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),rN(r)}}),e.dataRange&&(e.visualMap=e.dataRange),E(qce,function(r){var n=e[r];n&&(Se(n)||(n=[n]),E(n,function(i){rN(i)}))})}function Kce(e){var t=He();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(Jce)}function Jce(e){E(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var h=o.get(t.stackedDimension,f);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(f):d=o.get(t.stackedByDimension,f);for(var p=NaN,m=r-1;m>=0;m--){var y=e[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,d)),v>=0){var S=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=Zse(h,S),p=S;break}}}return n[0]=h,n[1]=p,n})})}var sb=function(){function e(t){this.data=t.data||(t.sourceFormat===cs?{}:[]),this.sourceFormat=t.sourceFormat||mU,this.seriesLayoutBy=t.seriesLayoutBy||es,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&SU(this,n)===$n.Must&&(i.type="ordinal")}}return e}();function cI(e){return e instanceof sb}function dD(e,t,r){r=r||AU(e);var n=t.seriesLayoutBy,i=efe(e,r,n,t.sourceHeader,t.dimensions),a=new sb({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Je(t)});return a}function fI(e){return new sb({data:e,sourceFormat:Hi(e)?uu:Xa})}function Qce(e){return new sb({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Je(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function AU(e){var t=mU;if(Hi(e))t=uu;else if(Se(e)){e.length===0&&(t=ai);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(Se(i)||Hi(i)){t=ai;break}else if(Ke(i)){t=Za;break}}}}else if(Ke(e)){for(var a in e)if(Ve(e,a)&&ii(e[a])){t=cs;break}}return t}function efe(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:aN(i),startIndex:o,dimensionsDetectedCount:a};if(t===ai){var s=e;n==="auto"||n==null?oN(function(u){u!=null&&u!=="-"&&(Ne(u)?o==null&&(o=1):o=0)},r,s,10):o=$t(n)?n:n?1:0,!i&&o===1&&(i=[],oN(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Fd?s.length:s[0]?s[0].length:null}else if(t===Za)i||(i=tfe(e));else if(t===cs)i||(i=[],E(e,function(u,c){i.push(c)}));else if(t===Xa){var l=Id(e[0]);a=Se(l)&&l.length||1}return{startIndex:o,dimensionsDefine:aN(i),dimensionsDetectedCount:a}}function tfe(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Mt(r)}function aN(e){if(e){var t=He();return we(e,function(r,n){r=Ke(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function oN(e,t,r,n){if(t===Fd)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function DU(e){var t=e.sourceFormat;return t===Za||t===cs}var lc,uc,cc,sN,lN,MU=function(){function e(t,r){var n=cI(t)?t:fI(t);this._source=n;var i=this._data=n.data;n.sourceFormat===uu&&(this._offset=0,this._dimSize=r,this._data=i),lN(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;lN=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=sN[hI(u,c)];if(de(o,d),u===uu)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=IU(u,c);o.getItem=Fe(v,null,s,f,h);var p=LU(u,c);o.count=Fe(p,null,s,f,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],m=s-o,y=l[h],S=0;S<m;S++){var b=c[S*f+h];y[o+S]=b,b<v&&(v=b),b>p&&(p=b)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};sN=(t={},t[ai+"_"+es]={pure:!0,appendData:a},t[ai+"_"+Fd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Za]={pure:!0,appendData:a},t[cs]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Xa]={appendData:a},t[uu]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),uN=function(e,t,r,n){return e[n]},rfe=(lc={},lc[ai+"_"+es]=function(e,t,r,n){return e[n+t]},lc[ai+"_"+Fd]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},lc[Za]=uN,lc[cs]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},lc[Xa]=uN,lc);function IU(e,t){var r=rfe[hI(e,t)];return r}var cN=function(e,t,r){return e.length},nfe=(uc={},uc[ai+"_"+es]=function(e,t,r){return Math.max(0,e.length-t)},uc[ai+"_"+Fd]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},uc[Za]=cN,uc[cs]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},uc[Xa]=cN,uc);function LU(e,t){var r=nfe[hI(e,t)];return r}var eC=function(e,t,r){return e[t]},ife=(cc={},cc[ai]=eC,cc[Za]=function(e,t,r){return e[r]},cc[cs]=eC,cc[Xa]=function(e,t,r){var n=Id(e);return n instanceof Array?n[t]:n},cc[uu]=eC,cc);function PU(e){var t=ife[e];return t}function hI(e,t){return e===ai?e+"_"+t:e}function ld(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return PU(a)(n,o,s)}else{var l=n;return a===Xa&&(l=Id(n)),l}}}}var afe=/\{@(.+?)\}/g,lb=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",d=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Se(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Xe(a))return l.status=r,l.dimensionIndex=i,a(l);if(Ne(a)){var c=hU(a,l);return c.replace(afe,function(f,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=ld(s,t,v);if(o&&Se(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return ld(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function fN(e){var t,r;return Ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Gp(e){return new ofe(e)}var ofe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d<v)){var p=this._progress;if(Se(p))for(var m=0;m<p.length;m++)this._doProgress(p[m],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){hN.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:hN.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Se(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),hN=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function cu(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!$t(e)&&e!=null&&e!=="-"&&(e=+ss(e)),e==null||e===""?NaN:Number(e))}var sfe=He({number:function(e){return parseFloat(e)},time:function(e){return+ss(e)},trim:function(e){return Ne(e)?uo(e):e}});function EU(e){return sfe.get(e)}var RU={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}},lfe=function(){function e(t,r){if(!$t(r)){var n="";tr(n)}this._opFn=RU[t],this._rvalFloat=Ks(r)}return e.prototype.evaluate=function(t){return $t(t)?this._opFn(t,this._rvalFloat):this._opFn(Ks(t),this._rvalFloat)},e}(),kU=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=$t(t)?t:Ks(t),i=$t(r)?r:Ks(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ne(t),l=Ne(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),ufe=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ks(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ks(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function cfe(e,t){return e==="eq"||e==="ne"?new ufe(e==="eq",t):Ve(RU,e)?new lfe(e,t):null}var ffe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return cu(t,r)},e}();function hfe(e,t){var r=new ffe,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==es&&tr(o);var s=[],l={},u=e.dimensionsDefine;if(u)E(u,function(p,m){var y=p.name,S={index:m,name:y,displayName:p.displayName};if(s.push(S),y!=null){var b="";Ve(l,y)&&tr(b),l[y]=S}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=IU(i,es);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,a,s,p)},r.getRawData=Fe(dfe,null,e)),r.cloneRawData=Fe(vfe,null,e);var h=LU(i,es);r.count=Fe(h,null,n,a,s);var d=PU(i);r.retrieveValue=function(p,m){var y=f(n,a,s,p);return v(y,m)};var v=r.retrieveValueFromItem=function(p,m){if(p!=null){var y=s[m];if(y)return d(p,m,y.name)}};return r.getDimensionInfo=Fe(pfe,null,s,l),r.cloneAllDimensionInfo=Fe(gfe,null,s),r}function dfe(e){var t=e.sourceFormat;if(!dI(t)){var r="";tr(r)}return e.data}function vfe(e){var t=e.sourceFormat,r=e.data;if(!dI(t)){var n="";tr(n)}if(t===ai){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Za){for(var i=[],a=0,o=r.length;a<o;a++)i.push(de({},r[a]));return i}}function pfe(e,t,r){if(r!=null){if($t(r)||!isNaN(r)&&!Ve(t,r))return e[r];if(Ve(t,r))return t[r]}}function gfe(e){return Je(e)}var OU=He();function mfe(e){e=Je(e);var t=e.type,r="";t||tr(r);var n=t.split(":");n.length!==2&&tr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,OU.set(t,e)}function yfe(e,t,r){var n=cr(e),i=n.length,a="";i||tr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=_fe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function _fe(e,t,r,n){var i="";t.length||tr(i),Ke(e)||tr(i);var a=e.type,o=OU.get(a);o||tr(i);var s=we(t,function(u){return hfe(u,o)}),l=cr(o.transform({upstream:s[0],upstreamList:s,config:Je(e.config)}));return we(l,function(u,c){var f="";Ke(u)||tr(f),u.data||tr(f);var h=AU(u.data);dI(h)||tr(f);var d,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:es,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:es,sourceHeader:0,dimensions:u.dimensions};return dD(u.data,d,null)})}function dI(e){return e===ai||e===Za}var ub="undefined",Sfe=typeof Uint32Array===ub?Array:Uint32Array,bfe=typeof Uint16Array===ub?Array:Uint16Array,NU=typeof Int32Array===ub?Array:Int32Array,dN=typeof Float64Array===ub?Array:Float64Array,FU={float:dN,int:NU,ordinal:Array,number:Array,time:dN},tC;function xv(e){return e>65535?Sfe:bfe}function uh(){return[1/0,-1/0]}function wfe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function vN(e,t,r,n,i){var a=FU[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var vD=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=He()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=tC[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],DU(i),this._dimensions=we(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new FU[r||"float"](this._rawCount),this._rawExtent[a]=uh(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=uh());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];vN(n,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var c=i[v],p=tC.arrayRows.call(this,t[d]||f,c.property,d,v);n[v][h]=p;var m=o[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=we(o,function(S){return S.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=uh()),vN(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],d=t;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],m=this._dimValueGetter(h,u[v],d,v);p[d]=m;var y=l[v];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=xv(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=xv(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=f[c][v];d=r(p,h)}else{for(var m=0;m<l;m++)s[m]=f[t[m]][v];s[m]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Mt(t),a=i.length;if(!a)return this;var o=r.count(),s=xv(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],h=t[c][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var m=d[i[0]],y=0;y<n;y++){var S=m[y];(S>=f&&S<=h||isNaN(S))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var m=d[i[0]],b=d[i[1]],w=t[i[1]][0],C=t[i[1]][1],y=0;y<n;y++){var S=m[y],x=b[y];(S>=f&&S<=h||isNaN(S))&&(x>=w&&x<=C||isNaN(x))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var y=0;y<o;y++){var A=r.getRawIndex(y),S=d[i[0]][A];(S>=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;y<o;y++){for(var D=!0,A=r.getRawIndex(y),M=0;M<a;M++){var I=i[M],S=d[I][A];(S<t[I][0]||S>t[I][1])&&(D=!1)}D&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=uh();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var p=r[c],m=v[c],y=u[p],S=i[p];S&&(S[h]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,d=new(xv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),m=Math.min(v+l*2,o),y=(m+p)/2,S=0,b=p;b<m;b++){var w=this.getRawIndex(b),C=a[w];isNaN(C)||(S+=C)}S/=m-p;var x=v,A=Math.min(v+l,o),D=v-1,M=a[u];c=-1,h=x;for(var I=-1,P=0,b=x;b<A;b++){var w=this.getRawIndex(b),C=a[w];if(isNaN(C)){P++,I<0&&(I=w);continue}f=Math.abs((D-y)*(C-M)-(D-b)*(S-M)),f>c&&(c=f,h=w)}P>0&&P<A-x&&(d[s++]=Math.min(I,h),h=Math.max(I,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=uh(),h=new(xv(this._rawCount))(Math.ceil(c/l)),d=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var m=this.getRawIndex(v+p);s[p]=u[m]}var y=n(s),S=this.getRawIndex(Math.min(v+i(s,y)||0,c-1));u[S]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),h[d++]=S}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=uh();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&is(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?wfe(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Je(this._extent),t._rawExtent=Je(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return cu(r[a],this._dimensions[a])}tC={arrayRows:t,objectRows:function(r,n,i,a){return cu(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return cu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),BU=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,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 t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Jy(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Hi(s)?uu:Xa,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=ot(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=ot(f.sourceHeader,h.sourceHeader),p=ot(f.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=m?[dD(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=y.get("source",!0);i=[dD(b,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&gN(a)}var o,s=[],l=[];return E(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&gN(f),s.push(c),l.push(u._getVersionSign())}),n?o=yfe(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Qce(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Jy(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new vD,s.initData(new MU(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Jy(t)){var r=sI(t);return r?[r.getSourceManager()]:[]}else return we(Mce(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Jy(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function pN(e){var t=e.option.transform;t&&u1(e.option.transform)}function Jy(e){return e.mainType==="series"}function gN(e){throw new Error(e)}var VU="line-height:1";function zU(e,t){var r=e.color||"#6e7079",n=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:"+Bi(n+"")+"px;color:"+Bi(r)+";font-weight:"+Bi(i+""),valueStyle:"font-size:"+Bi(o+"")+"px;color:"+Bi(a)+";font-weight:"+Bi(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var xfe=[0,10,20,30],Cfe=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function Mn(e,t){return t.type=e,t}function pD(e){return e.type==="section"}function GU(e){return pD(e)?Tfe:Afe}function $U(e){if(pD(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return E(e.blocks,function(i){var a=$U(i);a>=t&&(t=a+ +(n&&(!a||pD(i)&&!i.noHeader)))}),t}return 0}function Tfe(e,t,r,n){var i=t.noHeader,a=Dfe($U(t)),o=[],s=t.blocks||[];wi(!s||Se(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ve(u,l)){var c=new kU(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(v,p){var m=t.valueFormatter,y=GU(v)(m?de(de({},e),{valueFormatter:m}):e,v,p>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):gD(o.join(""),i?r:a.html);if(i)return f;var h=cD(t.header,"ordinal",e.useUTC),d=zU(n,e.renderMode).nameStyle;return e.renderMode==="richText"?HU(e,h,d)+a.richText+f:gD('<div style="'+d+";"+VU+';">'+Bi(h)+"</div>"+f,r)}function Afe(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Se(w)?w:[w],we(w,function(C,x){return cD(C,Se(d)?d[x]:d,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":cD(l,"ordinal",u),d=t.valueType,v=o?[]:c(t.value,t.dataIndex),p=!s||!a,m=!s&&a,y=zU(n,i),S=y.nameStyle,b=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":HU(e,h,S))+(o?"":Lfe(e,v,p,m,b)):gD((s?"":f)+(a?"":Mfe(h,!s,S))+(o?"":Ife(v,p,m,b)),r)}}function mN(e,t,r,n,i,a){if(e){var o=GU(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Dfe(e){return{html:xfe[e],richText:Cfe[e]}}function gD(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+VU+';">'+e+r+"</div>"}function Mfe(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Bi(e)+"</span>"}function Ife(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Se(e)?e:[e],'<span style="'+a+";"+n+'">'+we(e,function(o){return Bi(o)}).join(" ")+"</span>"}function HU(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Lfe(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Se(t)?t.join(" "):t,a)}function UU(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bf(n)}function WU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=bce({color:r,type:t,renderMode:n,markerId:i});return Ne(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Se(r)?E(r,function(a){return de(n,a)}):de(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function YU(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Se(s),u=UU(t,r),c,f,h,d;if(o>1||l&&!o){var v=Pfe(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=c=ld(i,r,a[0]),f=p.type}else d=c=l?s[0]:s;var m=VM(t),y=m&&t.name||"",S=i.getName(r),b=n?y:S;return Mn("section",{header:y,noHeader:n||!m,sortParam:d,blocks:[Mn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!uo(b),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function Pfe(e,t,r,n,i){var a=t.getData(),o=is(e,function(f,h,d){var v=a.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?E(n,function(f){c(ld(a,r,f),f)}):E(e,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Mn("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Dl=Nt();function Qy(e,t){return e.getName(t)||e.getId(t)}var L_="__universalTransitionEnabled",Dr=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Gp({count:Rfe,reset:kfe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Dl(this).sourceManager=new BU(this);a.prepareSource();var o=this.getInitialData(r,i);_N(o,this),this.dataTask.context.data=o,Dl(this).dataBeforeProcessed=o,yN(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=bg(this),a=i?Nd(r):{},o=this.subType;Dt.hasClass(o)&&(o+="Series"),ft(r,n.getTheme().get(this.subType)),ft(r,this.getDefaultOption()),mf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Su(r,a,i)},t.prototype.mergeOption=function(r,n){r=ft(this.option,r,!0),this.fillDataTextStyle(r.data);var i=bg(this);i&&Su(this.option,r,i);var a=Dl(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);_N(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Dl(this).dataBeforeProcessed=o,yN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Hi(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&mf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=mD(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Dl(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=mD(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Dl(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return He(r)},t.prototype.getSourceManager=function(){return Dl(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Dl(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return YU({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(At.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=lI.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Qy(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Mt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Qy(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[L_])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ke(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],h=Qy(r,f);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var d=n[l-1],h=Qy(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Dt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Dt);dn(Dr,lb);dn(Dr,lI);pH(Dr,Dt);function yN(e){var t=e.name;VM(e)||(e.name=Efe(e)||t)}function Efe(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return E(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Rfe(e){return e.model.getRawData().count()}function kfe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Ofe}function Ofe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _N(e,t){E(c1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,st(Nfe,t))})}function Nfe(e,t){var r=mD(e);return r&&r.setOutputEnd((t||this).count()),t}function mD(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Br=function(){function e(){this.group=new et,this.uid=kd("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();GM(Br);US(Br);function Bd(){var e=Nt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var XU=Nt(),Ffe=Bd(),pr=function(){function e(){this.group=new et,this.uid=kd("viewChart"),this.renderTask=Gp({plan:Bfe,reset:Vfe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&bN(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&bN(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Iu(this.group,t)},e.markUpdateMethod=function(t,r){XU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function SN(e,t,r){e&&yg(e)&&(t==="emphasis"?Js:Qs)(e,r)}function bN(e,t,r){var n=yf(e,t),i=t&&t.highlightKey!=null?bue(t.highlightKey):null;n!=null?E(cr(n),function(a){SN(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){SN(a,r,i)})}GM(pr);US(pr);function Bfe(e){return Ffe(e.model)}function Vfe(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&XU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),zfe[l]}var zfe={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)}}},D1="\0__throttleOriginMethod",wN="\0__throttleRate",xN="\0__throttleType";function vI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=c||t,m=c||r;c=null,s=n-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function Vd(e,t,r,n){var i=e[t];if(i){var a=i[D1]||i,o=i[xN],s=i[wN];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=vI(a,r,n==="debounce"),i[D1]=a,i[xN]=n,i[wN]=r}return i}}function xg(e,t){var r=e[t];r&&r[D1]&&(r.clear&&r.clear(),e[t]=r[D1])}var CN=Nt(),TN={itemStyle:_f(QH,!0),lineStyle:_f(JH,!0)},Gfe={lineStyle:"stroke",itemStyle:"fill"};function ZU(e,t){var r=e.visualStyleMapper||TN[t];return r||(console.warn("Unknown style type '"+t+"'."),TN.itemStyle)}function qU(e,t){var r=e.visualDrawType||Gfe[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var $fe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=ZU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=qU(e,n),u=o[l],c=Xe(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Xe(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Xe(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),m=de({},o);m[l]=c(p),d.setItemVisual(v,"style",m)}}}},Cv=new nr,Hfe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=ZU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Cv.option=l[n];var u=i(Cv),c=o.ensureUniqueItemVisual(s,"style");de(c,u),Cv.option.decal&&(o.setItemVisual(s,"decal",Cv.option.decal),Cv.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ufe={performRawSeries:!0,overallReset:function(e){var t=He();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),CN(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=CN(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=qU(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},e0=Math.PI;function Wfe(e,t){t=t||{},qe(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 r=new et,n=new Ot({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new zt({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 Ot({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new KS({shape:{startAngle:-e0/2,endAngle:-e0/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:e0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e0*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var jU=function(){function e(t,r,n,i){this._stageTaskMap=He(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=He();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;E(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";wi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;E(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(m){m.perform(p)}),h.perform(p)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var S=o.getPerformArgs(m,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=He(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,d=s.set(h,o&&o.get(h)||Gp({plan:jfe,reset:Kfe,count:Qfe}));d.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Gp({reset:Yfe});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=He(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";wi(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,E(n.getSeries(),v));function v(p){var m=p.uid,y=l.set(m,s&&s.get(m)||(h=!0,Gp({reset:Xfe,onDirty:qfe})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,a._pipe(p,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Xe(t)&&(t={overallReset:t,seriesType:ehe(t)}),t.uid=kd("stageHandler"),r&&(t.visualType=r),t},e}();function Yfe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xfe(e){return e.overallProgress&&Zfe}function Zfe(){this.agent.dirty(),this.getDownstream().dirty()}function qfe(){this.agent&&this.agent.dirty()}function jfe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Kfe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?we(t,function(r,n){return KU(n)}):Jfe}var Jfe=KU(0);function KU(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function Qfe(e){return e.data.count()}function ehe(e){M1=null;try{e(Cg,JU)}catch{}return M1}var Cg={},JU={},M1;QU(Cg,uI);QU(JU,xU);Cg.eachSeriesByType=Cg.eachRawSeriesByType=function(e){M1=e};Cg.eachComponent=function(e){e.mainType==="series"&&e.subType&&(M1=e.subType)};function QU(e,t){for(var r in t.prototype)e[r]=rn}var AN=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const the={color:AN,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],AN]};var hi="#B9B8CE",DN="#100C2A",t0=function(){return{axisLine:{lineStyle:{color:hi}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},MN=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],e8={darkMode:!0,color:MN,backgroundColor:DN,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:hi}},textStyle:{color:hi},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:hi}},dataZoom:{borderColor:"#71708A",textStyle:{color:hi},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:hi}},timeline:{lineStyle:{color:hi},label:{color:hi},controlStyle:{color:hi,borderColor:hi}},calendar:{itemStyle:{color:DN},dayLabel:{color:hi},monthLabel:{color:hi},yearLabel:{color:hi}},timeAxis:t0(),logAxis:t0(),valueAxis:t0(),categoryAxis:t0(),line:{symbol:"circle"},graph:{color:MN},gauge:{title:{color:hi},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:hi},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};e8.categoryAxis.splitLine.show=!1;var rhe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ne(t)){var a=qo(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,h,d,v){return f[d]==null||h[v||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),yD=["symbol","symbolSize","symbolRotate","symbolOffset"],IN=yD.concat(["symbolKeepAspect"]),nhe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<yD.length;o++){var s=yD[o],l=e.get(s);Xe(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(de({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Mt(i);function c(f,h){for(var d=e.getRawValue(h),v=e.getDataParams(h),p=0;p<u.length;p++){var m=u[p];f.setItemVisual(h,m,i[m](d,v))}}return{dataEach:a?c:null}}},ihe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<IN.length;s++){var l=IN[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function pI(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function um(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function t8(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function r8(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}E([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=de({},i),o.dispatchAction(de(i,{type:n[1],seriesIndex:r(a,i)}))})})}function ch(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=yf(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Se(h)?f.getName(h[0]):f.getName(h),selected:Ne(l)?l:de({},l)})}})}function ahe(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(ch("map","selectchanged",t,i,n),ch("pie","selectchanged",t,i,n)):n.fromAction==="select"?(ch("map","selected",t,i,n),ch("pie","selected",t,i,n)):n.fromAction==="unselect"&&(ch("map","unselected",t,i,n),ch("pie","unselected",t,i,n))})}function Uc(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var ohe=Math.round(Math.random()*9),she=typeof Object.defineProperty=="function",lhe=function(){function e(){this._id="__ec_inner_"+ohe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return she?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),uhe=Ct.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),che=Ct.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),fhe=Ct.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*d,l+s+h*d,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*d,l+s+h*d,r-c,l+s),e.closePath()}}),hhe=Ct.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),dhe={line:xn,rect:Ot,roundRect:Ot,square:Ot,circle:ll,diamond:che,pin:fhe,arrow:hhe,triangle:uhe},vhe={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},I1={};E(dhe,function(e,t){I1[t]=new e});var phe=Ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=y1(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=I1[n];i||(n="rect",i=I1[n]),vhe[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function ghe(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function hn(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=UH(e.slice(8),new ht(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=JS(e.slice(7),{},new ht(t,r,n,i),o?"center":"cover"):l=new phe({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=ghe,a&&l.setColor(a),l}function zd(e){return Se(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Lf(e,t){if(e!=null)return Se(e)||(e=[e,e]),[Ee(e[0],t[0])||0,Ee(ot(e[1],e[0]),t[1])||0]}function Wc(e){return isFinite(e)}function mhe(e,t,r){var n=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;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Wc(n)?n:0,i=Wc(i)?i:1,a=Wc(a)?a:0,o=Wc(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function yhe(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Wc(o)?o:.5,s=Wc(s)?s:.5,l=l>=0&&Wc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function _D(e,t,r){for(var n=t.type==="radial"?yhe(e,t,r):mhe(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function _he(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function r0(e){return parseInt(e,10)}function Oh(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||r0(s[n])||r0(e.style[n]))-(r0(s[a])||0)-(r0(s[o])||0)|0}function She(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:$t(e)?[e]:Se(e)?e:null}function gI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&She(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=we(r,function(a){return a/i}),n/=i)}return[r,n]}var bhe=new ls(!0);function L1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function LN(e){return typeof e=="string"&&e!=="none"}function P1(e){var t=e.fill;return t!=null&&t!=="none"}function PN(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function EN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function SD(e,t,r){var n=$M(t.image,t.__image,r);if(WS(n)){var i=e.createPattern(n,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)*m_),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function whe(e,t,r,n){var i,a=L1(r),o=P1(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||bhe,f=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,m=o&&!!h.image,y=a&&!!d.image,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0;(v||p)&&(x=t.getBoundingRect()),v&&(S=f?_D(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=S),p&&(b=f?_D(e,d,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(w=f||!t.__canvasFillPattern?SD(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(C=f||!t.__canvasStrokePattern?SD(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:m&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=b:y&&(C?e.strokeStyle=C:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,M;e.setLineDash&&r.lineDash&&(i=gI(t),D=i[0],M=i[1]);var I=!0;(u||f&Th)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=M),n||(r.strokeFirst?(a&&EN(e,r),o&&PN(e,r)):(o&&PN(e,r),a&&EN(e,r))),D&&e.setLineDash([])}function xhe(e,t,r){var n=t.__image=$M(r.image,t.__image,t,t.onload);if(!(!n||!WS(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;e.drawImage(n,u,c,f,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Che(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||gu,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=gI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(L1(r)&&e.strokeText(i,r.x,r.y),P1(r)&&e.fillText(i,r.x,r.y)):(P1(r)&&e.fillText(i,r.x,r.y),L1(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var RN=["shadowBlur","shadowOffsetX","shadowOffsetY"],kN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n8(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Gi(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?rf.opacity:o}(n||t.blend!==r.blend)&&(a||(Gi(e,i),a=!0),e.globalCompositeOperation=t.blend||rf.blend);for(var s=0;s<RN.length;s++){var l=RN[s];(n||t[l]!==r[l])&&(a||(Gi(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Gi(e,i),a=!0),e.shadowColor=t.shadowColor||rf.shadowColor),a}function ON(e,t,r,n,i){var a=Tg(t,i.inHover),o=n?null:r&&Tg(r,i.inHover)||{};if(a===o)return!1;var s=n8(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Gi(e,i),s=!0),LN(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Gi(e,i),s=!0),LN(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Gi(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Gi(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<kN.length;c++){var f=kN[c],h=f[0];(n||a[h]!==o[h])&&(s||(Gi(e,i),s=!0),e[h]=a[h]||f[1])}return s}function The(e,t,r,n,i){return n8(e,Tg(t,i.inHover),r&&Tg(r,i.inHover),n,i)}function i8(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Ahe(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),i8(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function Dhe(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 NN=1,FN=2,BN=3,VN=4;function Mhe(e){var t=P1(e),r=L1(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Gi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Tg(e,t){return t&&e.__hoverStyle||e.style}function a8(e,t){Yc(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Yc(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~na,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||_he(a,o))&&(o&&o.length&&(Gi(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Gi(e,r),e.save(),Ahe(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof Ct&&t.autoBatch&&Mhe(t.style);s||Dhe(i,u.transform)?(Gi(e,r),i8(e,t)):c||Gi(e,r);var f=Tg(t,r.inHover);t instanceof Ct?(r.lastDrawType!==NN&&(l=!0,r.lastDrawType=NN),ON(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),whe(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof od?(r.lastDrawType!==BN&&(l=!0,r.lastDrawType=BN),ON(e,t,u,l,r),Che(e,t,f)):t instanceof Fn?(r.lastDrawType!==FN&&(l=!0,r.lastDrawType=FN),The(e,t,u,l,r),xhe(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==VN&&(l=!0,r.lastDrawType=VN),Ihe(e,t,r)),c&&n&&Gi(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ihe(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Yc(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Yc(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var nC=new lhe,zN=new Qg(100),GN=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ud(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&nC.delete(e);var a=nC.get(e);if(a)return a;var o=qe(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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,nC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,h=0;h<GN.length;++h){var d=o[GN[h]];if(d!=null&&!Se(d)&&!Ne(d)&&!$t(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var v;if(f){v=c.join(",")+(i?"-svg":"");var p=zN.get(v);p&&(i?u.svgElement=p:u.image=p)}var m=s8(o.dashArrayX),y=Lhe(o.dashArrayY),S=o8(o.symbol),b=Phe(m),w=l8(y),C=!i&&mu.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=M(),D;C&&(C.width=A.width*r,C.height=A.height*r,D=C.getContext("2d")),I(),f&&zN.put(v,C||x),u.image=C,u.svgElement=x,u.svgWidth=A.width,u.svgHeight=A.height;function M(){for(var P=1,R=0,N=b.length;R<N;++R)P=iO(P,b[R]);for(var O=1,R=0,N=S.length;R<N;++R)O=iO(O,S[R].length);P*=O;var F=w*b.length*S.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function I(){D&&(D.clearRect(0,0,C.width,C.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,C.width,C.height)));for(var P=0,R=0;R<y.length;++R)P+=y[R];if(P<=0)return;for(var N=-w,O=0,F=0,B=0;N<A.height;){if(O%2===0){for(var W=F/2%S.length,z=0,j=0,ee=0;z<A.width*2;){for(var te=0,R=0;R<m[B].length;++R)te+=m[B][R];if(te<=0)break;if(j%2===0){var me=(1-o.symbolSize)*.5,Ae=z+m[B][j]*me,Pe=N+y[O]*me,Oe=m[B][j]*o.symbolSize,Ue=y[O]*o.symbolSize,se=ee/2%S[W].length;he(Ae,Pe,Oe,Ue,S[W][se])}z+=m[B][j],++ee,++j,j===m[B].length&&(j=0)}++B,B===m.length&&(B=0)}N+=y[O],++F,++O,O===y.length&&(O=0)}function he(pe,ye,xe,ke,H){var U=i?1:r,ie=hn(H,pe*U,ye*U,xe*U,ke*U,o.color,o.symbolKeepAspect);if(i){var _e=n.painter.renderOneToVNode(ie);_e&&x.children.push(_e)}else a8(D,ie)}}}}function o8(e){if(!e||e.length===0)return[["rect"]];if(Ne(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ne(e[r])){t=!1;break}if(t)return o8([e]);for(var n=[],r=0;r<e.length;++r)Ne(e[r])?n.push([e[r]]):n.push(e[r]);return n}function s8(e){if(!e||e.length===0)return[[0,0]];if($t(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!$t(e[n])){r=!1;break}if(r)return s8([e]);for(var i=[],n=0;n<e.length;++n)if($t(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=we(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Lhe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if($t(e)){var t=Math.ceil(e);return[t,t]}var r=we(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Phe(e){return we(e,function(t){return l8(t)})}function l8(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Ehe(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ud(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=ud(i,t)}}})}var ao=new Ya,u8={};function Rhe(e,t){u8[e]=t}function khe(e){return u8[e]}var Ohe=1,Nhe=800,Fhe=900,Bhe=1e3,Vhe=2e3,zhe=5e3,c8=1e3,Ghe=1100,mI=2e3,f8=3e3,$he=4e3,cb=4500,Hhe=4600,Uhe=5e3,Whe=6e3,h8=7e3,Yhe={PROCESSOR:{FILTER:Bhe,SERIES_FILTER:Nhe,STATISTIC:zhe},VISUAL:{LAYOUT:c8,PROGRESSIVE_LAYOUT:Ghe,GLOBAL:mI,CHART:f8,POST_CHART_LAYOUT:Hhe,COMPONENT:$he,BRUSH:Uhe,CHART_ITEM:cb,ARIA:Whe,DECAL:h8}},Kn="__flagInMainProcess",Oi="__pendingUpdate",iC="__needsUpdateStatus",$N=/^[a-zA-Z0-9_]+$/,aC="__connectUpdateStatus",HN=0,Xhe=1,Zhe=2;function d8(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return p8(this,e,t)}}function v8(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return p8(this,e,t)}}function p8(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ya.prototype[t].apply(e,r)}var g8=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ya),m8=g8.prototype;m8.on=v8("on");m8.off=v8("off");var fh,oC,n0,Ml,sC,lC,uC,Tv,Av,UN,WN,cC,YN,i0,XN,y8,Ca,ZN,_8=function(e){Q(t,e);function t(r,n,i){var a=e.call(this,new rhe)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Ne(n)&&(n=S8[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&Use(function(h){var d=rt(h),v=d.dataIndex;if(v!=null){var p=He();return p.set("series_index",d.seriesIndex),p.set("data_index",v),d.ssrType&&p.set("ssr_type",d.ssrType),p}});var u=a._zr=eO(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ot(i.useDirtyRect,l),useCoarsePointer:ot(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=vI(Fe(u.flush,u),17),n=Je(n),n&&TU(n,!0),a._theme=n,a._locale=vce(i.locale||eU),a._coordSysMgr=new lm;var c=a._api=XN(a);function f(h,d){return h.__prio-d.__prio}return S_(R1,f),S_(bD,f),a._scheduler=new jU(a,c,bD,R1),a._messageCenter=new g8,a._initEvents(),a.resize=Fe(a.resize,a),u.animation.on("frame",a._onframe,a),UN(u,a),WN(u,a),u1(a),a}return t.prototype._onframe=function(){if(!this._disposed){ZN(this);var r=this._scheduler;if(this[Oi]){var n=this[Oi].silent;this[Kn]=!0;try{fh(this),Ml.update.call(this,null,this[Oi].updateParams)}catch(l){throw this[Kn]=!1,this[Oi]=null,l}this._zr.flush(),this[Kn]=!1,this[Oi]=null,Tv.call(this,n),Av.call(this,n)}else if(r.unfinished){var i=Ohe,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),lC(this,a),r.performVisualTasks(a),i0(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(!this[Kn]){if(this._disposed){this.id;return}var a,o,s;if(Ke(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Kn]=!0,!this._model||n){var l=new Vce(this._api),u=this._theme,c=this._model=new uI;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},wD);var f={seriesTransition:s,optionChanged:!0};if(i)this[Oi]={silent:a,updateParams:f},this[Kn]=!1,this.getZr().wakeUp();else{try{fh(this),Ml.update.call(this,null,f)}catch(h){throw this[Oi]=null,this[Kn]=!1,h}this._ssr||this._zr.flush(),this[Oi]=null,this[Kn]=!1,Tv.call(this,a),Av.call(this,a)}}},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||At.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(At.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return E(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;E(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return E(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(qN[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();E(Hp,function(b,w){if(b.group===i){var C=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Je(r)),x=b.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:C,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,p=f-u,m=mu.createCanvas(),y=eO(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:p}),n){var S="";return E(h,function(b){var w=b.left-l,C=b.top-u;S+='<g transform="translate('+w+","+C+')">'+b.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ot({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),E(h,function(b){var w=new Fn({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return sC(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return sC(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Np(i,r);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Np(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?pI(s,l,n):um(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;E(qhe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Uc(s,function(v){var p=rt(v);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=de({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),E($p,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),E(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),ahe(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;var r=this.getDom();r&&hH(this.getDom(),_I,"");var n=this,i=n._api,a=n._model;E(n._componentsViews,function(o){o.dispose(a,i)}),E(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Hp[n.id]},t.prototype.resize=function(r){if(!this[Kn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Oi]&&(a==null&&(a=this[Oi].silent),i=!0,this[Oi]=null),this[Kn]=!0;try{i&&fh(this),Ml.update.call(this,{type:"resize",animation:de({duration:0},r&&r.animation)})}catch(o){throw this[Kn]=!1,o}this[Kn]=!1,Tv.call(this,a),Av.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ke(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!xD[r]){var i=xD[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=de({},r);return n.type=$p[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ke(n)||(n={silent:!!n}),!!E1[r.type]&&this._model){if(this[Kn]){this._pendingActions.push(r);return}var i=n.silent;uC.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&At.browser.weChat&&this._throttledZrFlush(),Tv.call(this,i),Av.call(this,i)}},t.prototype.updateLabelLayout=function(){ao.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){fh=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),oC(f,!0),oC(f,!1),h.plan()},oC=function(f,h){for(var d=f._model,v=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,b=0;b<p.length;b++)p[b].__alive=!1;h?d.eachComponent(function(x,A){x!=="series"&&w(A)}):d.eachSeries(w);function w(x){var A=x.__requireNewView;x.__requireNewView=!1;var D="_ec_"+x.id+"_"+x.type,M=!A&&m[D];if(!M){var I=qo(x.type),P=h?Br.getClass(I.main,I.sub):pr.getClass(I.sub);M=new P,M.init(d,S),m[D]=M,p.push(M),y.add(M.group)}x.__viewId=M.__id=D,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&v.prepareView(M,x,d,S)}for(var b=0;b<p.length;){var C=p[b];C.__alive?b++:(!h&&C.renderTask.dispose(),y.remove(C.group),C.dispose(d,S),p.splice(b,1),m[C.__id]===C&&delete m[C.__id],C.__id=C.group.__ecComponentInfo=null)}},n0=function(f,h,d,v,p){var m=f._model;if(m.setUpdatePayload(d),!v){E([].concat(f._componentsViews).concat(f._chartsViews),C);return}var y={};y[v+"Id"]=d[v+"Id"],y[v+"Index"]=d[v+"Index"],y[v+"Name"]=d[v+"Name"];var S={mainType:v,query:y};p&&(S.subType=p);var b=d.excludeSeriesId,w;b!=null&&(w=He(),E(cr(b),function(x){var A=mn(x,null);A!=null&&w.set(A,!0)})),m&&m.eachComponent(S,function(x){var A=w&&w.get(x.id)!=null;if(!A)if(LO(d))if(x instanceof Dr)d.type===nf&&!d.notBlur&&!x.get(["emphasis","disabled"])&&due(x,d,f._api);else{var D=ZM(x.mainType,x.componentIndex,d.name,f._api),M=D.focusSelf,I=D.dispatchers;d.type===nf&&M&&!d.notBlur&&nD(x.mainType,x.componentIndex,f._api),I&&E(I,function(P){d.type===nf?Js(P):Qs(P)})}else aD(d)&&x instanceof Dr&&(gue(x,d,f._api),MO(x),Ca(f))},f),m&&m.eachComponent(S,function(x){var A=w&&w.get(x.id)!=null;A||C(f[v==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function C(x){x&&x.__alive&&x[h]&&x[h](x.__model,m,f._api,d)}},Ml={prepareAndUpdate:function(f){fh(this),Ml.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,v=this._api,p=this._zr,m=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(f),y.restoreData(d,f),y.performSeriesTasks(d),m.create(d,v),y.performDataProcessorTasks(d,f),lC(this,d),m.update(d,v),r(d),y.performVisualTasks(d,f),cC(this,d,v,f,h);var S=d.get("backgroundColor")||"transparent",b=d.get("darkMode");p.setBackgroundColor(S),b!=null&&b!=="auto"&&p.setDarkMode(b),ao.trigger("afterupdate",d,v)}},updateTransform:function(f){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(f);var p=[];d.eachComponent(function(y,S){if(y!=="series"){var b=h.getViewOfComponentModel(S);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(S,d,v,f);w&&w.update&&p.push(b)}else p.push(b)}});var m=He();d.eachSeries(function(y){var S=h._chartsMap[y.__viewId];if(S.updateTransform){var b=S.updateTransform(y,d,v,f);b&&b.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:m}),i0(this,d,v,f,{},m),ao.trigger("afterupdate",d,v)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),pr.markUpdateMethod(f,"updateView"),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),cC(this,h,this._api,f,{}),ao.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(v){v.getData().clearAllVisual()}),pr.markUpdateMethod(f,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var m=h.getViewOfComponentModel(p);m&&m.__alive&&m.updateVisual(p,d,h._api,f)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,f)}),ao.trigger("afterupdate",d,this._api))},updateLayout:function(f){Ml.update.call(this,f)}},sC=function(f,h,d,v){if(f._disposed){f.id;return}for(var p=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,S=Np(p,d),b=0;b<m.length;b++){var w=m[b];if(w[h]&&(y=w[h](p,S,v))!=null)return y}},lC=function(f,h){var d=f._chartsMap,v=f._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},uC=function(f,h){var d=this,v=this.getModel(),p=f.type,m=f.escapeConnect,y=E1[p],S=y.actionInfo,b=(S.update||"update").split(":"),w=b.pop(),C=b[0]!=null&&qo(b[0]);this[Kn]=!0;var x=[f],A=!1;f.batch&&(A=!0,x=we(f.batch,function(O){return O=qe(de({},O),f),O.batch=null,O}));var D=[],M,I=aD(f),P=LO(f);if(P&&RH(this._api),E(x,function(O){if(M=y.action(O,d._model,d._api),M=M||de({},O),M.type=S.event||M.type,D.push(M),P){var F=zM(f),B=F.queryOptionMap,W=F.mainTypeSpecified,z=W?B.keys()[0]:"series";n0(d,w,O,z),Ca(d)}else I?(n0(d,w,O,"series"),Ca(d)):C&&n0(d,w,O,C.main,C.sub)}),w!=="none"&&!P&&!I&&!C)try{this[Oi]?(fh(this),Ml.update.call(this,f),this[Oi]=null):Ml[w].call(this,f)}catch(O){throw this[Kn]=!1,O}if(A?M={type:S.event||p,escapeConnect:m,batch:D}:M=D[0],this[Kn]=!1,!h){var R=this._messageCenter;if(R.trigger(M.type,M),I){var N={type:"selectchanged",escapeConnect:m,selected:mue(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};R.trigger(N.type,N)}}},Tv=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();uC.call(this,d,f)}},Av=function(f){!f&&this.trigger("updated")},UN=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[Oi]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},WN=function(f,h){f.on("mouseover",function(d){var v=d.target,p=Uc(v,yg);p&&(vue(p,d,h._api),Ca(h))}).on("mouseout",function(d){var v=d.target,p=Uc(v,yg);p&&(pue(p,d,h._api),Ca(h))}).on("click",function(d){var v=d.target,p=Uc(v,function(S){return rt(S).dataIndex!=null},!0);if(p){var m=p.selected?"unselect":"select",y=rt(p);h._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function n(f){var h=[],d=[],v=!1;if(f.eachComponent(function(S,b){var w=b.get("zlevel")||0,C=b.get("z")||0,x=b.getZLevelKey();v=v||!!x,(S==="series"?d:h).push({zlevel:w,z:C,idx:b.componentIndex,type:S,key:x})}),v){var p=h.concat(d),m,y;S_(p,function(S,b){return S.zlevel===b.zlevel?S.z-b.z:S.zlevel-b.zlevel}),E(p,function(S){var b=f.getComponent(S.type,S.idx),w=S.zlevel,C=S.key;m!=null&&(w=Math.max(m,w)),C?(w===m&&C!==y&&w++,y=C):y&&(w===m&&w++,y=""),m=w,b.setZLevel(w)})}}cC=function(f,h,d,v,p){n(h),YN(f,h,d,v,p),E(f._chartsViews,function(m){m.__alive=!1}),i0(f,h,d,v,p),E(f._chartsViews,function(m){m.__alive||m.remove(h,d)})},YN=function(f,h,d,v,p,m){E(m||f._componentsViews,function(y){var S=y.__model;u(S,y),y.render(S,h,d,v),s(S,y),c(S,y)})},i0=function(f,h,d,v,p,m){var y=f._scheduler;p=de(p||{},{updatedSeries:h.getSeries()}),ao.trigger("series:beforeupdate",h,d,p);var S=!1;h.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var C=w.renderTask;y.updatePayload(C,v),u(b,w),m&&m.get(b.uid)&&C.dirty(),C.perform(y.getPerformArgs(C))&&(S=!0),w.group.silent=!!b.get("silent"),o(b,w),MO(b)}),y.unfinished=S||y.unfinished,ao.trigger("series:layoutlabels",h,d,p),ao.trigger("series:transition",h,d,p),h.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),a(f,h),ao.trigger("series:afterupdate",h,d,p)},Ca=function(f){f[iC]=!0,f.getZr().wakeUp()},ZN=function(f){f[iC]&&(f.getZr().storage.traverse(function(h){qh(h)||i(h)}),f[iC]=!1)};function i(f){for(var h=[],d=f.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}f.selected&&f.states.select&&h.push("select"),f.hoverState===ZS&&f.states.emphasis?h.push("emphasis"):f.hoverState===rm&&f.states.blur&&h.push("blur"),f.useStates(h)}function a(f,h){var d=f._zr,v=d.storage,p=0;v.traverse(function(m){m.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!At.node&&!At.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(f,h,d,v){var p=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),b=0;b<S.length;b++)v=Math.max(l(S[b],h,d,v),v);else f.z=h,f.zlevel=d,v=Math.max(f.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),m){var w=f.textGuideLineConfig;m.z=h,m.zlevel=d,isFinite(v)&&(m.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,h){h.eachRendered(function(d){if(!qh(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=d.get("duration"),m=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qh(y))return;if(y instanceof Ct&&wue(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(v){y.stateTransition=m;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}XN=function(f){return new(function(h){Q(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){Js(v,p),Ca(f)},d.prototype.leaveEmphasis=function(v,p){Qs(v,p),Ca(f)},d.prototype.enterBlur=function(v){IH(v),Ca(f)},d.prototype.leaveBlur=function(v){XM(v),Ca(f)},d.prototype.enterSelect=function(v){LH(v),Ca(f)},d.prototype.leaveSelect=function(v){PH(v),Ca(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}(xU))(f)},y8=function(f){function h(d,v){for(var p=0;p<d.length;p++){var m=d[p];m[aC]=v}}E($p,function(d,v){f._messageCenter.on(v,function(p){if(qN[f.group]&&f[aC]!==HN){if(p&&p.escapeConnect)return;var m=f.makeActionFromEvent(p),y=[];E(Hp,function(S){S!==f&&S.group===f.group&&y.push(S)}),h(y,HN),E(y,function(S){S[aC]!==Xhe&&S.dispatchAction(m)}),h(y,Zhe)}})})}}(),t}(Ya),yI=_8.prototype;yI.on=d8("on");yI.off=d8("off");yI.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var qhe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var E1={},$p={},bD=[],wD=[],R1=[],S8={},xD={},Hp={},qN={},jhe=+new Date-0,_I="_echarts_instance_";function Khe(e,t,r){{var n=Jhe(e);if(n)return n}var i=new _8(e,t,r);return i.id="ec_"+jhe++,Hp[i.id]=i,hH(e,_I,i.id),y8(i),ao.trigger("afterinit",i),i}function Jhe(e){return Hp[cle(e,_I)]}function b8(e,t){S8[e]=t}function w8(e){St(wD,e)<0&&wD.push(e)}function x8(e,t){bI(bD,e,t,Vhe)}function Qhe(e){SI("afterinit",e)}function ede(e){SI("afterupdate",e)}function SI(e,t){ao.on(e,t)}function fs(e,t,r){Xe(t)&&(r=t,t="");var n=Ke(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!$p[t]&&(wi($N.test(n)&&$N.test(t)),E1[n]||(E1[n]={action:r,actionInfo:e}),$p[t]=n)}function tde(e,t){lm.register(e,t)}function rde(e,t){bI(R1,e,t,c8,"layout")}function Pf(e,t){bI(R1,e,t,f8,"visual")}var jN=[];function bI(e,t,r,n,i){if((Xe(t)||Ke(t))&&(r=t,t=n),!(St(jN,r)>=0)){jN.push(r);var a=jU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function C8(e,t){xD[e]=t}function nde(e,t,r){var n=khe("registerMap");n&&n(e,t,r)}var ide=mfe;Pf(mI,$fe);Pf(cb,Hfe);Pf(cb,Ufe);Pf(mI,nhe);Pf(cb,ihe);Pf(h8,Ehe);w8(TU);x8(Fhe,Kce);C8("default",Wfe);fs({type:nf,event:nf,update:nf},rn);fs({type:T_,event:T_,update:T_},rn);fs({type:Fp,event:Fp,update:Fp},rn);fs({type:A_,event:A_,update:A_},rn);fs({type:Bp,event:Bp,update:Bp},rn);b8("light",the);b8("dark",e8);var KN=[],ade={registerPreprocessor:w8,registerProcessor:x8,registerPostInit:Qhe,registerPostUpdate:ede,registerUpdateLifecycle:SI,registerAction:fs,registerCoordinateSystem:tde,registerLayout:rde,registerVisual:Pf,registerTransform:ide,registerLoading:C8,registerMap:nde,registerImpl:Rhe,PRIORITY:Yhe,ComponentModel:Dt,ComponentView:Br,SeriesModel:Dr,ChartView:pr,registerComponentModel:function(e){Dt.registerClass(e)},registerComponentView:function(e){Br.registerClass(e)},registerSeriesModel:function(e){Dr.registerClass(e)},registerChartView:function(e){pr.registerClass(e)},registerSubTypeDefaulter:function(e,t){Dt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){$se(e,t)}};function bt(e){if(Se(e)){E(e,function(t){bt(t)});return}St(KN,e)>=0||(KN.push(e),Xe(e)&&(e={install:e}),e.install(ade))}function Dv(e){return e==null?0:e.length||1}function JN(e){return e}var el=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||JN,this._newKeyGetter=i||JN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Dv(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=Dv(u),h=Dv(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Dv(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Dv(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),ode=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function sde(e,t){var r={},n=r.encode={},i=He(),a=[],o=[],s={};E(e.dimensions,function(h){var d=e.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;fC(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),lde(d.type)&&(a[0]=h),fC(s,v)[p]=e.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}gU.each(function(m,y){var S=fC(n,y),b=d.otherDims[y];b!=null&&b!==!1&&(S[b]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=we(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new ode(s,t),r}function fC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function k1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function lde(e){return!(e==="ordinal"||e==="time")}var P_=function(){function e(t){this.otherDims={},t!=null&&de(this,t)}return e}(),ude=Nt(),cde={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},T8=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=M8(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ot(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=DU(this.source),n=!I8(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=cde[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function A8(e){return e instanceof T8}function D8(e){for(var t=He(),r=0;r<(e||[]).length;r++){var n=e[r],i=Ke(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function M8(e){var t=ude(e);return t.dimNameMap||(t.dimNameMap=D8(e.dimensionsDefine))}function I8(e){return e>30}var Mv=Ke,Il=we,fde=typeof Int32Array>"u"?Array:Int32Array,hde="e\0\0",QN=-1,dde=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],vde=["_approximateExtent"],e5,a0,Iv,Lv,hC,o0,dC,Si=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;A8(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],h=Ne(f)?new P_({name:f}):f instanceof P_?f:new P_(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=He();E(o,function(m){p.set(a[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if($t(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof vD&&(a=t),!a){var o=this.dimensions,s=cI(t)||ii(t)?new MU(t,o.length):t;a=new vD;var l=Il(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=sde(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&dC(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==uu&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xa;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Kse(f)&&(this.hasItemOption=!0),f){var h=f.name;a[c]==null&&h!=null&&(a[c]=mn(h,null));var d=f.id;o[c]==null&&d!=null&&(o[c]=mn(d,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)dC(this,c);e5(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Mv(t)?de(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Iv(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return a0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return Se(t)?i.getValues(Il(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?QN:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Xe(t)&&(n=r,r=t,t=[]);var i=n||this,a=Il(Lv(t),this._getStoreDimIndex,this);this._store.each(a,i?Fe(r,i):r)},e.prototype.filterSelf=function(t,r,n){Xe(t)&&(n=r,r=t,t=[]);var i=n||this,a=Il(Lv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Fe(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Mt(t);return E(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Xe(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Il(Lv(t),this._getStoreDimIndex,this),s=o0(this);return s._store=this._store.map(o,a?Fe(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Il(Lv(t),this._getStoreDimIndex,this);this._store.modify(o,a?Fe(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=o0(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=o0(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new nr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new el(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return a0(t,n)},function(n){return a0(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Mv(t)?de(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Se(a)?a=a.slice():Mv(a)&&(a=de({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Mv(r)?de(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Mv(t)?de(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?de(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;tD(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){E(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Il(this.dimensions,this._getDimInfo,this),this.hostModel)),hC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Xe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(LM(arguments)))})},e.internalField=function(){e5=function(t){var r=t._invertedIndicesMap;E(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new fde(o.categories.length);for(var l=0;l<n.length;l++)n[l]=QN;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Iv=function(t,r,n){return mn(t._getCategory(r,n),null)},a0=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Iv(t,t._idDimIdx,r)),n==null&&(n=hde+r),n},Lv=function(t){return Se(t)||(t=t!=null?[t]:[]),t},o0=function(t){var r=new e(t._schema?t._schema:Il(t.dimensions,t._getDimInfo,t),t.hostModel);return hC(r,t),r},hC=function(t,r){E(dde.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,E(vde,function(n){t[n]=Je(r[n])}),t._calculationInfo=de({},r._calculationInfo)},dC=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Iv(t,a,r)),l==null&&o!=null&&(i[r]=l=Iv(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function cm(e,t){cI(e)||(e=fI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=He(),a=[],o=gde(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&I8(o),l=n===e.dimensionsDefine,u=l?M8(e):D8(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=He(c),h=new NU(o),d=0;d<h.length;d++)h[d]=-1;function v(M){var I=h[M];if(I<0){var P=n[M],R=Ke(P)?P:{name:P},N=new P_,O=R.name;O!=null&&u.get(O)!=null&&(N.name=N.displayName=O),R.type!=null&&(N.type=R.type),R.displayName!=null&&(N.displayName=R.displayName);var F=a.length;return h[M]=F,N.storeDimIndex=M,a.push(N),N}return a[I]}if(!s)for(var d=0;d<o;d++)v(d);f.each(function(M,I){var P=cr(M).slice();if(P.length===1&&!Ne(P[0])&&P[0]<0){f.set(I,!1);return}var R=f.set(I,[]);E(P,function(N,O){var F=Ne(N)?u.get(N):N;F!=null&&F<o&&(R[O]=F,m(v(F),I,O))})});var p=0;E(r,function(M){var I,P,R,N;if(Ne(M))I=M,N={};else{N=M,I=N.name;var O=N.ordinalMeta;N.ordinalMeta=null,N=de({},N),N.ordinalMeta=O,P=N.dimsDef,R=N.otherDims,N.name=N.coordDim=N.coordDimIndex=N.dimsDef=N.otherDims=null}var F=f.get(I);if(F!==!1){if(F=cr(F),!F.length)for(var B=0;B<(P&&P.length||1);B++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&F.push(p++)}E(F,function(W,z){var j=v(W);if(l&&N.type!=null&&(j.type=N.type),m(qe(j,N),I,z),j.name==null&&P){var ee=P[z];!Ke(ee)&&(ee={name:ee}),j.name=j.displayName=ee.name,j.defaultTooltip=ee.defaultTooltip}R&&qe(j.otherDims,R)})}});function m(M,I,P){gU.get(I)!=null?M.otherDims[I]=P:(M.coordDim=I,M.coordDimIndex=P,i.set(I,!0))}var y=t.generateCoord,S=t.generateCoordCount,b=S!=null;S=y?S||1:0;var w=y||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)E(a,function(M){C(M)}),a.sort(function(M,I){return M.storeDimIndex-I.storeDimIndex});else for(var x=0;x<o;x++){var A=v(x),D=A.coordDim;D==null&&(A.coordDim=mde(w,i,b),A.coordDimIndex=0,(!y||S<=0)&&(A.isExtraCoord=!0),S--),C(A),A.type==null&&(SU(e,x)===$n.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return pde(a),new T8({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function pde(e){for(var t=He(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function gde(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return E(t,function(a){var o;Ke(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function mde(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var yde=function(){function e(t){this.coordSysDims=[],this.axisMap=He(),this.categoryAxisMap=He(),this.coordSysName=t}return e}();function _de(e){var t=e.get("coordinateSystem"),r=new yde(t),n=Sde[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Sde={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",cn).models[0],a=e.getReferringComponents("yAxis",cn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),hh(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),hh(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",cn).models[0];t.coordSysDims=["single"],r.set("single",i),hh(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",cn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),hh(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),hh(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();E(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),hh(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function hh(e){return e.get("type")==="category"}function bde(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;wde(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(E(a,function(S,b){Ne(S)&&(a[b]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,v=c.type,p=0;E(a,function(S){S.coordDim===d&&p++});var m={name:f,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(a.push(m),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function wde(e){return!A8(e.schema)}function bu(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function L8(e,t){return bu(e,t)?e.getCalculationInfo("stackResultDimension"):t}function xde(e,t){var r=e.get("coordinateSystem"),n=lm.get(r),i;return t&&t.coordSysDims&&(i=we(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=k1(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Cde(e,t,r){var n,i;return r&&E(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ul(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=fI(e)):(i=n.getSource(),a=i.sourceFormat===Xa);var o=_de(t),s=xde(t,o),l=r.useEncodeDefaulter,u=Xe(l)?l:l?st(_U,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=cm(i,c),h=Cde(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),v=bde(t,{schema:f,store:d}),p=new Si(f,t);p.setCalculationInfo(v);var m=h!=null&&Tde(i)?function(y,S,b,w){return w===h?b:this.defaultDimValueGetter(y,S,b,w)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,m),p}function Tde(e){if(e.sourceFormat===Xa){var t=Ade(e.data||[]);return!Se(Id(t))}}function Ade(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var hs=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();US(hs);var Dde=0,CD=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Dde}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&we(n,Mde);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ne(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=He(this.categories))},e}();function Mde(e){return Ke(e)&&e.value!=null?e.value:e+""}function TD(e){return e.type==="interval"||e.type==="log"}function Ide(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=iH(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=P8(o),l=i.niceTickExtent=[qr(Math.ceil(e[0]/o)*o,s),qr(Math.floor(e[1]/o)*o,s)];return Lde(l,e),i}function vC(e){var t=Math.pow(10,BM(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qr(r*t)}function P8(e){return Zo(e)+2}function t5(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Lde(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),t5(e,0,t),t5(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function fb(e,t){return e>=t[0]&&e<=t[1]}function hb(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function db(e,t){return e*(t[1]-t[0])+t[0]}var vb=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new CD({})),Se(i)&&(i=new CD({categories:we(i,function(a){return Ke(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ne(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),fb(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),hb(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(db(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hs);hs.registerClass(vb);var fc=qr,tl=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return fb(r,this._extent)},t.prototype.normalize=function(r){return hb(r,this._extent)},t.prototype.scale=function(r){return db(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=P8(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:fc(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=fc(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:fc(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,h=f/r;u<r-1;){var d=fc(l.value+(u+1)*h);d>a[0]&&d<a[1]&&c.push(d),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Zo(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=fc(r.value,i,!0);return cU(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Ide(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=fc(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=fc(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(hs);hs.registerClass(tl);var E8=typeof Float32Array<"u",Pde=E8?Float32Array:Array;function jo(e){return Se(e)?E8?new Float32Array(e):e:new Pde(e)}var AD="__ec_stack_";function wI(e){return e.get("stack")||AD+e.seriesIndex}function xI(e){return e.dim+e.index}function Ede(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(qe({bandWidth:i,axisKey:n,stackId:AD+a},e));for(var o=O8(t),s=[],a=0;a<e.count;a++){var l=o[n][AD+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function R8(e,t){var r=[];return t.eachSeriesByType(e,function(n){B8(n)&&r.push(n)}),r}function Rde(e){var t={};E(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,m=v.count();p<m;++p){var y=v.get(d,p);t[h]?t[h].push(y):t[h]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});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))}r[n]=a}}return r}function k8(e){var t=Rde(e),r=[];return E(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=Ee(n.get("barWidth"),s),p=Ee(n.get("barMaxWidth"),s),m=Ee(n.get("barMinWidth")||(V8(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:xI(a),stackId:wI(n)})}),O8(r)}function O8(e){var t={};E(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return E(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ee(s,o),c=Ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),E(a,function(y){var S=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,h--}else{var w=d;S&&S<w&&(w=Math.min(S,f)),b&&b>w&&(w=b),w!==d&&(y.width=w,f-=w+c*w,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,p;E(a,function(y,S){y.width||(y.width=d),p=y,v+=y.width*(1+c)}),p&&(v-=p.width*c);var m=-v/2;E(a,function(y,S){r[i][S]=r[i][S]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),r}function kde(e,t,r){if(e&&t){var n=e[xI(t)];return n!=null&&r!=null?n[wI(r)]:n}}function N8(e,t){var r=R8(e,t),n=k8(r);E(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wI(i),u=n[xI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function F8(e){return{seriesType:e,plan:Bd(),reset:function(t){if(B8(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=bu(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=Ode(i,a),v=V8(t),p=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var C=b.count,x=v&&jo(C*3),A=v&&l&&jo(C*3),D=v&&jo(C),M=n.master.getRect(),I=h?M.width:M.height,P,R=w.getStore(),N=0;(P=b.next())!=null;){var O=R.get(f?m:o,P),F=R.get(s,P),B=d,W=void 0;f&&(W=+O-R.get(o,P));var z=void 0,j=void 0,ee=void 0,te=void 0;if(h){var me=n.dataToPoint([O,F]);if(f){var Ae=n.dataToPoint([W,F]);B=Ae[0]}z=B,j=me[1]+S,ee=me[0]-B,te=y,Math.abs(ee)<p&&(ee=(ee<0?-1:1)*p)}else{var me=n.dataToPoint([F,O]);if(f){var Ae=n.dataToPoint([F,W]);B=Ae[1]}z=me[0]+S,j=B,ee=y,te=me[1]-B,Math.abs(te)<p&&(te=(te<=0?-1:1)*p)}v?(x[N]=z,x[N+1]=j,x[N+2]=h?ee:te,A&&(A[N]=h?M.x:z,A[N+1]=h?j:M.y,A[N+2]=I),D[P]=P):w.setItemLayout(P,{x:z,y:j,width:ee,height:te}),N+=3}v&&w.setLayout({largePoints:x,largeDataIndices:D,largeBackgroundPoints:A,valueAxisHorizontal:h})}}}}}}function B8(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function V8(e){return e.pipelineContext&&e.pipelineContext.large}function Ode(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var Nde=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},CI=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return tb(r.value,WO[mce(Kh(this._minLevelUnit))]||WO.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return yce(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=Hde(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Va,n[1]+=Va),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Va}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=s0.length,l=Math.min(Nde(s0,this._approxInterval,0,s),s-1);this._interval=s0[l][1],this._minLevelUnit=s0[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return $t(r)?r:+ss(r)},t.prototype.contain=function(r){return fb(this.parse(r),this._extent)},t.prototype.normalize=function(r){return hb(this.parse(r),this._extent)},t.prototype.scale=function(r){return db(r,this._extent)},t.type="time",t}(tl),s0=[["second",rI],["minute",nI],["hour",zp],["quarter-day",zp*6],["half-day",zp*12],["day",Va*1.2],["half-week",Va*3.5],["week",Va*7],["month",Va*31],["quarter",Va*95],["half-year",UO/2],["year",UO]];function Fde(e,t,r,n){var i=ss(t),a=ss(r),o=function(v){return YO(i,v,n)===YO(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},d=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return d()}}function Bde(e,t){return e/=Va,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Vde(e){var t=30*Va;return e/=t,e>6?6:e>3?3:e>2?2:1}function zde(e){return e/=zp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function r5(e,t){return e/=t?nI:rI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Gde(e){return iH(e)}function $de(e,t,r){var n=new Date(e);switch(Kh(t)){case"year":case"month":n[iU(r)](0);case"day":n[aU(r)](1);case"hour":n[oU(r)](0);case"minute":n[sU(r)](0);case"second":n[lU(r)](0),n[uU(r)](0)}return n.getTime()}function Hde(e,t,r,n){var i=1e4,a=rU,o=0;function s(I,P,R,N,O,F,B){for(var W=new Date(P),z=P,j=W[N]();z<R&&z<=n[1];)B.push({value:z}),j+=I,W[O](j),z=W.getTime();B.push({value:z,notAdd:!0})}function l(I,P,R){var N=[],O=!P.length;if(!Fde(Kh(I),n[0],n[1],r)){O&&(P=[{value:$de(new Date(n[0]),I,r)},{value:n[1]}]);for(var F=0;F<P.length-1;F++){var B=P[F].value,W=P[F+1].value;if(B!==W){var z=void 0,j=void 0,ee=void 0,te=!1;switch(I){case"year":z=Math.max(1,Math.round(t/Va/365)),j=iI(r),ee=_ce(r);break;case"half-year":case"quarter":case"month":z=Vde(t),j=Jh(r),ee=iU(r);break;case"week":case"half-week":case"day":z=Bde(t),j=rb(r),ee=aU(r),te=!0;break;case"half-day":case"quarter-day":case"hour":z=zde(t),j=Sg(r),ee=oU(r);break;case"minute":z=r5(t,!0),j=nb(r),ee=sU(r);break;case"second":z=r5(t,!1),j=ib(r),ee=lU(r);break;case"millisecond":z=Gde(t),j=ab(r),ee=uU(r);break}s(z,B,W,j,ee,te,N),I==="year"&&R.length>1&&F===0&&R.unshift({value:R[0].value-z})}}for(var F=0;F<N.length;F++)R.push(N[F]);return N}}for(var u=[],c=[],f=0,h=0,d=0;d<a.length&&o++<i;++d){var v=Kh(a[d]);if(gce(a[d])){l(a[d],u[u.length-1]||[],c);var p=a[d+1]?Kh(a[d+1]):null;if(v!==p){if(c.length){h=f,c.sort(function(I,P){return I.value-P.value});for(var m=[],y=0;y<c.length;++y){var S=c[y].value;(y===0||c[y-1].value!==S)&&(m.push(c[y]),S>=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&h>b/1.5||(u.push(m),f>b||e===a[d]))break}c=[]}}}for(var w=sr(we(u,function(I){return sr(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],x=w.length-1,d=0;d<w.length;++d)for(var A=w[d],D=0;D<A.length;++D)C.push({value:A[D].value,level:x-d});C.sort(function(I,P){return I.value-P.value});for(var M=[],d=0;d<C.length;++d)(d===0||C[d].value!==C[d-1].value)&&M.push(C[d]);return M}hs.registerClass(CI);var n5=hs.prototype,Up=tl.prototype,Ude=qr,Wde=Math.floor,Yde=Math.ceil,l0=Math.pow,to=Math.log,TI=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new tl,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Up.getTicks.call(this,r);return we(o,function(s){var l=s.value,u=qr(l0(this.base,l));return u=l===i[0]&&this._fixMin?u0(u,a[0]):u,u=l===i[1]&&this._fixMax?u0(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=to(this.base);r=to(Math.max(0,r))/i,n=to(Math.max(0,n))/i,Up.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=n5.getExtent.call(this);n[0]=l0(r,n[0]),n[1]=l0(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=u0(n[0],a[0])),this._fixMax&&(n[1]=u0(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=to(r[0])/to(n),r[1]=to(r[1])/to(n),n5.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=jse(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[qr(Yde(n[0]/a)*a),qr(Wde(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Up.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=to(r)/to(this.base),fb(r,this._extent)},t.prototype.normalize=function(r){return r=to(r)/to(this.base),hb(r,this._extent)},t.prototype.scale=function(r){return r=db(r,this._extent),l0(this.base,r)},t.type="log",t}(hs),z8=TI.prototype;z8.getMinorTicks=Up.getMinorTicks;z8.getLabel=Up.getLabel;function u0(e,t){return Ude(e,Zo(t))}hs.registerClass(TI);var Xde=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Xe(o)?this._modelMinNum=c0(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=c0(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Xe(s)?this._modelMaxNum=c0(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=c0(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Se(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[bo(u[0],1),bo(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=fg(s)||fg(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[qde[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Zde[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Zde={min:"_determinedMin",max:"_determinedMax"},qde={min:"_dataMin",max:"_dataMax"};function G8(e,t,r){var n=e.rawExtentInfo;return n||(n=new Xde(e,t,r),e.rawExtentInfo=n,n)}function c0(e,t){return t==null?null:fg(t)?NaN:e.parse(t)}function $8(e,t){var r=e.type,n=G8(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=R8("bar",o),l=!1;if(E(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=k8(s),c=jde(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function jde(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=kde(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;E(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;E(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function cd(e,t){var r=t,n=$8(e,r),i=n.extent,a=r.get("splitNumber");e instanceof TI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function pb(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new CI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hs.getClass(t)||tl)}}function Kde(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Gd(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ne(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Xe(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(AI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function AI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Jde(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof vb?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Gd(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},h=s(f,c),d=o.getTextRect(h),v=Qde(d,o.get("rotate")||0);l?l.union(v):l=v}return l}}function Qde(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new ht(e.x,e.y,a,o);return s}function DI(e){var t=e.get("interval");return t??"auto"}function H8(e){return e.type==="category"&&DI(e.getLabelModel())===0}function O1(e,t){var r={};return E(e.mapDimensionsAll(t),function(n){r[L8(e,n)]=!0}),Mt(r)}function eve(e,t,r){t&&E(O1(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var fm=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),tve=1e-8;function i5(e,t){return Math.abs(e-t)<tve}function Lc(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=Es(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!i5(i[0],s[0])||!i5(i[1],s[1]))&&(n+=Es(i[0],i[1],s[0],s[1],t,r)),n!==0}var rve=[];function pC(e,t){for(var r=0;r<e.length;r++)Un(e[r],e[r],t)}function a5(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Kl(t,t,a),Jl(r,r,a))}}function nve(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var U8=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),o5=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),s5=function(){function e(t){this.type="linestring",this.points=t}return e}(),W8=function(e){Q(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return nve(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return E(o,function(s){s.type==="polygon"?a5(s.exterior,i,a,r):E(s.points,function(l){a5(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Lc(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Lc(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new ht(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(pC(h.exterior,u),E(h.interiors,function(d){pC(d,u)})):E(h.points,function(d){pC(d,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(U8),ive=function(e){Q(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=zS(rve),o=r;o&&!o.isGeoSVGGraphicRoot;)Us(a,o.getLocalTransform(),a),o=o.parent;return Md(a,a),Un(i,i,a),i},t}(U8);function ave(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return E(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Y8(s,o,r);break;case"Polygon":gC(s,o,r);break;case"MultiLineString":gC(s,o,r);break;case"MultiPolygon":E(s,function(l,u){return gC(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function gC(e,t,r){for(var n=0;n<e.length;n++)e[n]=Y8(e[n],t[n],r)}function Y8(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function ove(e,t){return e=ave(e),we(sr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new o5(o[0],o.slice(1)));break;case"MultiPolygon":E(i.coordinates,function(l){l[0]&&a.push(new o5(l[0],l.slice(1)))});break;case"LineString":a.push(new s5([i.coordinates]));break;case"MultiLineString":a.push(new s5(i.coordinates))}var s=new W8(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ag=Nt();function X8(e,t){var r=we(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function sve(e){var t=e.getLabelModel().get("customValues");if(t){var r=Gd(e);return{labels:X8(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?uve(e):fve(e)}function lve(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:X8(e,r)}:e.type==="category"?cve(e,t):{ticks:we(e.scale.getTicks(),function(n){return n.value})}}function uve(e){var t=e.getLabelModel(),r=Z8(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Z8(e,t){var r=q8(e,"labels"),n=DI(t),i=j8(r,n);if(i)return i;var a,o;return Xe(n)?a=Q8(e,n):(o=n==="auto"?hve(e):n,a=J8(e,o)),K8(r,n,{labels:a,labelCategoryInterval:o})}function cve(e,t){var r=q8(e,"ticks"),n=DI(t),i=j8(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Xe(n))a=Q8(e,n,!0);else if(n==="auto"){var s=Z8(e,e.getLabelModel());o=s.labelCategoryInterval,a=we(s.labels,function(l){return l.tickValue})}else o=n,a=J8(e,o,!0);return K8(r,n,{ticks:a,tickCategoryInterval:o})}function fve(e){var t=e.scale.getTicks(),r=Gd(e);return{labels:we(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function q8(e,t){return Ag(e)[t]||(Ag(e)[t]=[])}function j8(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function K8(e,t,r){return e.push({key:t,value:r}),r}function hve(e){var t=Ag(e).autoInterval;return t??(Ag(e).autoInterval=e.calculateCategoryInterval())}function dve(e){var t=vve(e),r=Gd(e),n=(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 l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,d=0;l<=a[1];l+=s){var v=0,p=0,m=em(r({value:l}),t.font,"center","top");v=m.width*1.3,p=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,p,7)}var y=h/c,S=d/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(y,S))),w=Ag(e.model),C=e.getExtent(),x=w.lastAutoInterval,A=w.lastTickCount;return x!=null&&A!=null&&Math.abs(x-b)<=1&&Math.abs(A-o)<=1&&x>b&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=C[0],w.axisExtent1=C[1]),b}function vve(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 J8(e,t,r){var n=Gd(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=H8(e),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);d&&v-l!==a[1]&&p(a[1]);function p(m){var y={value:m};s.push(r?m:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function Q8(e,t,r){var n=e.scale,i=Gd(e),a=[];return E(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var l5=[0,1],Ao=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return rH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),u5(n,i.count())),ir(t,l5,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),u5(n,i.count()));var a=ir(t,n,l5,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=lve(this,r),i=n.ticks,a=we(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return pve(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=we(n,function(a){return we(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return sve(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 t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return dve(this)},e}();function u5(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function pve(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;E(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(d,v){return d=qr(d),v=qr(v),f?d>v:d<v}}var Pv=Math.PI*2,hc=ls.CMD,gve=["top","right","bottom","left"];function mve(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function yve(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%Pv<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var h=n;n=la(i),i=la(h)}else n=la(n),i=la(i);n>i&&(i+=Pv);var d=Math.atan2(s,o);if(d<0&&(d+=Pv),d>=n&&d<=i||d+Pv>=n&&d+Pv<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(v-o)*(v-o)+(p-s)*(p-s),b=(m-o)*(m-o)+(y-s)*(y-s);return S<b?(l[0]=v,l[1]=p,Math.sqrt(S)):(l[0]=m,l[1]=y,Math.sqrt(b))}function N1(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var d=l*c+u*f,v=d/h;s&&(v=Math.min(Math.max(v,0),1)),v*=h;var p=o[0]=e+v*c,m=o[1]=t+v*f;return Math.sqrt((p-i)*(p-i)+(m-a)*(m-a))}function eW(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var so=[];function _ve(e,t,r){var n=eW(t.x,t.y,t.width,t.height,e.x,e.y,so);return r.set(so[0],so[1]),n}function Sve(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,h=e.y,d=0;d<c.length;){var v=c[d++];d===1&&(n=c[d],i=c[d+1],a=n,o=i);var p=u;switch(v){case hc.M:a=c[d++],o=c[d++],n=a,i=o;break;case hc.L:p=N1(n,i,c[d],c[d+1],f,h,so,!0),n=c[d++],i=c[d++];break;case hc.C:p=B$(n,i,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],f,h,so),n=c[d++],i=c[d++];break;case hc.Q:p=z$(n,i,c[d++],c[d++],c[d],c[d+1],f,h,so),n=c[d++],i=c[d++];break;case hc.A:var m=c[d++],y=c[d++],S=c[d++],b=c[d++],w=c[d++],C=c[d++];d+=1;var x=!!(1-c[d++]);s=Math.cos(w)*S+m,l=Math.sin(w)*b+y,d<=1&&(a=s,o=l);var A=(f-m)*b/S+m;p=yve(m,y,b,w,w+C,x,A,h,so),n=Math.cos(w+C)*S+m,i=Math.sin(w+C)*b+y;break;case hc.R:a=n=c[d++],o=i=c[d++];var D=c[d++],M=c[d++];p=eW(a,o,D,M,f,h,so);break;case hc.Z:p=N1(n,i,a,o,f,h,so,!0),n=a,i=o;break}p<u&&(u=p,r.set(so[0],so[1]))}return u}var co=new ut,Cr=new ut,en=new ut,Ko=new ut,Uo=new ut;function c5(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||gve,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Md([],c),h=t.get("length2")||0;u&&en.copy(u);for(var d=0;d<o.length;d++){var v=o[d];mve(v,0,s,co,Ko),ut.scaleAndAdd(Cr,co,Ko,h),Cr.transform(f);var p=e.getBoundingRect(),m=u?u.distance(Cr):e instanceof Ct?Sve(Cr,e.path,en):_ve(Cr,p,en);m<l&&(l=m,Cr.transform(c),en.transform(c),en.toArray(a[0]),Cr.toArray(a[1]),co.toArray(a[2]))}tW(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var F1=[],yi=new ut;function tW(e,t){if(t<=180&&t>0){t=t/180*Math.PI,co.fromArray(e[0]),Cr.fromArray(e[1]),en.fromArray(e[2]),ut.sub(Ko,co,Cr),ut.sub(Uo,en,Cr);var r=Ko.len(),n=Uo.len();if(!(r<.001||n<.001)){Ko.scale(1/r),Uo.scale(1/n);var i=Ko.dot(Uo),a=Math.cos(t);if(a<i){var o=N1(Cr.x,Cr.y,en.x,en.y,co.x,co.y,F1,!1);yi.fromArray(F1),yi.scaleAndAdd(Uo,o/Math.tan(Math.PI-t));var s=en.x!==Cr.x?(yi.x-Cr.x)/(en.x-Cr.x):(yi.y-Cr.y)/(en.y-Cr.y);if(isNaN(s))return;s<0?ut.copy(yi,Cr):s>1&&ut.copy(yi,en),yi.toArray(e[1])}}}}function bve(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,co.fromArray(e[0]),Cr.fromArray(e[1]),en.fromArray(e[2]),ut.sub(Ko,Cr,co),ut.sub(Uo,en,Cr);var n=Ko.len(),i=Uo.len();if(!(n<.001||i<.001)){Ko.scale(1/n),Uo.scale(1/i);var a=Ko.dot(t),o=Math.cos(r);if(a<o){var s=N1(Cr.x,Cr.y,en.x,en.y,co.x,co.y,F1,!1);yi.fromArray(F1);var l=Math.PI/2,u=Math.acos(Uo.dot(t)),c=l+u-r;if(c>=l)ut.copy(yi,en);else{yi.scaleAndAdd(Uo,s/Math.tan(Math.PI/2-c));var f=en.x!==Cr.x?(yi.x-Cr.x)/(en.x-Cr.x):(yi.y-Cr.y)/(en.y-Cr.y);if(isNaN(f))return;f<0?ut.copy(yi,Cr):f>1&&ut.copy(yi,en)}yi.toArray(e[1])}}}}function mC(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function wve(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=jl(n[0],n[1]),a=jl(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=__([],n[1],n[0],o/i),l=__([],n[1],n[2],o/a),u=__([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function MI(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<mg.length;l++){var u=mg[l],c=t[u],f=u==="normal";if(c){var h=c.get("show"),d=f?s:ot(i.states[u]&&i.states[u].ignore,s);if(d||!ot(h,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&mC(n,!0,u,c);continue}n||(n=new Mi,e.setTextGuideLine(n),!f&&(s||!o)&&mC(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),mC(n,!1,u,c)}}if(n){qe(n.style,r),n.style.fill=null;var p=a.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=p||!1,n.buildPath=wve}}function II(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<xi.length;n++){var i=xi[n];r[i]=e.getModel([i,t])}return r}function rW(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new b1(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function nW(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(D,M){return D.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var h=e[f],d=h.rect;l=d[t]-s,l<0&&(d[t]-=l,h.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=d[t]+d[r]}c>0&&a&&C(-c/o,0,o);var p=e[0],m=e[o-1],y,S;b(),y<0&&x(-y,.8),S<0&&x(S,.8),b(),w(y,S,1),w(S,y,-1),b(),y<0&&A(-y),S<0&&A(S);function b(){y=p.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function w(D,M,I){if(D<0){var P=Math.min(M,-D);if(P>0){C(P*I,0,o);var R=P+D;R<0&&x(-R*I,1)}else x(-D*I,1)}}function C(D,M,I){D!==0&&(u=!0);for(var P=M;P<I;P++){var R=e[P],N=R.rect;N[t]+=D,R.label[t]+=D}}function x(D,M){for(var I=[],P=0,R=1;R<o;R++){var N=e[R-1].rect,O=Math.max(e[R].rect[t]-N[t]-N[r],0);I.push(O),P+=O}if(P){var F=Math.min(Math.abs(D)/P,M);if(D>0)for(var R=0;R<o-1;R++){var B=I[R]*F;C(B,0,R+1)}else for(var R=o-1;R>0;R--){var B=I[R-1]*F;C(-B,R,o)}}}function A(D){var M=D<0?-1:1;D=Math.abs(D);for(var I=Math.ceil(D/(o-1)),P=0;P<o-1;P++)if(M>0?C(I,0,P+1):C(-I,o-P-1,o),D-=I,D<=0)return}return u}function xve(e,t,r,n){return nW(e,"x","width",t,r,n)}function iW(e,t,r,n){return nW(e,"y","height",t,r,n)}function aW(e){var t=[];e.sort(function(p,m){return m.priority-p.priority});var r=new ht(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,h=!1,d=0;d<t.length;d++){var v=t[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new b1(v.localRect,v.transform)),f||(f=new b1(s,l)),f.intersect(v.obb)){h=!0;break}}}h?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function Cve(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Tve(e,t){var r=e.label,n=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:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Cve(n&&n.shape.points)}}var f5=["align","verticalAlign","width","height","fontSize"],ui=new Bs,yC=Nt(),Ave=Nt();function f0(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var h0=["x","y","rotation"],Dve=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();ht.applyTransform(c,c,u),u?ui.setLocalTransform(u):(ui.x=ui.y=ui.rotation=ui.originX=ui.originY=0,ui.scaleX=ui.scaleY=1),ui.rotation=la(ui.rotation);var f=i.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var d=f.getComputedTransform();ht.applyTransform(h,h,d)}var v=h&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:ui.x,y:ui.y,scaleX:ui.scaleX,scaleY:ui.scaleY,rotation:ui.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Xe(i)||Mt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=rt(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(b,w){return function(){c5(b,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Xe(o.layoutOption)?c=o.layoutOption(Tve(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=Ee(c.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Ee(c.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),h=!1)}var v=yC(s);v.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<f5.length;p++){var m=f5[p];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var S=o.seriesModel.getData(o.dataType);y=S.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=rW(this._labelList),a=sr(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=sr(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});xve(a,0,r),iW(o,0,n);var s=sr(i,function(l){return l.layoutOption.hideOverlap});aW(s)},e.prototype.processLabelsOverall=function(){var t=this;E(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=yC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=rt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");MI(t,II(s),l),c5(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!qh(t))){var a=yC(n),o=a.oldLayout,s=rt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(St(h,"select")>=0&&n.attr(a.oldLayoutSelect),St(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Yt(n,u,r,l)}else if(n.attr(u),!Rd(n).valueAnimation){var f=ot(n.style.opacity,1);n.style.opacity=0,Rr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};f0(d,u,h0),f0(d,n.states.select,h0)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};f0(v,u,h0),f0(v,n.states.emphasis,h0)}KH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Ave(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Yt(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Rr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}(),_C=Nt();function Mve(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=_C(r).labelManager;i||(i=_C(r).labelManager=new Dve),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=_C(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var SC=Math.sin,bC=Math.cos,oW=Math.PI,dc=Math.PI*2,Ive=180/oW,sW=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=tu(f-dc)||(c?u>=dc:-u>=dc),d=u>0?u%dc:u%dc+dc,v=!1;h?v=!0:tu(f)?v=!1:v=d>=oW==!!c;var p=t+n*bC(o),m=r+i*SC(o);this._start&&this._add("M",p,m);var y=Math.round(a*Ive);if(h){var S=1/this._p,b=(c?1:-1)*(dc-S);this._add("A",n,i,y,1,+c,t+n*bC(o+b),r+i*SC(o+b)),S>.01&&this._add("A",n,i,y,0,+c,p,m)}else{var w=t+n*bC(s),C=r+i*SC(s);this._add("A",n,i,y,+v,+c,w,C)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),LI="none",Lve=Math.round;function Pve(e){var t=e.fill;return t!=null&&t!==LI}function Eve(e){var t=e.stroke;return t!=null&&t!==LI}var DD=["lineCap","miterLimit","lineJoin"],Rve=we(DD,function(e){return"stroke-"+e.toLowerCase()});function kve(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof Fn){e("opacity",i);return}if(Pve(t)){var a=vg(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",LI);if(Eve(t)){var s=vg(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var h=gI(r),d=h[0],v=h[1];d&&(v=Lve(v||0),e("stroke-dasharray",d.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var p=0;p<DD.length;p++){var m=DD[p];if(t[m]!==_1[m]){var y=t[m]||_1[m];y&&e(Rve[p],y)}}}}var lW="http://www.w3.org/2000/svg",uW="http://www.w3.org/1999/xlink",Ove="http://www.w3.org/2000/xmlns/",Nve="http://www.w3.org/XML/1998/namespace",h5="ecmeta_";function cW(e){return document.createElementNS(lW,e)}function Cn(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function Fve(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function Bve(e){return"</"+e+">"}function PI(e,t){t=t||{};var r=t.newline?`
|
||
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Fve(o,s)+(o!=="style"?Bi(l):l||"")+(a?""+r+we(a,function(u){return n(u)}).join(r)+r:"")+Bve(o)}return n(e)}function Vve(e,t,r){r=r||{};var n=r.newline?`
|
||
`:"",i=" {"+n,a=n+"}",o=we(Mt(e),function(l){return l+i+we(Mt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=we(Mt(t),function(l){return"@keyframes "+l+i+we(Mt(t[l]),function(u){return u+i+we(Mt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function MD(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function d5(e,t,r,n){return Cn("svg","root",{width:e,height:t,xmlns:lW,"xmlns:xlink":uW,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var zve=0;function fW(){return zve++}var v5={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"},_c="transform-origin";function Gve(e,t,r){var n=de({},e.shape);de(n,t),e.buildPath(r,n);var i=new sW;return i.reset(X$(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function $ve(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[_c]=r+"px "+n+"px")}var Hve={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hW(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Uve(e,t,r){var n=e.shape.paths,i={},a,o;if(E(n,function(l){var u=MD(r.zrId);u.animation=!0,gb(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Mt(c),d=h.length;if(d){o=h[d-1];var v=c[o];for(var p in v){var m=v[p];i[p]=i[p]||{d:""},i[p].d+=m.d||""}for(var y in f){var S=f[y].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=hW(i,r);return a.replace(o,s)}}function p5(e){return Ne(e)?v5[e]?"cubic-bezier("+v5[e]+")":OM(e)?e:"":""}function gb(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof jM){var s=Uve(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],h=p5(c.getClip().easing),d=c.getDelay();h?f.push(h):f.push("linear"),d&&f.push(d/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(S){var b=S[1],w=b.length,C={},x={},A={},D="animation-timing-function";function M(he,pe,ye){for(var xe=he.getTracks(),ke=he.getMaxTime(),H=0;H<xe.length;H++){var U=xe[H];if(U.needsAnimate()){var ie=U.keyframes,_e=U.propName;if(ye&&(_e=ye(_e)),_e)for(var fe=0;fe<ie.length;fe++){var $=ie[fe],Y=Math.round($.time/ke*100)+"%",re=p5($.easing),ue=$.rawValue;(Ne(ue)||$t(ue))&&(pe[Y]=pe[Y]||{},pe[Y][_e]=$.rawValue,re&&(pe[Y][D]=re))}}}}for(var I=0;I<w;I++){var P=b[I],R=P.targetName;R?R==="shape"&&M(P,x):!n&&M(P,C)}for(var N in C){var O={};J$(O,e),de(O,C[N]);var F=Z$(O),B=C[N][D];A[N]=F?{transform:F}:{},$ve(A[N],O),B&&(A[N][D]=B)}var W,z=!0;for(var N in x){A[N]=A[N]||{};var j=!W,B=x[N][D];j&&(W=new ls);var ee=W.len();W.reset(),A[N].d=Gve(e,x[N],W);var te=W.len();if(!j&&ee!==te){z=!1;break}B&&(A[N][D]=B)}if(!z)for(var N in A)delete A[N].d;if(!n)for(var I=0;I<w;I++){var P=b[I],R=P.targetName;R==="style"&&M(P,A,function(xe){return Hve[xe]})}for(var me=Mt(A),Ae=!0,Pe,I=1;I<me.length;I++){var Oe=me[I-1],Ue=me[I];if(A[Oe][_c]!==A[Ue][_c]){Ae=!1;break}Pe=A[Oe][_c]}if(Ae&&Pe){for(var N in A)A[N][_c]&&delete A[N][_c];t[_c]=Pe}if(sr(me,function(he){return Mt(A[he]).length>0}).length){var se=hW(A,r);return se+" "+S[0]+" both"}}for(var m in l){var s=p(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+fW();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Wve(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};g5(n,t,r)}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,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=zA(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),g5(n,t,r)}}function g5(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+fW(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Dg=Math.round;function dW(e){return e&&Ne(e.src)}function vW(e){return e&&Xe(e.toDataURL)}function EI(e,t,r,n){kve(function(i,a){var o=i==="fill"||i==="stroke";o&&Y$(a)?gW(t,e,i,n):o&&NM(a)?mW(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Jve(r,e,n)}function RI(e,t){var r=Hse(t);r&&(r.each(function(n,i){n!=null&&(e[(h5+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[h5+"silent"]="true"))}function m5(e){return tu(e[0]-1)&&tu(e[1])&&tu(e[2])&&tu(e[3]-1)}function Yve(e){return tu(e[4])&&tu(e[5])}function kI(e,t,r){if(t&&!(Yve(t)&&m5(t))){var n=1e4;e.transform=m5(t)?"translate("+Dg(t[4]*n)/n+" "+Dg(t[5]*n)/n+")":hse(t)}}function y5(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(Dg(n[a][0]*r)/r),i.push(Dg(n[a][1]*r)/r);t.points=i.join(" ")}function _5(e){return!e.smooth}function Xve(e){var t=we(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=Dg(s*i)/i)}}}var Zve={circle:[Xve(["cx","cy","r"])],polyline:[y5,_5],polygon:[y5,_5]};function qve(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function pW(e,t){var r=e.style,n=e.shape,i=Zve[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&X$(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&qve(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var h=e.path;f&&(h.beginPath(),e.buildPath(h,e.shape),e.pathUpdated());var d=h.getVersion(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==d||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new sW),p.reset(u),h.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=d,v.__svgPathStrokePercent=l),a.d=p.getStr()}return kI(a,e.transform),EI(a,r,e,t),RI(a,e),t.animation&&gb(e,a,t),t.emphasis&&Wve(e,a,t),Cn(s,e.id+"",a)}function jve(e,t){var r=e.style,n=r.image;if(n&&!Ne(n)&&(dW(n)?n=n.src:vW(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),kI(l,e.transform),EI(l,r,e,t),RI(l,e),t.animation&&gb(e,l,t),Cn("image",e.id+"",l)}}function Kve(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||gu,a=r.x||0,o=vse(r.y||0,$S(i),r.textBaseline),s=dse[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(CH(r)){var u="",c=r.fontStyle,f=xH(r.fontSize);if(!parseFloat(f))return;var h=r.fontFamily||x$,d=r.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),kI(l,e.transform),EI(l,r,e,t),RI(l,e),t.animation&&gb(e,l,t),Cn("text",e.id+"",l,void 0,n)}}function S5(e,t){if(e instanceof Ct)return pW(e,t);if(e instanceof Fn)return jve(e,t);if(e instanceof od)return Kve(e,t)}function Jve(e,t,r){var n=e.style;if(pse(n)){var i=gse(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,h=n.shadowBlur,d=vg(n.shadowColor),v=d.opacity,p=d.color,m=h/2/l,y=h/2/u,S=m+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Cn("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Cn("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:S,"flood-color":p,"flood-opacity":v})]),a[i]=o}t.filter=GS(o)}}function gW(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(U$(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(W$(i))a="radialGradient",o.cx=ot(i.x,.5),o.cy=ot(i.y,.5),o.r=ot(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=GA(s[u].offset)*100+"%",h=s[u].color,d=vg(h),v=d.color,p=d.opacity,m={offset:f};m["stop-color"]=v,p<1&&(m["stop-opacity"]=p),l.push(Cn("stop",u+"",m))}var y=Cn(a,"",o,l),S=PI(y),b=n.gradientCache,w=b[S];w||(w=n.zrId+"-g"+n.gradientIdx++,b[S]=w,o.id=w,n.defs[w]=Cn(a,w,o,l)),t[r]=GS(w)}function mW(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(H$(i)){var h=i.imageWidth,d=i.imageHeight,v=void 0,p=i.image;if(Ne(p)?v=p:dW(p)?v=p.src:vW(p)&&(v=p.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";wi(h,m),wi(d,m)}else if(h==null||d==null){var y=function(I,P){if(I){var R=I.elm,N=h||P.width,O=d||P.height;I.tag==="pattern"&&(u?(O=1,N/=a.width):c&&(N=1,O/=a.height)),I.attrs.width=N,I.attrs.height=O,R&&(R.setAttribute("width",N),R.setAttribute("height",O))}},S=$M(v,null,e,function(I){l||y(x,I),y(f,I)});S&&S.width&&S.height&&(h=h||S.width,d=d||S.height)}f=Cn("image","img",{href:v,width:h,height:d}),o.width=h,o.height=d}else i.svgElement&&(f=Je(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var C=Z$(i);C&&(o.patternTransform=C);var x=Cn("pattern","",o,[f]),A=PI(x),D=n.patternCache,M=D[A];M||(M=n.zrId+"-p"+n.patternIdx++,D[A]=M,o.id=M,x=n.defs[M]=Cn("pattern",M,o,[f])),t[r]=GS(M)}}function Qve(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Cn("clipPath",a,o,[pW(e,r)])}t["clip-path"]=GS(a)}function b5(e){return document.createTextNode(e)}function Pc(e,t,r){e.insertBefore(t,r)}function w5(e,t){e.removeChild(t)}function x5(e,t){e.appendChild(t)}function yW(e){return e.parentNode}function _W(e){return e.nextSibling}function wC(e,t){e.textContent=t}var C5=58,epe=120,tpe=Cn("","");function ID(e){return e===void 0}function Go(e){return e!==void 0}function rpe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function up(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Mg(e){var t,r=e.children,n=e.tag;if(Go(n)){var i=e.elm=cW(n);if(OI(tpe,e),Se(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&x5(i,Mg(a))}else Go(e.text)&&!Ke(e.text)&&x5(i,b5(e.text))}else e.elm=b5(e.text);return e.elm}function SW(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Pc(e,Mg(a),t)}}function B1(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(Go(i.tag)){var a=yW(i.elm);w5(a,i.elm)}else w5(e,i.elm)}}function OI(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==epe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(Ove,r,o):r.charCodeAt(3)===C5?n.setAttributeNS(Nve,r,o):r.charCodeAt(5)===C5?n.setAttributeNS(uW,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function npe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,h,d,v;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:up(o,u)?(Dh(o,u),o=t[++n],u=r[++i]):up(s,c)?(Dh(s,c),s=t[--a],c=r[--l]):up(o,c)?(Dh(o,c),Pc(e,o.elm,_W(s.elm)),o=t[++n],c=r[--l]):up(s,u)?(Dh(s,u),Pc(e,s.elm,o.elm),s=t[--a],u=r[++i]):(ID(f)&&(f=rpe(t,n,a)),h=f[u.key],ID(h)?Pc(e,Mg(u),o.elm):(d=t[h],d.tag!==u.tag?Pc(e,Mg(u),o.elm):(Dh(d,u),t[h]=void 0,Pc(e,d.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,SW(e,v,r,i,l)):B1(e,t,n,a))}function Dh(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(OI(e,t),ID(t.text)?Go(n)&&Go(i)?n!==i&&npe(r,n,i):Go(i)?(Go(e.text)&&wC(r,""),SW(r,null,i,0,i.length-1)):Go(n)?B1(r,n,0,n.length-1):Go(e.text)&&wC(r,""):e.text!==t.text&&(Go(n)&&B1(r,n,0,n.length-1),wC(r,t.text)))}function ipe(e,t){if(up(e,t))Dh(e,t);else{var r=e.elm,n=yW(r);Mg(t),n!==null&&(Pc(n,t.elm,_W(r)),B1(n,[e],0,0))}return t}var ape=0,ope=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=T5(),this.configLayer=T5(),this.storage=r,this._opts=n=de({},n),this.root=t,this._id="zr"+ape++,this._oldVNode=d5(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=cW("svg");OI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ipe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return S5(t,MD(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=MD(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=spe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Cn("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=we(Mt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Cn("defs","defs",{},u)),t.animation){var c=Vve(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Cn("style","stl",{},[],c);o.push(f)}}return d5(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},PI(this.renderToVNode({animation:ot(t.cssAnimation,!0),emphasis:ot(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ot(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var h=f.__clipPaths,d=h&&h.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(d-1,v-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var m=v-1;m>p;m--)o--,s=a[o-1];for(var y=p+1;y<d;y++){var S={};Qve(h[y],S,r);var b=Cn("g","clip-g-"+u++,S,[]);(s?s.children:n).push(b),a[o++]=b,s=b}l=h;var w=S5(f,r);w&&(s?s.children:n).push(w)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=Oh(i,0,n),r=Oh(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(NM(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},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(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=yse(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function T5(e){return function(){}}function spe(e,t,r,n){var i;if(r&&r!=="none")if(i=Cn("rect","bg",{width:e,height:t,x:"0",y:"0"}),Y$(r))gW({fill:r},i.attrs,"fill",n);else if(NM(r))mW({style:{fill:r},dirty:rn,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=vg(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function lpe(e){e.registerPainter("svg",ope)}function A5(e,t,r){var n=mu.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var xC=function(e){Q(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||m1,typeof r=="string"?o=A5(r,n,i):Ke(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(I$(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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 r=this.dpr;this.domBack=A5("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new ht(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,C=1/0,x=0,A=0;A<o.length;++A){var D=o[A];if(D.intersect(S)){var M=new ht(0,0,0,0);M.copy(D),M.union(S),o[A]=M,w=!0;break}else if(l){u.copy(S),u.union(D);var I=S.width*S.height,P=D.width*D.height,R=u.width*u.height,N=R-I-P;N<C&&(C=N,x=A)}}if(l&&(o[x].union(S),w=!0),!w){var b=new ht(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=r[f];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&na||!d)?h.getPrevPaintRect():null;v&&c(v);var p=d&&(h.__dirty&na||!h.__isRendered)?h.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=n[f],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&c(v)}}var m;do{m=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(m=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var d=this.domBack;function v(p,m,y,S){if(o.clearRect(p,m,y,S),n&&n!=="transparent"){var b=void 0;if(BS(n)){var w=n.global||n.__width===y&&n.__height===S;b=w&&n.__canvasGradient||_D(o,n,{x:0,y:0,width:y,height:S}),n.__canvasGradient=b,n.__width=y,n.__height=S}else Aoe(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,b=SD(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(p,m,y,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,p,m,y,S),o.restore())}!i||u?v(0,0,s,l):i.length&&E(i,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(Ya),D5=1e5,vc=314159,d0=.01,upe=.001;function cpe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function fpe(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var hpe=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=de({},n||{}),this.dpr=n.devicePixelRatio||m1,this._singleCanvas=a,this.root=t;var o=t.style;o&&(I$(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,h=c.height;n.width!=null&&(f=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new xC(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[vc]=d,d.zlevel=vc,s.push(vc),this._domRoot=t}else{this._width=Oh(t,0,n),this._height=Oh(t,1,n);var u=this._domRoot=fpe(this._width,this._height);t.appendChild(u)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(D5)),a||(a=n.ctx,a.save()),Yc(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(D5)},e.prototype.paintOne=function(t,r){a8(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;f1(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(vc).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,h=function(p){var m=a[p],y=m.ctx,S=o&&m.createRepaintRects(t,r,d._width,d._height),b=n?m.__startIndex:m.__drawIndex,w=!n&&m.incremental&&Date.now,C=w&&Date.now(),x=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,x,S);else if(b===m.__startIndex){var A=t[b];(!A.incremental||!A.notClear||n)&&m.clear(!1,x,S)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=m.__startIndex);var D,M=function(N){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(D=b;D<m.__endIndex;D++){var F=t[D];if(F.__inHover&&(f=!0),i._doPaintEl(F,m,o,N,O,D===m.__endIndex-1),w){var B=Date.now()-C;if(B>15)break}}O.prevElClipPaths&&y.restore()};if(S)if(S.length===0)D=m.__endIndex;else for(var I=d.dpr,P=0;P<S.length;++P){var R=S[P];y.save(),y.beginPath(),y.rect(R.x*I,R.y*I,R.width*I,R.height*I),y.clip(),M(R),y.restore()}else y.save(),M(),y.restore();m.__drawIndex=D,m.__drawIndex<m.__endIndex&&(c=!1)},d=this,v=0;v<a.length;v++)h(v);return At.wxa&&E(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Yc(s,t,a,o),t.setPrevPaintRect(l))}else Yc(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=vc);var n=this._layers[t];return n||(n=new xC("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ft(n,this._layerConfig[t],!0):this._layerConfig[t-d0]&&ft(n,this._layerConfig[t-d0],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&cpe(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+upe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?d0:0),this._needsManuallyCompositing),c.__builtin__||MM("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&na&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,E(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ft(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+d0){var o=this._layers[a];ft(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(St(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Oh(a,0,i),r=Oh(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(vc).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[vc].dom;var r=new xC("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Yc(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function dpe(e){e.registerPainter("canvas",hpe)}var vpe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return ul(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new et,i=hn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=hn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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}(Dr);function fd(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ld(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(ld(e,t,r[o]));return a.join(" ")}}function bW(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Se(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var hm=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=hn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ppe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Js(this.childAt(0))},t.prototype.downplay=function(){Qs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Yt(h,d,s,n),wo(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Rr(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,d,v,p,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,p=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),d=b.get("blurScope"),v=b.get("disabled"),p=Dn(S),m=b.getShallow("scale"),y=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=Lf(r.getItemVisual(n,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),A=x.fill;if(s instanceof Fn){var D=s.style;s.useStyle(de({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(de({},x)):s.useStyle(x),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),I=this._z2;M!=null?I==null&&(this._z2=s.z2,s.z2+=M):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Yn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:R,inheritColor:A,defaultOpacity:x.opacity});function R(F){return P?r.getName(F):fd(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var N=s.ensureState("emphasis");N.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;N.scaleX=this._sizeX*O,N.scaleY=this._sizeY*O,this.setSymbolScale(1),Yr(this,h,d,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=rt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&_u(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();_u(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return zd(r.getItemVisual(n,"symbolSize"))},t}(et);function ppe(e,t){this.parent.drift(e,t)}function CC(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function M5(e){return e!=null&&!Ke(e)&&(e={isIgnore:e}),e||{}}function I5(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Dn(t),cursorStyle:t.get("cursor")}}var dm=function(){function e(t){this.group=new et,this._SymbolCtor=t||hm}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=M5(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=I5(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var h=c(f);if(CC(t,h,f,r)){var d=new o(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),v=c(f);if(!CC(t,v,f,r)){n.remove(d);return}var p=t.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==p)n.remove(d),d=new o(t,f,l,u),d.setPosition(v);else{d.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?d.attr(y):Yt(d,y,i)}n.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=I5(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=M5(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(CC(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Iu(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();function wW(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=gpe(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=we(e.dimensions,function(v){return t.mapDimension(v)}),h=!1,d=t.getCalculationInfo("stackResultDimension");return bu(t,f[0])&&(h=!0,f[0]=d),bu(t,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function gpe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:$t(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function xW(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function mpe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ype(e,t,r,n,i,a,o,s){for(var l=mpe(e,t),u=[],c=[],f=[],h=[],d=[],v=[],p=[],m=wW(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],C=!0,x=void 0,A=void 0;switch(w.cmd){case"=":x=w.idx*2,A=w.idx1*2;var D=y[x],M=y[x+1],I=S[A],P=S[A+1];(isNaN(D)||isNaN(M))&&(D=I,M=P),u.push(D,M),c.push(I,P),f.push(r[x],r[x+1]),h.push(n[A],n[A+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var R=w.idx,N=m.dataDimsForPoint,O=i.dataToPoint([t.get(N[0],R),t.get(N[1],R)]);A=R*2,u.push(O[0],O[1]),c.push(S[A],S[A+1]);var F=xW(m,i,t,R);f.push(F[0],F[1]),h.push(n[A],n[A+1]),p.push(t.getRawIndex(R));break;case"-":C=!1}C&&(d.push(w),v.push(v.length))}v.sort(function(Oe,Ue){return p[Oe]-p[Ue]});for(var B=u.length,W=jo(B),z=jo(B),j=jo(B),ee=jo(B),te=[],b=0;b<v.length;b++){var me=v[b],Ae=b*2,Pe=me*2;W[Ae]=u[Pe],W[Ae+1]=u[Pe+1],z[Ae]=c[Pe],z[Ae+1]=c[Pe+1],j[Ae]=f[Pe],j[Ae+1]=f[Pe+1],ee[Ae]=h[Pe],ee[Ae+1]=h[Pe+1],te[b]=d[me]}return{current:W,next:z,stackedOnCurrent:j,stackedOnNext:ee,status:te}}var Ll=Math.min,Pl=Math.max;function lf(e,t){return isNaN(e)||isNaN(t)}function LD(e,t,r,n,i,a,o,s,l){for(var u,c,f,h,d,v,p=r,m=0;m<n;m++){var y=t[p*2],S=t[p*2+1];if(p>=i||p<0)break;if(lf(y,S)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var b=y-u,w=S-c;if(b*b+w*w<.5){p+=a;continue}if(o>0){for(var C=p+a,x=t[C*2],A=t[C*2+1];x===y&&A===S&&m<n;)m++,C+=a,p+=a,x=t[C*2],A=t[C*2+1],y=t[p*2],S=t[p*2+1],b=y-u,w=S-c;var D=m+1;if(l)for(;lf(x,A)&&D<n;)D++,C+=a,x=t[C*2],A=t[C*2+1];var M=.5,I=0,P=0,R=void 0,N=void 0;if(D>=n||lf(x,A))d=y,v=S;else{I=x-u,P=A-c;var O=y-u,F=x-y,B=S-c,W=A-S,z=void 0,j=void 0;if(s==="x"){z=Math.abs(O),j=Math.abs(F);var ee=I>0?1:-1;d=y-ee*z*o,v=S,R=y+ee*j*o,N=S}else if(s==="y"){z=Math.abs(B),j=Math.abs(W);var te=P>0?1:-1;d=y,v=S-te*z*o,R=y,N=S+te*j*o}else z=Math.sqrt(O*O+B*B),j=Math.sqrt(F*F+W*W),M=j/(j+z),d=y-I*o*(1-M),v=S-P*o*(1-M),R=y+I*o*M,N=S+P*o*M,R=Ll(R,Pl(x,y)),N=Ll(N,Pl(A,S)),R=Pl(R,Ll(x,y)),N=Pl(N,Ll(A,S)),I=R-y,P=N-S,d=y-I*z/j,v=S-P*z/j,d=Ll(d,Pl(u,y)),v=Ll(v,Pl(c,S)),d=Pl(d,Ll(u,y)),v=Pl(v,Ll(c,S)),I=y-d,P=S-v,R=y+I*j/z,N=S+P*j/z}e.bezierCurveTo(f,h,d,v,y,S),f=R,h=N}else e.lineTo(y,S)}u=y,c=S,p+=a}return m}var CW=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),_pe=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CW},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&lf(i[o*2-2],i[o*2-1]);o--);for(;a<o&&lf(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=LD(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ls.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var h=a[f++],d=void 0,v=void 0,p=void 0,m=void 0,y=void 0,S=void 0,b=void 0;switch(h){case o.M:s=a[f++],l=a[f++];break;case o.L:if(d=a[f++],v=a[f++],b=u?(r-s)/(d-s):(r-l)/(v-l),b<=1&&b>=0){var w=u?(v-l)*b+l:(d-s)*b+s;return u?[r,w]:[w,r]}s=d,l=v;break;case o.C:d=a[f++],v=a[f++],p=a[f++],m=a[f++],y=a[f++],S=a[f++];var C=u?d1(s,d,p,y,r,c):d1(l,v,m,S,r,c);if(C>0)for(var x=0;x<C;x++){var A=c[x];if(A<=1&&A>=0){var w=u?wn(l,v,m,S,A):wn(s,d,p,y,A);return u?[r,w]:[w,r]}}s=y,l=S;break}}},t}(Ct),Spe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(CW),TW=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new Spe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&lf(i[s*2-2],i[s*2-1]);s--);for(;o<s&&lf(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=LD(r,i,o,s,s,1,n.smooth,l,n.connectNulls);LD(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Ct);function AW(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Ot({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),v=h.inverse;d?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=Xe(i)?function(m){i(m,f)}:null;Rr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function DW(e,t,r){var n=e.getArea(),i=qr(n.r0,1),a=qr(n.r,1),o=new Ci({shape:{cx:qr(e.cx,1),cy:qr(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Rr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function vm(e,t,r,n,i){if(e){if(e.type==="polar")return DW(e,t,r);if(e.type==="cartesian2d")return AW(e,t,r,n,i)}else return null;return null}function Ef(e,t){return e.type===t}function L5(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function P5(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function E5(e,t){var r=P5(e),n=r[0],i=r[1],a=P5(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function R5(e){return $t(e)?e:e?.5:0}function bpe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=jo(n*2),a=0;a<n;a++){var o=xW(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function El(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var h=(u[a]+c[a])/2,d=[];l[a]=d[a]=h,l[1-a]=u[1-a],d[1-a]=c[1-a],o.push(l[0],l[1]),o.push(d[0],d[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function wpe(e,t){var r=[],n=e.length,i,a;function o(c,f,h){var d=c.coord,v=(h-d)/(f.coord-d),p=fse(v,[c.color,f.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function xpe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=we(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=wpe(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=h[0].coord-v,m=h[d-1].coord+v,y=m-p;if(y<.001)return"transparent";E(h,function(b){b.offset=(b.coord-p)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var S=new am(0,0,0,0,h,!0);return S[i]=p,S[i+"2"]=m,S}}}function Cpe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Tpe(a,t))){var o=t.mapDimension(a.dim),s={};return E(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Tpe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(hm.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Ape(e,t){return isNaN(e)||isNaN(t)}function Dpe(e){for(var t=e.length/2;t>0&&Ape(e[t*2-2],e[t*2-1]);t--);return t-1}function k5(e,t){return[e[t*2],e[t*2+1]]}function Mpe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function MW(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<xi.length;t++)if(e.get([xi[t],"endLabel","show"]))return!0;return!1}function TC(e,t,r,n){if(Ef(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=MW(n)?function(d,v){e._endLabelOnDuring(d,v,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=AW(t,r,n,function(){var d=e._endLabel;d&&r&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return DW(t,r,n)}function Ipe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var Lpe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new et,n=new dm;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],h=o.type==="polar",d=this._coordSys,v=this._symbolDraw,p=this._polyline,m=this._polygon,y=this._lineGroup,S=!n.ssr&&r.get("animation"),b=!c.isEmpty(),w=c.get("origin"),C=wW(o,l,w),x=b&&bpe(o,l,C),A=r.get("showSymbol"),D=r.get("connectNulls"),M=A&&!h&&Cpe(r,l,o),I=this._data;I&&I.eachItemGraphicEl(function(Ue,se){Ue.__temp&&(s.remove(Ue),I.setItemGraphicEl(se,null))}),A||v.remove(),s.add(y);var P=h?!1:r.get("step"),R;o&&o.getArea&&r.get("clip",!0)&&(R=o.getArea(),R.width!=null?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r+=.5)),this._clipShapeForSymbol=R;var N=xpe(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&d.type===o.type&&P===this._step))A&&v.updateData(l,{isIgnore:M,clipShape:R,disableAnimation:!0,getSymbolPoint:function(Ue){return[f[Ue*2],f[Ue*2+1]]}}),S&&this._initSymbolLabelAnimation(l,o,R),P&&(f=El(f,o,P,D),x&&(x=El(x,o,P,D))),p=this._newPolyline(f),b?m=this._newPolygon(f,x):m&&(y.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,bf(N)),y.setClipPath(TC(this,o,!0,r));else{b&&!m?m=this._newPolygon(f,x):m&&!b&&(y.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,bf(N));var O=y.getClipPath();if(O){var F=TC(this,o,!1,r);Rr(O,{shape:F.shape},r)}else y.setClipPath(TC(this,o,!0,r));A&&v.updateData(l,{isIgnore:M,clipShape:R,disableAnimation:!0,getSymbolPoint:function(Ue){return[f[Ue*2],f[Ue*2+1]]}}),(!L5(this._stackedOnPoints,x)||!L5(this._points,f))&&(S?this._doUpdateAnimation(l,x,o,i,P,w,D):(P&&(f=El(f,o,P,D),x&&(x=El(x,o,P,D))),p.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:x})))}var B=r.getModel("emphasis"),W=B.get("focus"),z=B.get("blurScope"),j=B.get("disabled");if(p.useStyle(qe(u.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"})),Wn(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ee=p.getState("emphasis").style;ee.lineWidth=+p.style.lineWidth+1}rt(p).seriesIndex=r.seriesIndex,Yr(p,W,z,j);var te=R5(r.get("smooth")),me=r.get("smoothMonotone");if(p.setShape({smooth:te,smoothMonotone:me,connectNulls:D}),m){var Ae=l.getCalculationInfo("stackedOnSeries"),Pe=0;m.useStyle(qe(c.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Ae&&(Pe=R5(Ae.get("smooth"))),m.setShape({smooth:te,stackedOnSmooth:Pe,smoothMonotone:me,connectNulls:D}),Wn(m,r,"areaStyle"),rt(m).seriesIndex=r.seriesIndex,Yr(m,W,z,j)}var Oe=function(Ue){a._changePolyState(Ue)};l.eachItemGraphicEl(function(Ue){Ue&&(Ue.onHoverStateChange=Oe)}),this._polyline.onHoverStateChange=Oe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=P,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){rt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=yf(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,d=r.get("z")||0;u=new hm(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else pr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=yf(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else pr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;S1(this._polyline,r),n&&S1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _pe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new TW({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Xe(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=Xe(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var p=d;if(p){var m=[d.x,d.y],y=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,C=n.pointToCoord(m);a?(y=w.startAngle,S=w.endAngle,b=-C[1]/180*Math.PI):(y=w.r0,S=w.r,b=C[0])}else{var x=i;a?(y=x.x,S=x.x+x.width,b=d.x):(y=x.y+x.height,S=x.y,b=d.y)}var A=S===y?0:(b-y)/(S-y);l&&(A=1-A);var D=Xe(f)?f(v):c*A+h,M=p.getSymbolPath(),I=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(MW(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new zt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Dpe(l);c>=0&&(Yn(s,Dn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?bW(o,d):fd(o,f)},enableTextSetter:!0},Ipe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,d=h.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,b=n.shape,w=S?y?b.x:b.y+b.height:y?b.x+b.width:b.y,C=(y?p:0)*(S?-1:1),x=(y?0:-p)*(S?-1:1),A=y?"x":"y",D=Mpe(f,w,A),M=D.range,I=M[1]-M[0],P=void 0;if(I>=1){if(I>1&&!d){var R=k5(f,M[0]);u.attr({x:R[0]+C,y:R[1]+x}),o&&(P=h.getRawValue(M[0]))}else{var R=c.getPointOn(w,A);R&&u.attr({x:R[0]+C,y:R[1]+x});var N=h.getRawValue(M[0]),O=h.getRawValue(M[1]);o&&(P=dH(i,v,N,O,D.t))}a.lastFrameIndex=M[0]}else{var F=r===1||a.lastFrameIndex>0?M[0]:0,R=k5(f,F);o&&(P=h.getRawValue(F)),u.attr({x:R[0]+C,y:R[1]+x})}if(o){var B=Rd(u);typeof B.setLabelText=="function"&&B.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=ype(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(d=El(h.current,i,o,l),v=El(h.stackedOnCurrent,i,o,l),p=El(h.next,i,o,l),m=El(h.stackedOnNext,i,o,l)),E5(d,p)>3e3||c&&E5(v,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=d;var y={shape:{points:p}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),Yt(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Yt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=h.status,w=0;w<b.length;w++){var C=b[w].cmd;if(C==="="){var x=r.getItemGraphicEl(b[w].idx1);x&&S.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,D=0;D<S.length;D++){var M=S[D].el,I=S[D].ptIdx*2;M.x=A[I],M.y=A[I+1],M.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(pr);function pm(e,t){return{seriesType:e,plan:Bd(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=we(i.dimensions,function(d){return n.mapDimension(d)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");bu(n,s[0])&&(s[0]=u),bu(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(d,v){for(var p=d.end-d.start,m=o&&jo(p*l),y=[],S=[],b=d.start,w=0;b<d.end;b++){var C=void 0;if(l===1){var x=c.get(f,b);C=i.dataToPoint(x,null,S)}else y[0]=c.get(f,b),y[1]=c.get(h,b),C=i.dataToPoint(y,null,S);o?(m[w++]=C[0],m[w++]=C[1]):v.setItemLayout(b,C.slice())}o&&v.setLayout("points",m)}}}}}}var Ppe={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Epe=function(e){return Math.round(e.length/2)};function IW(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Ne(a)?v=Ppe[a]:Xe(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,Epe))}}}}}function Rpe(e){e.registerChartView(Lpe),e.registerSeriesModel(vpe),e.registerLayout(pm("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,IW("line"))}var Ig=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return ul(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)E(a.getAxes(),function(h,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),m=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!p&&(m+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,b=void 0,w=1,C=0;C<v.length;C++){var x=v[C].coord,A=C===v.length-1?v[C-1].tickValue+w:v[C].tickValue;if(A===m){b=x;break}else if(A<m)S=x;else if(S!=null&&A>m){b=(x+S)/2;break}C===1&&(w=A-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[d]=h.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}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}(Dr);Dr.registerClass(Ig);var kpe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return ul(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 r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Lu(Ig.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}(Ig),Ope=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}(),V1=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Ope},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,d=Math.PI*2,v=h?f-c<d:c-f<d;v||(c=f-(h?d:-d));var p=Math.cos(c),m=Math.sin(c),y=Math.cos(f),S=Math.sin(f);v?(r.moveTo(p*o+i,m*o+a),r.arc(p*u+i,m*u+a,l,-Math.PI+c,c,!h)):r.moveTo(p*s+i,m*s+a),r.arc(i,a,s,c,f,!h),r.arc(y*u+i,S*u+a,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&r.arc(i,a,o,f,c,h)},t}(Ct);function Npe(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return y1(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,d=u.r0,v=(h+d)/2,p=u.startAngle,m=u.endAngle,y=(p+m)/2,S=r?Math.abs(h-d)/2:0,b=Math.cos,w=Math.sin,C=c+h*b(p),x=f+h*w(p),A="left",D="top";switch(s){case"startArc":C=c+(d-l)*b(y),x=f+(d-l)*w(y),A="center",D="top";break;case"insideStartArc":C=c+(d+l)*b(y),x=f+(d+l)*w(y),A="center",D="bottom";break;case"startAngle":C=c+v*b(p)+v0(p,l+S,!1),x=f+v*w(p)+p0(p,l+S,!1),A="right",D="middle";break;case"insideStartAngle":C=c+v*b(p)+v0(p,-l+S,!1),x=f+v*w(p)+p0(p,-l+S,!1),A="left",D="middle";break;case"middle":C=c+v*b(y),x=f+v*w(y),A="center",D="middle";break;case"endArc":C=c+(h+l)*b(y),x=f+(h+l)*w(y),A="center",D="bottom";break;case"insideEndArc":C=c+(h-l)*b(y),x=f+(h-l)*w(y),A="center",D="top";break;case"endAngle":C=c+v*b(m)+v0(m,l+S,!0),x=f+v*w(m)+p0(m,l+S,!0),A="left",D="middle";break;case"insideEndAngle":C=c+v*b(m)+v0(m,-l+S,!0),x=f+v*w(m)+p0(m,-l+S,!0),A="right",D="middle";break;default:return y1(n,i,a)}return n=n||{},n.x=C,n.y=x,n.align=A,n.verticalAlign=D,n}}function Fpe(e,t,r,n){if($t(n)){e.setTextConfig({rotation:n});return}else if(Se(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,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function v0(e,t,r){return t*Math.sin(e)*(r?-1:1)}function p0(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Xc(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Se(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:we(n,function(a){return bo(a,i)})}}var AC=Math.max,DC=Math.min;function Bpe(e,t){var r=e.getArea&&e.getArea();if(Ef(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var Vpe=function(e){Q(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Iu(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=r.isAnimationEnabled()?r:null,d=zpe(r,u);d&&this._enableRealtimeSort(d,s,i);var v=r.get("clip",!0)||d,p=Bpe(u,s);o.removeClipPath();var m=r.get("roundCap",!0),y=r.get("showBackground",!0),S=r.getModel("backgroundStyle"),b=S.get("borderRadius")||0,w=[],C=this._backgroundEls,x=a&&a.isInitSort,A=a&&a.type==="changeAxisOrder";function D(P){var R=g0[u.type](s,P),N=Xpe(u,f,R);return N.useStyle(S.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",b):N.setShape("cornerRadius",b),w[P]=N,N}s.diff(l).add(function(P){var R=s.getItemModel(P),N=g0[u.type](s,P,R);if(y&&D(P),!(!s.hasValue(P)||!V5[u.type](N))){var O=!1;v&&(O=O5[u.type](p,N));var F=N5[u.type](r,s,P,N,f,h,c.model,!1,m);d&&(F.forceLabelAnimation=!0),z5(F,s,P,R,N,r,f,u.type==="polar"),x?F.attr({shape:N}):d?F5(d,h,F,N,P,f,!1,!1):Rr(F,{shape:N},r,P),s.setItemGraphicEl(P,F),o.add(F),F.ignore=O}}).update(function(P,R){var N=s.getItemModel(P),O=g0[u.type](s,P,N);if(y){var F=void 0;C.length===0?F=D(R):(F=C[R],F.useStyle(S.getItemStyle()),u.type==="cartesian2d"?F.setShape("r",b):F.setShape("cornerRadius",b),w[P]=F);var B=g0[u.type](s,P),W=PW(f,B,u);Yt(F,{shape:W},h,P)}var z=l.getItemGraphicEl(R);if(!s.hasValue(P)||!V5[u.type](O)){o.remove(z);return}var j=!1;if(v&&(j=O5[u.type](p,O),j&&o.remove(z)),z?wo(z):z=N5[u.type](r,s,P,O,f,h,c.model,!!z,m),d&&(z.forceLabelAnimation=!0),A){var ee=z.getTextContent();if(ee){var te=Rd(ee);te.prevValue!=null&&(te.prevValue=te.value)}}else z5(z,s,P,N,O,r,f,u.type==="polar");x?z.attr({shape:O}):d?F5(d,h,z,O,P,f,!0,A):Yt(z,{shape:O},r,P,null),s.setItemGraphicEl(P,z),z.ignore=j,o.add(z)}).remove(function(P){var R=l.getItemGraphicEl(P);R&&_g(R,r,P)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new et);M.removeAll();for(var I=0;I<w.length;++I)M.add(w[I]);o.add(M),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),$5(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),$5(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&vm(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:we(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){_g(a,r,rt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(pr),O5={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=AC(t.x,e.x),s=DC(t.x+t.width,i),l=AC(t.y,e.y),u=DC(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=DC(t.r,e.r),a=AC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},N5={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ot({shape:de({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?V1:Ci,c=new u({shape:n,z2:1});c.name="item";var f=LW(i);if(c.calculateTextPosition=Npe(f,{isRoundCap:u===V1}),a){var h=c.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Yt:Rr)(c,{shape:v},a)}return c}};function zpe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function F5(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Yt:Rr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Yt:Rr)(r,{shape:u},c,i)}function B5(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var Gpe=["x","y","width","height"],$pe=["cx","cy","r","startAngle","endAngle"],V5={cartesian2d:function(e){return!B5(e,Gpe)},polar:function(e){return!B5(e,$pe)}},g0={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?Upe(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Hpe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function LW(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function z5(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Xc(n.getModel("itemStyle"),c,!0);de(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var d=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",v=Dn(n);Yn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:fd(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var p=e.getTextContent();if(s&&p){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,Fpe(e,m==="outside"?d:m,LW(o),n.get(["label","rotate"]))}jH(p,v,a.getRawValue(r),function(S){return bW(t,S)});var y=n.getModel(["emphasis"]);Yr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Wn(e,n),Hpe(i)&&(e.style.fill="none",e.style.stroke="none",E(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Upe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=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(n,i,a)}var Wpe=function(){function e(){}return e}(),G5=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Wpe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(Ct);function $5(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new G5({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new G5({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),rt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",H5),f.on("mousemove",H5)),r&&r.push(f)}var H5=vI(function(e){var t=this,r=Ype(t,e.offsetX,e.offsetY);rt(t).dataIndex=r>=0?r:null},30,!1);function Ype(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var h=c*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function PW(e,t,r){if(Ef(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.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 Xpe(e,t,r){var n=e.type==="polar"?Ci:Ot;return new n({shape:PW(t,r,e),silent:!0,z2:0})}function Zpe(e){e.registerChartView(Vpe),e.registerSeriesModel(kpe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,st(N8,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F8("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,IW("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var U5=Math.PI*2,m0=Math.PI/180;function EW(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RW(e,t){var r=EW(e,t),n=e.get("center"),i=e.get("radius");Se(i)||(i=[0,i]);var a=Ee(r.width,t.getWidth()),o=Ee(r.height,t.getHeight()),s=Math.min(a,o),l=Ee(i[0],s/2),u=Ee(i[1],s/2),c,f,h=e.coordinateSystem;if(h){var d=h.dataToPoint(n);c=d[0]||0,f=d[1]||0}else Se(n)||(n=[n,n]),c=Ee(n[0],a)+r.x,f=Ee(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function qpe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=EW(n,r),s=RW(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*m0,d=n.get("endAngle"),v=n.get("padAngle")*m0;d=d==="auto"?h-U5:-d*m0;var p=n.get("minAngle")*m0,m=p+v,y=0;i.each(a,function(W){!isNaN(W)&&y++});var S=i.getSum(a),b=Math.PI/(S||y)*2,w=n.get("clockwise"),C=n.get("roseType"),x=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var D=w?1:-1,M=[h,d],I=D*v/2;HM(M,!w),h=M[0],d=M[1];var P=kW(n);P.startAngle=h,P.endAngle=d,P.clockwise=w;var R=Math.abs(d-h),N=R,O=0,F=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(W,z){var j;if(isNaN(W)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:C?NaN:c});return}C!=="area"?j=S===0&&x?b:W*b:j=R/y,j<m?(j=m,N-=m):O+=W;var ee=F+D*j,te=0,me=0;v>j?(te=F+D*j/2,me=te):(te=F+I,me=ee-I),i.setItemLayout(z,{angle:j,startAngle:te,endAngle:me,clockwise:w,cx:l,cy:u,r0:f,r:C?ir(W,A,[f,c]):c}),F=ee}),N<U5&&y)if(N<=.001){var B=R/y;i.each(a,function(W,z){if(!isNaN(W)){var j=i.getItemLayout(z);j.angle=B;var ee=0,te=0;B<v?(ee=h+D*(z+1/2)*B,te=ee):(ee=h+D*z*B+I,te=h+D*(z+1)*B-I),j.startAngle=ee,j.endAngle=te}})}else b=N/O,F=h,i.each(a,function(W,z){if(!isNaN(W)){var j=i.getItemLayout(z),ee=j.angle===m?m:W*b,te=0,me=0;ee<v?(te=F+D*ee/2,me=te):(te=F+I,me=F+D*ee-I),j.startAngle=te,j.endAngle=me,F+=D*ee}})})}var kW=Nt();function gm(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var jpe=Math.PI/180;function W5(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(p){for(var m=p.rB,y=m*m,S=0;S<p.list.length;S++){var b=p.list[S],w=Math.abs(b.label.y-r),C=n+b.len,x=C*C,A=Math.sqrt((1-Math.abs(w*w/y))*x),D=t+(A+b.len2)*i,M=D-b.label.x,I=b.targetTextWidth-M*i;OW(b,I,!0),b.label.x=D}}function f(p){for(var m={list:[],maxY:0},y={list:[],maxY:0},S=0;S<p.length;S++)if(p[S].labelAlignTo==="none"){var b=p[S],w=b.label.y>r?y:m,C=Math.abs(b.label.y-r);if(C>=w.maxY){var x=b.label.x-t-b.len2*i,A=n+b.len,D=Math.abs(x)<A?Math.sqrt(C*C/(1-x*x/A/A)):A;w.rB=D,w.maxY=C}w.list.push(b)}c(m),c(y)}for(var h=e.length,d=0;d<h;d++)if(e[d].position==="outer"&&e[d].labelAlignTo==="labelLine"){var v=e[d].label.x-u;e[d].linePoints[1][0]+=v,e[d].label.x=u}iW(e,l,l+o)&&f(e)}function Kpe(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<e.length;h++){var d=e[h].label;MC(e[h])||(d.x<t?(c=Math.min(c,d.x),l.push(e[h])):(f=Math.max(f,d.x),u.push(e[h])))}for(var h=0;h<e.length;h++){var v=e[h];if(!MC(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var d=v.label,p=v.linePoints,m=void 0;v.labelAlignTo==="edge"?d.x<t?m=p[2][0]-v.labelDistance-o-v.edgeDistance:m=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?d.x<t?m=c-o-v.bleedMargin:m=o+i-f-v.bleedMargin:d.x<t?m=d.x-o-v.bleedMargin:m=o+i-d.x-v.bleedMargin,v.targetTextWidth=m,OW(v,m)}}W5(u,t,r,n,1,i,a,o,s,f),W5(l,t,r,n,-1,i,a,o,s,c);for(var h=0;h<e.length;h++){var v=e[h];if(!MC(v)&&v.linePoints){var d=v.label,p=v.linePoints,y=v.labelAlignTo==="edge",S=d.style.padding,b=S?S[1]+S[3]:0,w=d.style.backgroundColor?0:b,C=v.rect.width+w,x=p[1][0]-p[2][0];y?d.x<t?p[2][0]=o+v.edgeDistance+C+v.labelDistance:p[2][0]=o+i-v.edgeDistance-C-v.labelDistance:(d.x<t?p[2][0]=d.x+v.labelDistance:p[2][0]=d.x-v.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=d.y}}}function OW(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-l,v=t<c?d:r?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var m=(n.style.margin||0)+2.1;a.height=p.height+m,a.y-=(a.height-f)/2}}}function MC(e){return e.position==="center"}function Jpe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*jpe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function d(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var A in x.states)if(x.states[A].ignore===!1)return!0;return!1}t.each(function(x){var A=t.getItemGraphicEl(x),D=A.shape,M=A.getTextContent(),I=A.getTextGuideLine(),P=t.getItemModel(x),R=P.getModel("label"),N=R.get("position")||P.get(["emphasis","label","position"]),O=R.get("distanceToLabelLine"),F=R.get("alignTo"),B=Ee(R.get("edgeDistance"),u),W=R.get("bleedMargin"),z=P.getModel("labelLine"),j=z.get("length");j=Ee(j,u);var ee=z.get("length2");if(ee=Ee(ee,u),Math.abs(D.endAngle-D.startAngle)<o){E(M.states,d),M.ignore=!0,I&&(E(I.states,d),I.ignore=!0);return}if(v(M)){var te=(D.startAngle+D.endAngle)/2,me=Math.cos(te),Ae=Math.sin(te),Pe,Oe,Ue,se;n=D.cx,i=D.cy;var he=N==="inside"||N==="inner";if(N==="center")Pe=D.cx,Oe=D.cy,se="center";else{var pe=(he?(D.r+D.r0)/2*me:D.r*me)+n,ye=(he?(D.r+D.r0)/2*Ae:D.r*Ae)+i;if(Pe=pe+me*3,Oe=ye+Ae*3,!he){var xe=pe+me*(j+l-D.r),ke=ye+Ae*(j+l-D.r),H=xe+(me<0?-1:1)*ee,U=ke;F==="edge"?Pe=me<0?c+B:c+u-B:Pe=H+(me<0?-O:O),Oe=U,Ue=[[pe,ye],[xe,ke],[H,U]]}se=he?"center":F==="edge"?me>0?"right":"left":me>0?"left":"right"}var ie=Math.PI,_e=0,fe=R.get("rotate");if($t(fe))_e=fe*(ie/180);else if(N==="center")_e=0;else if(fe==="radial"||fe===!0){var $=me<0?-te+ie:-te;_e=$}else if(fe==="tangential"&&N!=="outside"&&N!=="outer"){var Y=Math.atan2(me,Ae);Y<0&&(Y=ie*2+Y);var re=Ae>0;re&&(Y=ie+Y),_e=Y-ie}if(a=!!_e,M.x=Pe,M.y=Oe,M.rotation=_e,M.setStyle({verticalAlign:"middle"}),he){M.setStyle({align:se});var Re=M.states.select;Re&&(Re.x+=M.x,Re.y+=M.y)}else{var ue=M.getBoundingRect().clone();ue.applyTransform(M.getComputedTransform());var Ce=(M.style.margin||0)+2.1;ue.y-=Ce/2,ue.height+=Ce,r.push({label:M,labelLine:I,position:N,len:j,len2:ee,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new ut(me,Ae),linePoints:Ue,textAlign:se,labelDistance:O,labelAlignTo:F,edgeDistance:B,bleedMargin:W,rect:ue,unconstrainedWidth:ue.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:he})}}),!a&&e.get("avoidLabelOverlap")&&Kpe(r,n,i,l,u,h,c,f);for(var p=0;p<r.length;p++){var m=r[p],y=m.label,S=m.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),b&&(E(y.states,d),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(S){var C=m.linePoints;b||!C?(E(S.states,d),S.ignore=!0):(tW(C,m.minTurnAngle),bve(C,m.surfaceNormal,m.maxSurfaceAngle),S.setShape({points:C}),y.__hostTarget.textGuideLineConfig={anchor:new ut(C[0][0],C[0][1])})}}}var Qpe=function(e){Q(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new zt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=de(Xc(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(Rr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,Rr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Rr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Yt(o,{shape:{endAngle:c.endAngle}},s,n))}else wo(o),Yt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),Wn(o,l);var d=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(d)*v,m=Math.sin(d)*v,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=de({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Xc(u.getModel("itemStyle"),c)),de(o.ensureState("select"),{x:p,y:m,shape:Xc(l.getModel(["select","itemStyle"]),c)}),de(o.ensureState("blur"),{shape:Xc(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),b=o.getTextContent();S&&de(S.ensureState("select"),{x:p,y:m}),de(b.ensureState("select"),{x:p,y:m}),Yr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Yn(a,Dn(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Mi,this.setTextGuideLine(d)),MI(this,II(o),{stroke:u,opacity:Qo(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ci),ege=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var h=kW(r),d=new Ci({shape:de(RW(r,i),h)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(v){var p=new Qpe(o,v,u);o.setItemGraphicEl(v,p),l.add(p)}).update(function(v,p){var m=s.getItemGraphicEl(p);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var p=s.getItemGraphicEl(v);_g(p,r,v)}).execute(),Jpe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(pr);function $d(e,t,r){t=Se(t)&&{coordDimensions:t}||de({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=cm(n,t).dimensions,a=new Si(i,e);return a.initData(n,r),a}var mm=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),tge=Nt(),rge=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mm(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $d(this,{coordDimensions:["value"],encodeDefaulter:st(oI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=tge(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Xse(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){mf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.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}(Dr);function nge(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!($t(o)&&!isNaN(o)&&o<0)})}}}function ige(e){e.registerChartView(ege),e.registerSeriesModel(rge),r8("pie",e.registerAction),e.registerLayout(st(qpe,"pie")),e.registerProcessor(gm("pie")),e.registerProcessor(nge("pie"))}var age=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return ul(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},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}(Dr),NW=4,oge=function(){function e(){}return e}(),sge=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new oge},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<NW,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var h=i[f++],d=i[f++];isNaN(h)||isNaN(d)||c&&!c.contain(h,d)||(s.x=h-a[0]/2,s.y=d-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<i.length;){var d=i[h++],v=i[h++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new ht(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(Ct),lge=function(){function e(){this.group=new et}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new sge({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=hn(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<NW;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=rt(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),uge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=pm("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new lge:new dm,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(pr),cge=function(e){Q(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}(Dt),PD=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cn).models[0]},t.type="cartesian2dAxis",t}(Dt);dn(PD,fm);var FW={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fge=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FW),NI=ft({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}}},FW),hge=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},NI),dge=qe({logBase:10},NI);const BW={category:fge,value:NI,time:hge,log:dge};var vge={value:1,category:1,time:1,log:1};function hd(e,t,r,n){E(vge,function(i,a){var o=ft(ft({},BW[a],!0),n,!0),s=function(l){Q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=bg(this),d=h?Nd(c):{},v=f.getTheme();ft(c,v.get(a+"Axis")),ft(c,this.getDefaultOption()),c.type=Y5(c),h&&Su(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=CD.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Y5)}function Y5(e){return e.type||(e.data?"category":"value")}var pge=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return we(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),sr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),ED=["x","y"];function X5(e){return e.type==="interval"||e.type==="time"}var gge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=ED,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!X5(r)||!X5(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,d=o[1]-a[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=Md([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Un(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Un(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ht(a,o,s,l)},t}(pge),mge=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ao);function RD(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),On(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function Z5(e){return e.get("coordinateSystem")==="cartesian2d"}function q5(e){var t={xAxisModel:null,yAxisModel:null};return E(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,cn).models[0];t[n]=a}),t}var IC=Math.log;function VW(e,t,r){var n=tl.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=$8(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=IC(e.base);u=[IC(u[0])/h,IC(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(e),p=u[0],m=u[1];if(c&&f)v=(m-p)/o;else if(c)for(m=u[0]+v*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=vC(v),m=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=vC(v),p=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=vC(v));var S=v*o;m=Math.ceil(u[1]/v)*v,p=qr(m-S),p<0&&u[0]>=0?(p=0,m=qr(S)):m>0&&u[1]<=0&&(m=0,p=-qr(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*b,m+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,p+v,m-v)}var yge=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ED,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Mt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,p=d.scale;TD(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(cd(p,v),TD(p)&&(s=d))}c.length&&(s||(s=c.pop(),cd(s.scale,s.model)),E(c,function(m){VW(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};E(n.x,function(o){j5(n,"y",o,a)}),E(n.y,function(o){j5(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=yn(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(E(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Jde(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),E(this._coordsList,function(u){u.calcAffineTransform()});function l(){E(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),_ge(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Ke(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",cn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",cn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,St(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,E(s.x,function(c,f){E(s.y,function(h,d){var v="x"+f+"y"+d,p=new gge(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(h)})});function u(c){return function(f,h){if(LC(f,t)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var v=new mge(c,pb(f),[0,0],f.get("type"),d),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=h,a._axesList.push(v),s[c][h]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){E(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Z5(i)){var a=q5(i),o=a.xAxisModel,s=a.yAxisModel;if(!LC(o,r)||!LC(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){E(O1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return E(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);St(r,a)<0&&r.push(a),St(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(Z5(i)){var a=q5(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=ED,e}();function LC(e,t){return e.getCoordSysModel()===t}function j5(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)K5(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&K5(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function K5(e){return e&&e.type!=="category"&&e.type!=="time"&&Kde(e)}function _ge(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var ru=Math.PI,bi=function(){function e(t,r){this.group=new et,this.opt=r,this.axisModel=t,qe(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new et({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!J5[t]},e.prototype.add=function(t){J5[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=nH(r-t),a,o;return pg(i)?(o=n>0?"top":"bottom",a="center"):pg(i-ru)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<ru?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),J5={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Un(s,s,o),Un(l,l,o));var c=de({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new xn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});sd(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Ne(h)&&(h=[h,h]),(Ne(d)||$t(d))&&(d=[d,d]);var v=Lf(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],m=d[1];E([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,S){if(h[S]!=="none"&&h[S]!=null){var b=hn(h[S],-p/2,-m/2,p,m,c.stroke,!0),w=y.r+y.offset,C=u?l:s;b.attr({rotation:y.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=wge(r,n,t,e),a=Cge(r,n,t,e);if(bge(t,a,i),xge(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=rW(we(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));aW(o)}},axisName:function(e,t,r,n){var i=On(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,eF(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*ru/180);var v;eF(a)?h=bi.innerTextLayout(e.rotation,d??e.rotation,o):(h=Sge(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=On(e.nameTruncateMaxWidth,m.maxWidth,v),b=new zt({x:f[0],y:f[1],rotation:h.rotation,silent:bi.isLabelSilent(t),style:Ar(s,{text:i,font:p,overflow:"truncate",width:S,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ed({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=bi.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,rt(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function Sge(e,t,r,n){var i=nH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return pg(i-ru/2)?(o=l?"bottom":"top",a="center"):pg(i-ru*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<ru*1.5&&i>ru/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bge(e,t,r){if(!H8(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(Ta(a),Ta(u)):Q5(a,o)&&(n?(Ta(o),Ta(c)):(Ta(a),Ta(u))),i===!1?(Ta(s),Ta(f)):Q5(l,s)&&(i?(Ta(l),Ta(h)):(Ta(s),Ta(f)))}}function Ta(e){e&&(e.ignore=!0)}function Q5(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=zS([]);return Mf(i,i,-e.rotation),r.applyTransform(Us([],i,e.getLocalTransform())),n.applyTransform(Us([],i,t.getLocalTransform())),r.intersect(n)}}function eF(e){return e==="middle"||e==="center"}function zW(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Un(o,o,t),Un(s,s,t));var c=new xn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});sd(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function wge(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=zW(u,t.transform,l,qe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function xge(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=qe(s.getLineStyle(),qe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=zW(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function Cge(e,t,r,n){var i=r.axis,a=On(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(On(n.labelRotate,o.get("rotate"))||0)*ru/180,c=bi.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),h=[],d=bi.isLabelSilent(r),v=r.get("triggerEvent");return E(l,function(p,m){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,S=p.formattedLabel,b=p.rawLabel,w=o;if(f&&f[y]){var C=f[y];Ke(C)&&C.textStyle&&(w=new nr(C.textStyle,o,r.ecModel))}var x=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(y),D=w.getShallow("align",!0)||c.textAlign,M=ot(w.getShallow("alignMinLabel",!0),D),I=ot(w.getShallow("alignMaxLabel",!0),D),P=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,R=ot(w.getShallow("verticalAlignMinLabel",!0),P),N=ot(w.getShallow("verticalAlignMaxLabel",!0),P),O=new zt({x:A,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(p.level||0),style:Ar(w,{text:S,align:m===0?M:m===l.length-1?I:D,verticalAlign:m===0?R:m===l.length-1?N:P,fill:Xe(x)?x(i.type==="category"?b:i.type==="value"?y+"":y,m):x})});if(O.anid="label_"+y,v){var F=bi.makeAxisEventDataBase(r);F.targetType="axisLabel",F.value=b,F.tickIndex=m,i.type==="category"&&(F.dataIndex=y),rt(O).eventData=F}t.add(O),O.updateTransform(),h.push(O),e.add(O),O.decomposeTransform()}),h}}function Tge(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Age(r,e,t),r.seriesInvolved&&Mge(r,e),r}function Age(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];E(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(E(s.getAxes(),st(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&E(v.baseAxes,st(p,d?"cross":!0,h)),d&&E(v.otherAxes,st(p,"cross",!1))}function p(m,y,S){var b=S.model.getModel("axisPointer",i),w=b.get("show");if(!(!w||w==="auto"&&!m&&!kD(b))){y==null&&(y=b.get("triggerTooltip")),b=m?Dge(S,f,i,t,m,y):b;var C=b.get("snap"),x=b.get("triggerEmphasis"),A=Lg(S.model),D=y||C||S.type==="category",M=e.axesInfo[A]={key:A,axis:S,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:x,involveSeries:D,snap:C,useHandle:kD(b),seriesModels:[],linkGroup:null};u[A]=M,e.seriesInvolved=e.seriesInvolved||D;var I=Ige(a,S);if(I!=null){var P=o[I]||(o[I]={axesInfo:{}});P.axesInfo[A]=M,P.mapper=a[I].mapper,M.linkGroup=P}}}})}function Dge(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(h){l[h]=Je(o.get(h))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&qe(u,f.textStyle)}}return e.model.getModel("axisPointer",new nr(l,r,n))}function Mge(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||E(e.coordSysAxesInfo[Lg(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Ige(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(PC(a[n+"AxisId"],r.id)||PC(a[n+"AxisIndex"],r.componentIndex)||PC(a[n+"AxisName"],r.name))return i}}function PC(e,t){return e==="all"||Se(e)&&St(e,t)>=0||e===t}function Lge(e){var t=FI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kD(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function FI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lg(e)]}function Pge(e){var t=FI(e);return t&&t.axisPointerModel}function kD(e){return!!e.get(["handle","show"])}function Lg(e){return e.type+"||"+e.id}var tF={},Rf=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&Lge(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=Pge(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){tF[r]=n},t.getAxisPointerClass=function(r){return r&&tF[r]},t.type="axis",t}(Br),OD=Nt();function GW(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=OD(e).splitAreaColors,h=He(),d=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){d=(p+(c-1)*v)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Se(s)?s:[s];for(var v=1;v<u.length;v++){var S=i.toGlobalCoord(u[v].coord),b=void 0,w=void 0,C=void 0,x=void 0;i.isHorizontal()?(b=m,w=l.y,C=S-b,x=l.height,m=b+C):(b=l.x,w=m,C=l.width,x=S-w,m=w+x);var A=u[v-1].tickValue;A!=null&&h.set(A,d),t.add(new Ot({anid:A!=null?"area_"+A:null,shape:{x:b,y:w,width:C,height:x},style:qe({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}OD(e).splitAreaColors=h}}}function $W(e){OD(e).splitAreaColors=null}var Ege=["axisLine","axisTickLabel","axisName"],Rge=["splitArea","splitLine","minorSplitLine"],HW=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new et,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=RD(s,r),u=new bi(r,de({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if(TD(h[d].getOtherAxis(r.axis).scale))return!0;return!1}},l));E(Ege,u.add,u),this._axisGroup.add(u.getGroup()),E(Rge,function(f){r.get([f,"show"])&&kge[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||om(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){$W(this)},t.type="cartesianAxis",t}(Rf),kge={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=Se(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),h=[],d=[],v=o.getLineStyle(),p=0;p<f.length;p++){var m=i.toGlobalCoord(f[p].coord);u?(h[0]=m,h[1]=l.y,d[0]=m,d[1]=l.y+l.height):(h[0]=l.x,h[1]=m,d[0]=l.x+l.width,d[1]=m);var y=c++%s.length,S=f[p].tickValue,b=new xn({anid:S!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:qe({stroke:s[y]},v),silent:!0});sd(b.shape,v.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),d=0;d<u.length;d++)for(var v=0;v<u[d].length;v++){var p=i.toGlobalCoord(u[d][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var m=new xn({anid:"minor_line_"+u[d][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});sd(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,r,n){GW(e,t,r,n)}},UW=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(HW),Oge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=UW.type,r}return t.type="yAxis",t}(HW),Nge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ot({shape:r.coordinateSystem.getRect(),style:qe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Br),rF={offset:0};function WW(e){e.registerComponentView(Nge),e.registerComponentModel(cge),e.registerCoordinateSystem("cartesian2d",yge),hd(e,"x",PD,rF),hd(e,"y",PD,rF),e.registerComponentView(UW),e.registerComponentView(Oge),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Fge(e){bt(WW),e.registerSeriesModel(age),e.registerChartView(uge),e.registerLayout(pm("scatter"))}function Bge(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();E(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=nF(c)?c:iF(i)})}),r.each(function(o){var s=Coe(n[o],function(l){return nF(l)})||iF(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function nF(e){return!isNaN(e[0])&&!isNaN(e[1])}function iF(e){return[e.cx,e.cy]}function Vge(e){var t=e.polar;if(t){Se(t)||(t=[t]);var r=[];E(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Se(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}E(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var zge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,d){var v=h.getItemVisual(d,"symbol")||"circle";if(v!=="none"){var p=zd(h.getItemVisual(d,"symbolSize")),m=hn(v,-1,-1,2,2),y=h.getItemVisual(d,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),m}}function c(h,d,v,p,m,y){v.removeAll();for(var S=0;S<d.length-1;S++){var b=u(p,m);b&&(b.__dimIdx=S,h[S]?(b.setPosition(h[S]),If[y?"initProps":"updateProps"](b,{x:d[S][0],y:d[S][1]},r,m)):b.setPosition(d[S]),v.add(b))}}function f(h){return we(h,function(d){return[a.cx,a.cy]})}s.diff(l).add(function(h){var d=s.getItemLayout(h);if(d){var v=new Ti,p=new Mi,m={shape:{points:d}};v.shape.points=f(d),p.shape.points=f(d),Rr(v,m,r,h),Rr(p,m,r,h);var y=new et,S=new et;y.add(p),y.add(v),y.add(S),c(p.shape.points,d,S,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,d){var v=l.getItemGraphicEl(d),p=v.childAt(0),m=v.childAt(1),y=v.childAt(2),S={shape:{points:s.getItemLayout(h)}};S.shape.points&&(c(p.shape.points,S.shape.points,y,s,h,!1),wo(m),wo(p),Yt(p,S,r),Yt(m,S,r),s.setItemGraphicEl(h,v))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,d){var v=s.getItemModel(d),p=h.childAt(0),m=h.childAt(1),y=h.childAt(2),S=s.getItemVisual(d,"style"),b=S.fill;o.add(h),p.useStyle(qe(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Wn(p,v,"lineStyle"),Wn(m,v,"areaStyle");var w=v.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();m.ignore=C,E(["emphasis","select","blur"],function(D){var M=v.getModel([D,"areaStyle"]),I=M.isEmpty()&&M.parentModel.isEmpty();m.ensureState(D).ignore=I&&C}),m.useStyle(qe(w.getAreaStyle(),{fill:b,opacity:.7,decal:S.decal}));var x=v.getModel("emphasis"),A=x.getModel("itemStyle").getItemStyle();y.eachChild(function(D){if(D instanceof Fn){var M=D.style;D.useStyle(de({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},S))}else D.useStyle(S),D.setColor(b),D.style.strokeNoScale=!0;var I=D.ensureState("emphasis");I.style=Je(A);var P=s.getStore().get(s.getDimensionIndex(D.__dimIdx),d);(P==null||isNaN(P))&&(P=""),Yn(D,Dn(v),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:D.__dimIdx,defaultText:P,inheritColor:b,defaultOpacity:S.opacity})}),Yr(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(pr),Gge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mm(Fe(this.getData,this),Fe(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return $d(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=UU(this,r);return Mn("section",{header:u,sortBlocks:!0,blocks:we(s,function(f){var h=a.get(a.mapDimension(f.dim),r);return Mn("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(we(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},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}(Dr),Ev=BW.value;function y0(e,t){return qe({show:t},e)}var $ge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),d=we(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=qe({color:v.color},l));var m=ft(Je(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(Ne(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else Xe(c)&&(m.name=c(m.name,m));var S=new nr(m,null,this.ecModel);return dn(S,fm.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},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:ft({lineStyle:{color:"#bbb"}},Ev.axisLine),axisLabel:y0(Ev.axisLabel,!1),axisTick:y0(Ev.axisTick,!1),splitLine:y0(Ev.splitLine,!0),splitArea:y0(Ev.splitArea,!0),indicator:[]},t}(Dt),Hge=["axisLine","axisTickLabel","axisName"],Uge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=we(i,function(o){var s=o.model.get("showName")?o.name:"",l=new bi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});E(a,function(o){E(Hge,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),d=u.get("color"),v=Se(h)?h:[h],p=Se(d)?d:[d],m=[],y=[];function S(F,B,W){var z=W%B.length;return F[z]=F[z]||[],z}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,C=n.cy,x=0;x<b.length;x++){if(c){var A=S(m,v,x);m[A].push(new ll({shape:{cx:w,cy:C,r:b[x].coord}}))}if(f&&x<b.length-1){var A=S(y,p,x);y[A].push(new nm({shape:{cx:w,cy:C,r0:b[x].coord,r:b[x+1].coord}}))}}else for(var D,M=we(i,function(F,B){var W=F.getTicksCoords();return D=D==null?W.length-1:Math.min(W.length-1,D),we(W,function(z){return n.coordToPoint(z.coord,B)})}),I=[],x=0;x<=D;x++){for(var P=[],R=0;R<i.length;R++)P.push(M[R][x]);if(P[0]&&P.push(P[0].slice()),c){var A=S(m,v,x);m[A].push(new Mi({shape:{points:P}}))}if(f&&I){var A=S(y,p,x-1);y[A].push(new Ti({shape:{points:P.concat(I)}}))}I=P.slice().reverse()}var N=l.getLineStyle(),O=u.getAreaStyle();E(y,function(F,B){this.group.add(Ba(F,{style:qe({stroke:"none",fill:p[B%p.length]},O),silent:!0}))},this),E(m,function(F,B){this.group.add(Ba(F,{style:qe({fill:"none",stroke:v[B%v.length]},N),silent:!0}))},this)},t.type="radar",t}(Br),Wge=function(e){Q(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Ao),Yge=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=we(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new Wge(o,new tl);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=Ee(n[0],i),this.cy=Ee(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Ne(s)||$t(s))&&(s=[0,s]),this.r0=Ee(s[0],o),this.r=Ee(s[1],o),E(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;E(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();E(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new tl;o.setExtent(0,a),o.setInterval(1),E(n,function(s,l){VW(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();function Xge(e){e.registerCoordinateSystem("radar",Yge),e.registerComponentModel($ge),e.registerComponentView(Uge),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function Zge(e){bt(Xge),e.registerChartView(zge),e.registerSeriesModel(Gge),e.registerLayout(Bge),e.registerProcessor(gm("radar")),e.registerPreprocessor(Vge)}var aF="\0_ec_interaction_mutex";function qge(e,t,r){var n=BI(e);n[t]=r}function jge(e,t,r){var n=BI(e),i=n[t];i===r&&(n[t]=null)}function oF(e,t){return!!BI(e)[t]}function BI(e){return e[aF]||(e[aF]={})}fs({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},rn);var ym=function(e){Q(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=Fe(n._mousedownHandler,n),a=Fe(n._mousemoveHandler,n),o=Fe(n._mouseupHandler,n),s=Fe(n._mousewheelHandler,n),l=Fe(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=qe(Je(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!Ek(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!E_("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||oF(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&js(r.event),YW(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){Ek(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=E_("zoomOnMouseWheel",r,this._opt),i=E_("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;EC(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);EC(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!oF(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;EC(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ya);function EC(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(js(n.event),YW(e,t,r,n,i))}function YW(e,t,r,n,i){i.isAvailableBehavior=Fe(E_,null,r,n),e.trigger(t,i)}function E_(e,t,r){var n=r[e];return!e||n&&(!Ne(n)||t.event[n+"Key"])}function VI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function zI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Kge={axisPointer:1,tooltip:1,brush:1};function mb(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Kge.hasOwnProperty(n.mainType)&&i&&i.model!==r}function XW(e){if(Ne(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var RC,z1={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"},sF=Mt(z1),G1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lF=Mt(G1),Jge=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=XW(t);this._defsUsePending=[];var i=new et;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ji(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;tme(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=yb(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=qW(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=i;i=new et,i.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ot({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=RC[s];if(c&&Ve(RC,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var d=uF[s];if(d&&Ve(uF,s)){var v=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new od({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),Qge(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){RC={g:function(t,r){var n=new et;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ot;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ll;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new xn;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new jS;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=hF(n));var a=new Ti({shape:{points:i||[]},silent:!0});return Aa(r,a),Ji(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=hF(n));var a=new Mi({shape:{points:i||[]},silent:!0});return Aa(r,a),Ji(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fn;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new et;return Aa(r,s),Ji(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new et;return Aa(r,s),Ji(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=BH(n);return Aa(r,i),Ji(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),uF={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new am(t,r,n,i);return cF(e,a),fF(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new $H(t,r,n);return cF(e,i),fF(e,i),i}};function cF(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function fF(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};ZW(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Aa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),qe(t.__inheritedStyle,e.__inheritedStyle))}function hF(e){for(var t=yb(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function Ji(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(ime(e,t),ZW(e,o,s),n||ame(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=dF(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=dF(a,"stroke",o.stroke,r)),E(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),E(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=we(yb(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function Qge(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="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 eme=/^url\(\s*#(.*?)\)/;function dF(e,t,r,n){var i=r&&r.match(eme);if(i){var a=uo(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function tme(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var rme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yb(e){return e.match(rme)||[]}var nme=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,kC=Math.PI/180;function ime(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(nme,function(f,h,d){return n.push(h,d),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=yb(o);switch(i=i||ca(),s){case"translate":as(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":kM(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mf(i,i,-parseFloat(l[0])*kC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*kC);Us(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*kC);Us(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var vF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ZW(e,t,r){var n=e.getAttribute("style");if(n){vF.lastIndex=0;for(var i;(i=vF.exec(n))!=null;){var a=i[1],o=Ve(z1,a)?z1[a]:null;o&&(t[o]=i[2]);var s=Ve(G1,a)?G1[a]:null;s&&(r[s]=i[2])}}}function ame(e,t,r){for(var n=0;n<sF.length;n++){var i=sF[n],a=e.getAttribute(i);a!=null&&(t[z1[i]]=a)}for(var n=0;n<lF.length;n++){var i=lF[n],a=e.getAttribute(i);a!=null&&(r[G1[i]]=a)}}function qW(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);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 ome(e,t){var r=new Jge;return r.parse(e,t)}var sme=He(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),lme=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=He(),this._freedGraphics=[],this._mapName=t,this._parsedXML=XW(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=cme(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&ome(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,wi(n!=null)}catch(m){throw new Error(`Invalid svg format
|
||
`+m.message)}var i=new et;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var d=n.getBoundingRect();u==null&&(u=d.x,f=d.width),c==null&&(c=d.y,h=d.height)}l=this._boundingRect=new ht(u,c,f,h)}if(s){var v=qW(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}i.setClipPath(new Ot({shape:l.plain()}));var p=[];return E(r.named,function(m){sme.get(m.svgNodeTagLower)!=null&&(p.push(m),ume(m.el))}),{root:i,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function ume(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function cme(e){var t=[],r=He();return E(e,function(n){if(n.namedFrom==null){var i=new ive(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var ND=[126,25],pF="南海诸岛",Sc=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var pc=0;pc<Sc.length;pc++)for(var dh=0;dh<Sc[pc].length;dh++)Sc[pc][dh][0]/=10.5,Sc[pc][dh][1]/=-10.5/.75,Sc[pc][dh][0]+=ND[0],Sc[pc][dh][1]+=ND[1];function fme(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===pF)return;t.push(new W8(pF,we(Sc,function(n){return{type:"polygon",exterior:n}}),ND))}}var hme={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function dme(e,t){if(e==="china"){var r=hme[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var vme=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function pme(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:vme[0]})}var gme="name",mme=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=He(),this._mapName=t,this._specialAreas=n,this._geoJSON=_me(r)}return e.prototype.load=function(t,r){r=r||gme;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:yme(i)})}var a=He(),o=[];return E(n.regions,function(s){var l=s.name;t&&Ve(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new ht(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?ove(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
|
||
`+a.message)}return fme(r,i),E(i,function(a){var o=a.name;dme(r,a),pme(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function yme(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function _me(e){return Ne(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Rv=He();const rl={registerMap:function(e,t,r){if(t.svg){var n=new lme(e,t.svg);Rv.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new mme(e,i,r);Rv.set(e,n)}},getGeoResource:function(e){return Rv.get(e)},getMapForUser:function(e){var t=Rv.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Rv.get(e);if(n)return n.load(t,r)}};var GI=["rect","circle","line","ellipse","polygon","polyline","path"],Sme=He(GI),bme=He(GI.concat(["g"])),wme=He(GI.concat(["g"])),jW=Nt();function _0(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function gF(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var KW=function(){function e(t){var r=new et;this.uid=kd("ec_map_draw"),this._controller=new ym(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new et),r.add(this._svgGroup=new et)}return e.prototype.draw=function(t,r,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,d=f.roam,v=!u.childAt(0)||a;v?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Yt(c,d,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=He(),n=He(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,v){return v&&(d=v(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function f(d){for(var v=[],p=!u&&l&&l.project,m=0;m<d.length;++m){var y=c(d[m],p);y&&v.push(y)}return v}function h(d){return{shape:{points:f(d)}}}i.removeAll(),E(t.geo.regions,function(d){var v=d.name,p=r.get(v),m=n.get(v)||{},y=m.dataIdx,S=m.regionModel;p||(p=r.set(v,new et),i.add(p),y=s?s.indexOfName(v):null,S=t.isGeo?o.getRegionModel(v):s?s.getItemModel(y):null,n.set(v,{dataIdx:y,regionModel:S}));var b=[],w=[];E(d.geometries,function(A){if(A.type==="polygon"){var D=[A.exterior].concat(A.interiors||[]);u&&(D=wF(D,u)),E(D,function(I){b.push(new Ti(h(I)))})}else{var M=A.points;u&&(M=wF(M,u,!0)),E(M,function(I){w.push(new Mi(h(I)))})}});var C=c(d.getCenter(),l&&l.project);function x(A,D){if(A.length){var M=new jM({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});p.add(M),mF(t,M,y,S),yF(t,M,v,S,o,y,C),D&&(gF(M),E(M.states,gF))}}x(b),x(w,!0)}),r.each(function(d,v){var p=n.get(v),m=p.dataIdx,y=p.regionModel;_F(t,d,v,y,o,m),SF(t,d,v,y,o),bF(t,d,v,y,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var i=this._svgDispatcherMap=He(),a=!1;E(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,d=l.getRegionModel(s);if(Sme.get(c)!=null&&f instanceof Ua&&mF(t,f,h,d),f instanceof Ua&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(wme.get(c)!=null&&yF(t,f,s,d,l,h,null),_F(t,f,s,d,l,h),SF(t,f,s,d,l),bme.get(c)!=null)){var v=bF(t,f,s,d,l);v==="self"&&(a=!0);var p=i.get(s)||i.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Sf(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.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(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=rl.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=rl.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,VI(o,u.dx,u.dy),n.dispatchAction(de(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,zI(o,u.scale,u.originX,u.originY),n.dispatchAction(de(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!mb(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=jW(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,i){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function mF(e,t,r,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=_0(i),u=_0(a),c=_0(s),f=_0(o),h=e.data;if(h){var d=h.getItemVisual(r,"style"),v=h.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),v&&(l.decal=ud(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Sf(t)}function yF(e,t,r,n,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?r:a,h=void 0;(!s||a>=0)&&(h=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Yn(t,Dn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var v=t.getTextContent();if(v&&(jW(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function _F(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):rt(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function SF(e,t,r,n,i){e.data||Ed({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function bF(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Yr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Sue(t,i,r),o}function wF(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),E(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var xme=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new KW(i);o.add(s.group),s.draw(r,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,i)}}},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(r,n,i){var a=r.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new ll({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Ld+1)});if(!f){var d=r.mainSeries.getData(),v=a.getName(l),p=d.indexOfName(v),m=a.getItemModel(l),y=m.getModel("label"),S=d.getItemGraphicEl(p);Yn(h,Dn(m),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(p,w)}},defaultText:v}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(b){S1(h,b)}}o.add(h)}}})},t.type="map",t}(pr),Cme=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=$d(this,{coordDimensions:["value"],encodeDefaulter:st(oI,this)}),i=He(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=rl.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return E(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return Mn("section",{header:u.join(", "),noHeader:!u.length,blocks:[Mn("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=hn(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},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}(Dr);function Tme(e,t){var r={};return E(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function Ame(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),i=n?"o"+n.id:"i"+r.getMapType();(t[i]=t[i]||[]).push(r)}),E(t,function(r,n){for(var i=Tme(we(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(i.cloneShallow()),r[a].mainSeries=r[0]})}function Dme(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};E(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var d=i[f]||0,v=s.dataToPoint(h.getCenter());i[f]=d+1,l.setItemLayout(c,{point:v,offset:d})}})});var a=r.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var xF=Un,_m=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Bs,n._rawTransformable=new Bs,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new ht(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new ht(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ht(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[Ee(r[0],n.getWidth()),Ee(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},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 r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Un([],a,r),i=Un([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),RM(this.transform||(this.transform=[]),n.transform||ca()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Md(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Bs;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?xF(i,r,a):pi(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?xF([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=CF(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=CF(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Bs);function CF(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Mme={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},JW=["lng","lat"],FD=function(e){Q(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=JW,a.type="geo",a._nameCoordMap=He(),a.map=n;var o=i.projection,s=rl.load(n,i.nameMap,i.nameProperty),l=rl.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=Mme[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var f;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);f=f||d.clone(),f.union(d)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:ot(i.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ht(r,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,i){if(Ne(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,i)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,i){return e.prototype.dataToPoint.call(this,r,n,i)},t.prototype.convertToPixel=function(r,n,i){var a=TF(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=TF(n);return a===this?a.pointToData(i):null},t}(_m);dn(FD,_m);function TF(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",cn).models[0]||{}).coordinateSystem:null}function AF(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],i=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,A,D,M){for(var I=D-x,P=M-A,R=0;R<=100;R++){var N=R/100,O=a.project([x+I*N,A+P*N]);Kl(n,n,O),Jl(i,i,O)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),h=e.get("layoutCenter"),d=e.get("layoutSize"),v=t.getWidth(),p=t.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,S,b;h&&d&&(S=[Ee(h[0],v),Ee(h[1],p)],b=Ee(d,Math.min(v,p)),!isNaN(S[0])&&!isNaN(S[1])&&!isNaN(b)&&(y=!0));var w;if(y)w={},m>1?(w.width=b,w.height=b/m):(w.height=b,w.width=b*m),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=m,w=yn(C,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Ime(e,t){E(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Lme=function(){function e(){this.dimensions=JW}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new FD(l+s,l,de({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=AF,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),E(a,function(o,s){var l=we(o,function(c){return c.get("nameMap")}),u=new FD(s,s,de({nameMap:IM(l)},i(o[0])));u.zoomLimit=On.apply(null,we(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=AF,u.resize(o[0],r),E(o,function(c){c.coordinateSystem=u,Ime(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=He(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=rl.load(r,n,i);return E(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),QW=new Lme,Pme=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=rl.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),mf(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=QW.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=is(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new nr(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},He()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new nr(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:r};if(Xe(a))return o.status=n,a(o);if(Ne(a))return a.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},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}(Dt);function DF(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function $I(e,t,r,n){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(DF(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(DF(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Eme=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new KW(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},t.prototype._handleRegionClick=function(r){var n;Uc(r.target,function(i){return(n=rt(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=rt(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Br);function Rme(e,t,r){rl.registerMap(e,t,r)}function e6(e){e.registerCoordinateSystem("geo",QW),e.registerComponentModel(Pme),e.registerComponentView(Eme),e.registerImpl("registerMap",Rme),e.registerImpl("getMap",function(r){return rl.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;E(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];E(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.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(r,n,i){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=$I(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&E(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function kme(e){bt(e6),e.registerChartView(xme),e.registerSeriesModel(Cme),e.registerLayout(Dme),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ame),r8("map",e.registerAction)}function Ome(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Nme(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Vme(e);var a=(r[0].hierNode.prelim+r[r.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=zme(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Fme(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function MF(e){return arguments.length?e:Hme}function cp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Bme(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Vme(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function zme(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=OC(s),a=NC(a),s&&a;){i=OC(i),o=NC(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&($me(Gme(s,e,r),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!OC(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!NC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function OC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function NC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Gme(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function $me(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Hme(e,t){return e.parentNode===t.parentNode?1:2}var Ume=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Wme=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ume},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=Ee(n.forkPosition,1),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[1]),r.lineTo(l[0],l[1]);for(var v=1;v<a-1;v++){var p=i[v];r.moveTo(p[0],p[1]),d[c]=p[c],r.lineTo(d[0],d[1])}},t}(Ct),Yme=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new et,r}return t.prototype.init=function(r,n){this._controller=new ym(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){IF(a,c)&&LF(a,c,null,s,r)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!IF(a,c)){h&&EF(u,f,h,s,r);return}LF(a,c,h,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&EF(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var h=i.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];XS(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new _m;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!mb(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){VI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){zI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},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}(pr);function IF(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function LF(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=e.getItemGraphicEl(f.dataIndex),d=f.getLayout(),v=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,p=o.getLayout();a?(r=new hm(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=p.rawX,r.__radialRawY=p.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,Yt(r,{x:p.x,y:p.y},i);var m=r.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],S=y.getLayout(),b=y.children.length,w=void 0,C=void 0;if(p.x===S.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[b-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[b-1].getLayout().y)/2};w=Math.atan2(x.y-S.y,x.x-S.x),w<0&&(w=Math.PI*2+w),C=x.x<S.x,C&&(w=w-Math.PI)}else w=Math.atan2(p.y-S.y,p.x-S.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=p.x<S.x,C&&(w=w-Math.PI)):(C=p.x>S.x,C||(w=w-Math.PI));var A=C?"left":"right",D=s.getModel("label"),M=D.get("rotate"),I=M*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:D.get("position")||A,rotation:M==null?-w:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var R=s.get(["emphasis","focus"]),N=R==="relative"?c1(o.getAncestorsIndices(),o.getDescendantIndices()):R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():null;N&&(rt(r).focus=N),Xme(i,o,c,r,v,d,p,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var F=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===rm||S1(r.__edge,O)}})}function Xme(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),h=e.get(["lineStyle","curveness"]),d=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new im({shape:BD(c,f,h,i,i)})),Yt(p,{shape:BD(c,f,h,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],S=0;S<m.length;S++){var b=m[S].getLayout();y.push([b.x,b.y])}p||(p=n.__edge=new Wme({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:d}})),Yt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(qe({strokeNoScale:!0,fill:null},v)),Wn(p,l,"lineStyle"),Sf(p),s.add(p))}function PF(e,t,r,n,i){var a=t.tree.root,o=t6(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),d=n.get("edgeShape"),v=n.get("layout"),p=n.get("orient"),m=n.get(["lineStyle","curveness"]);h&&(d==="curve"?_u(h,{shape:BD(v,p,m,l,l),style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:i}):d==="polyline"&&n.get("layout")==="orthogonal"&&_u(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:i}))}}function t6(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function EF(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=t6(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};_u(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){PF(u,e,n,i,l)}),PF(a,e,n,i,l)}function BD(e,t,r,n,i){var a,o,s,l,u,c,f,h;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,h=i.rawY;var d=cp(u,f),v=cp(u,f+(h-f)*r),p=cp(c,h+(f-h)*r),m=cp(c,h);return{x1:d.x||0,y1:d.y||0,x2:m.x||0,y2:m.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,f=n.y,c=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=h),(t==="TB"||t==="BT")&&(a=u,o=f+(h-f)*r,s=c,l=h+(f-h)*r);return{x1:u,y1:f,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var $a=Nt();function r6(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,n6(t,r,e),E(r,function(n){E(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,st(Zme,e))})}),t.wrapMethod("cloneShallow",st(jme,e)),E(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,st(qme,e))}),wi(r[t.dataType]===t)}function Zme(e,t){if(Qme(this)){var r=de({},$a(this).datas);r[this.dataType]=t,n6(t,r,e)}else HI(t,this.dataType,$a(this).mainData,e);return t}function qme(e,t){return e.struct&&e.struct.update(),t}function jme(e,t){return E($a(t).datas,function(r,n){r!==t&&HI(r.cloneShallow(),n,t,e)}),t}function Kme(e){var t=$a(this).mainData;return e==null||t==null?t:$a(t).datas[e]}function Jme(){var e=$a(this).mainData;return e==null?[{data:e}]:we(Mt($a(e).datas),function(t){return{type:t,data:$a(e).datas[t]}})}function Qme(e){return $a(e).mainData===e}function n6(e,t,r){$a(e).datas={},E(t,function(n,i){HI(n,i,e,r)})}function HI(e,t,r,n){$a(r).datas[t]=e,$a(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=Kme,e.getLinkedDataAll=Jme}var eye=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Xe(t)&&(n=r,r=t,t=null),t=t||{},Ne(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},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 t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),UI=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var h=c.value;o=Math.max(o,Se(h)?h.length:1),a.push(c);var d=new eye(mn(c.name,""),i);f?tye(d,f):i.root=d,i._nodes.push(d);var v=c.children;if(v)for(var p=0;p<v.length;p++)s(v[p],d)}i.root.updateDepthAndHeight(0);var l=cm(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Si(l,r);return u.initData(a),n&&n(u),r6({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function tye(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Pg(e,t,r){if(e&&St(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(Ne(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function i6(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function WI(e,t){var r=i6(e);return St(r,t)>=0}function _b(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var rye=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new nr(i,this,this.ecModel),o=UI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=_b(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Dr);function nye(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function kv(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function iye(e,t){e.eachSeriesByType("tree",function(r){aye(r,t)})}function aye(e,t){var r=Bme(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=MF(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=MF());var s=e.getData().tree.root,l=s.children[0];if(l){Ome(s),nye(l,Nme,o),s.hierNode.modifier=-l.hierNode.prelim,kv(l,Fme);var u=l,c=l,f=l;kv(l,function(b){var w=b.getLayout().x;w<u.getLayout().x&&(u=b),w>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,v=0,p=0,m=0,y=0;if(n==="radial")v=i/(c.getLayout().x+h+d),p=a/(f.depth-1||1),kv(l,function(b){m=(b.getLayout().x+d)*v,y=(b.depth-1)*p;var w=cp(m,y);b.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(p=a/(c.getLayout().x+h+d),v=i/(f.depth-1||1),kv(l,function(b){y=(b.getLayout().x+d)*p,m=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+h+d),p=a/(f.depth-1||1),kv(l,function(b){m=(b.getLayout().x+d)*v,y=S==="TB"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:m,y},!0)}))}}}function oye(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");de(s,o)})})}function sye(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=$I(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lye(e){e.registerChartView(Yme),e.registerSeriesModel(rye),e.registerLayout(iye),e.registerVisual(oye),sye(e)}var RF=["treemapZoomToNode","treemapRender","treemapMove"];function uye(e){for(var t=0;t<RF.length;t++)e.registerAction({type:RF[t],update:"updateView"},rn);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Pg(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=WI(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function a6(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=hD(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var cye=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};o6(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new nr({itemStyle:o},this,n);a=r.levels=fye(a,n);var l=we(a||[],function(f){return new nr(f,s,n)},this),u=UI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Mn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=_b(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},de(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=He(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){a6(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}(Dr);function o6(e){var t=0;E(e.children,function(n){o6(n);var i=n.value;Se(i)&&(i=i[0]),t+=i});var r=e.value;Se(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Se(e.value)?e.value[0]=r:e.value=r}function fye(e,t){var r=cr(t.get("color")),n=cr(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;E(e,function(s){var l=new nr(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var hye=8,kF=8,FC=5,dye=function(){function e(t){this.group=new et,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),ob(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=mn(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+hye*2,r.emptyItemWidth);r.totalWidth+=s+kF,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=wce(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var m=d[p],y=m.node,S=m.width,b=m.text;h>f.width&&(h-=S-u,S=u,b=null);var w=new Ti({shape:{points:vye(l,0,S,c,p===d.length-1,p===0)},style:qe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:Ar(a,{text:b})}),textConfig:{position:"inside"},z2:Ld*1e4,onclick:st(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Ar(o,{text:b}),w.ensureState("emphasis").style=v,Yr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),pye(w,t,y),l+=S+kF}},e.prototype.remove=function(){this.group.removeAll()},e}();function vye(e,t,r,n,i,a){var o=[[i?e:e-FC,t],[e+r,t],[e+r,t+n],[i?e:e-FC,t+n]];return!a&&o.splice(2,0,[e+r+FC,t+n/2]),!i&&o.push([e,t+n/2]),o}function pye(e,t,r){rt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&_b(r,t)}}var gye=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function mye(){return new gye}var VD=et,OF=Ot,NF=3,FF="label",BF="upperLabel",yye=Ld*10,_ye=Ld*2,Sye=Ld*3,bc=_f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),VF=function(e){var t=bc(e);return t.stroke=t.fill=t.lineWidth=null,t},$1=Nt(),bye=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Ov(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(St(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Pg(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(c),p=r.get("animation"),m=this._doRender(v,r,d);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,m,r,d):m.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new VD,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=Ov(),l=Ov(),u=this._storage,c=[];function f(S,b,w,C){return wye(n,l,u,i,s,c,S,b,w,C)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=m(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function p(S,b,w,C,x){C?(b=S,E(S,function(M,I){!M.isRemoved()&&D(I,I)})):new el(b,S,A,A).add(D).update(D).remove(st(D,null)).execute();function A(M){return M.getId()}function D(M,I){var P=M!=null?S[M]:null,R=I!=null?b[I]:null,N=f(P,R,w,x);N&&p(P&&P.viewChildren||[],R&&R.viewChildren||[],N,C,x+1)}}function m(S){var b=Ov();return S&&E(S,function(w,C){var x=b[C];E(w,function(A){A&&(x.push(A),$1(A).willDelete=!0)})}),b}function y(){E(h,function(S){E(S,function(b){b.parent&&b.parent.remove(b)})}),E(c,function(S){S.invisible=!0,S.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Xe(o)?0:o)||0,u=(Xe(s)?null:s)||"cubicOut",c=mye();E(n.willDeleteEls,function(f,h){E(f,function(d,v){if(!d.invisible){var p=d.parent,m,y=$1(p);if(a&&a.direction==="drillDown")m=p===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,b=0;y.willDelete||(S=y.nodeWidth/2,b=y.nodeHeight/2),m=h==="nodeGroup"?{x:S,y:b,style:{opacity:0}}:{shape:{x:S,y:b,width:0,height:0},style:{opacity:0}}}m&&c.add(d,m,l,0,u)}})}),E(this._storage,function(f,h){E(f,function(d,v){var p=n.lastsForAnimation[h][v],m={};p&&(d instanceof et?p.oldX!=null&&(m.x=d.x,m.y=d.y,d.x=p.oldX,d.y=p.oldY):(p.oldShape&&(m.shape=de({},d.shape),d.setShape(p.oldShape)),p.fadein?(d.setStyle("opacity",0),m.style={opacity:1}):d.style.opacity!==1&&(m.style={opacity:1})),c.add(d,m,l,0,u))})},this),this._state="animating",c.finished(Fe(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new ym(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",Fe(this._onPan,this)),n.on("zoom",Fe(this._onZoom,this)));var a=new ht(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>NF||Math.abs(r.dy)>NF)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ht(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var v=f/c.zoom;c.zoom=f;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var m=ca();as(m,m,[-n,-i]),kM(m,m,[v,v]),as(m,m,[n,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&A1(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dye(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(WI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ov(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(pr);function Ov(){return{nodeGroup:[],background:[],content:[]}}function wye(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,v=c.height,p=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,C=b&&b.length,x=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),D=h.getModel(["blur","itemStyle"]),M=h.getModel(["select","itemStyle"]),I=x.get("borderRadius")||0,P=Pe("nodeGroup",VD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),$1(P).nodeWidth=d,$1(P).nodeHeight=v,c.isAboveViewRoot)return P;var R=Pe("background",OF,u,_ye);R&&j(P,R,C&&c.upperLabelHeight);var N=h.getModel("emphasis"),O=N.get("focus"),F=N.get("blurScope"),B=N.get("disabled"),W=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(C)yg(P)&&$c(P,!1),R&&($c(R,!B),f.setItemGraphicEl(o.dataIndex,R),iD(R,W,F));else{var z=Pe("content",OF,u,Sye);z&&ee(P,z),R.disableMorphing=!0,R&&yg(R)&&$c(R,!1),$c(P,!B),f.setItemGraphicEl(o.dataIndex,P),iD(P,W,F)}return P;function j(se,he,pe){var ye=rt(he);if(ye.dataIndex=o.dataIndex,ye.seriesIndex=e.seriesIndex,he.setShape({x:0,y:0,width:d,height:v,r:I}),m)te(he);else{he.invisible=!1;var xe=o.getVisual("style"),ke=xe.stroke,H=VF(x);H.fill=ke;var U=bc(A);U.fill=A.get("borderColor");var ie=bc(D);ie.fill=D.get("borderColor");var _e=bc(M);if(_e.fill=M.get("borderColor"),pe){var fe=d-2*p;me(he,ke,xe.opacity,{x:p,y:0,width:fe,height:w})}else he.removeTextContent();he.setStyle(H),he.ensureState("emphasis").style=U,he.ensureState("blur").style=ie,he.ensureState("select").style=_e,Sf(he)}se.add(he)}function ee(se,he){var pe=rt(he);pe.dataIndex=o.dataIndex,pe.seriesIndex=e.seriesIndex;var ye=Math.max(d-2*p,0),xe=Math.max(v-2*p,0);if(he.culling=!0,he.setShape({x:p,y:p,width:ye,height:xe,r:I}),m)te(he);else{he.invisible=!1;var ke=o.getVisual("style"),H=ke.fill,U=VF(x);U.fill=H,U.decal=ke.decal;var ie=bc(A),_e=bc(D),fe=bc(M);me(he,H,ke.opacity,null),he.setStyle(U),he.ensureState("emphasis").style=ie,he.ensureState("blur").style=_e,he.ensureState("select").style=fe,Sf(he)}se.add(he)}function te(se){!se.invisible&&a.push(se)}function me(se,he,pe,ye){var xe=h.getModel(ye?BF:FF),ke=mn(h.get("name"),null),H=xe.getShallow("show");Yn(se,Dn(h,ye?BF:FF),{defaultText:H?ke:null,inheritColor:he,defaultOpacity:pe,labelFetcher:e,labelDataIndex:o.dataIndex});var U=se.getTextContent();if(U){var ie=U.style,_e=PM(ie.padding||0);ye&&(se.setTextConfig({layoutRect:ye}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var $=Math.max((ye?ye.width:se.shape.width)-_e[1]-_e[3],0),Y=Math.max((ye?ye.height:se.shape.height)-_e[0]-_e[2],0);(ie.width!==$||ie.height!==Y)&&U.setStyle({width:$,height:Y})},ie.truncateMinChar=2,ie.lineOverflow="truncate",Ae(ie,ye,c);var fe=U.getState("emphasis");Ae(fe?fe.style:null,ye,c)}}function Ae(se,he,pe){var ye=se?se.text:null;if(!he&&pe.isLeafRoot&&ye!=null){var xe=e.get("drillDownIcon",!0);se.text=xe?xe+" "+ye:ye}}function Pe(se,he,pe,ye){var xe=S!=null&&r[se][S],ke=i[se];return xe?(r[se][S]=null,Oe(ke,xe)):m||(xe=new he,xe instanceof Ua&&(xe.z2=xye(pe,ye)),Ue(ke,xe)),t[se][y]=xe}function Oe(se,he){var pe=se[y]={};he instanceof VD?(pe.oldX=he.x,pe.oldY=he.y):pe.oldShape=de({},he.shape)}function Ue(se,he){var pe=se[y]={},ye=o.parentNode,xe=he instanceof et;if(ye&&(!n||n.direction==="drillDown")){var ke=0,H=0,U=i.background[ye.getRawIndex()];!n&&U&&U.oldShape&&(ke=U.oldShape.width,H=U.oldShape.height),xe?(pe.oldX=0,pe.oldY=H):pe.oldShape={x:ke,y:H,width:0,height:0}}pe.fadein=!xe}}function xye(e,t){return e*yye+t}var Eg=E,Cye=Ke,H1=-1,Tn=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Je(t);this.type=n,this.mappingMethod=r,this._normalizeData=Dye[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(BC(i),Tye(i)):r==="category"?i.categories?Aye(i):BC(i,!0):(wi(r!=="linear"||i.dataExtent),BC(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Fe(this._normalizeData,this)},e.listVisualTypes=function(){return Mt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ke(t)?E(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Se(t)?[]:Ke(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Eg(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Se(t))t=t.slice();else if(Cye(t)){var r=[];Eg(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||Ne(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(b0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(b0(f[0],c[0],t))return o}else if(b0(f[0],c[0],t)&&b0(f[1],t,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function h(d,v){var p=Math.abs(d-t);p<a&&(a=p,i=v)}},e.visualHandlers={color:{applyVisual:Nv("color"),getColorMapper:function(){var t=this.option;return Fe(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),fp.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=mx(r,t.parsedVisual,i),a?i:Ws(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ws(mx(t,this.option.parsedVisual),"rgba")},category:fp,piecewise:function(t,r){var n=GD.call(this,r);return n==null&&(n=Ws(mx(t,this.option.parsedVisual),"rgba")),n},fixed:wc}},colorHue:S0(function(t,r){return Rp(t,r)}),colorSaturation:S0(function(t,r){return Rp(t,null,r)}),colorLightness:S0(function(t,r){return Rp(t,null,null,r)}),colorAlpha:S0(function(t,r){return v1(t,r)}),decal:{applyVisual:Nv("decal"),_normalizedToVisual:{linear:null,category:fp,piecewise:null,fixed:null}},opacity:{applyVisual:Nv("opacity"),_normalizedToVisual:zD([0,1])},liftZ:{applyVisual:Nv("liftZ"),_normalizedToVisual:{linear:wc,category:wc,piecewise:wc,fixed:wc}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:zF,category:fp,piecewise:function(t,r){var n=GD.call(this,r);return n==null&&(n=zF.call(this,t)),n},fixed:wc}},symbolSize:{applyVisual:Nv("symbolSize"),_normalizedToVisual:zD([0,1])}},e}();function Tye(e){var t=e.pieceList;e.hasSpecialVisual=!1,E(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Aye(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Eg(t,function(o,s){r[o]=s}),!Se(n)){var i=[];Ke(n)?Eg(n,function(o,s){var l=r[s];i[l??H1]=o}):i[H1]=n,n=s6(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function BC(e,t){var r=e.visual,n=[];Ke(r)?Eg(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),s6(e,n)}function S0(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:zD([0,1])}}function zF(e){var t=this.option.visual;return t[Math.round(ir(e,[0,1],[0,t.length-1],!0))]||{}}function Nv(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fp(e){var t=this.option.visual;return t[this.option.loop&&e!==H1?e%t.length:e]}function wc(){return this.option.visual[0]}function zD(e){return{linear:function(t){return ir(t,e,this.option.visual,!0)},category:fp,piecewise:function(t,r){var n=GD.call(this,r);return n==null&&(n=ir(t,e,this.option.visual,!0)),n},fixed:wc}}function GD(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Tn.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function s6(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=we(t,function(r){var n=fa(r);return n||[0,0,0,1]})),t}var Dye={linear:function(e){return ir(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Tn.findPieceIndex(e,t,!0);if(r!=null)return ir(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??H1},fixed:rn};function b0(e,t,r){return e?t<=r:t<r}var Mye="itemStyle",l6=Nt();const Iye={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||u6(r,{},e.getViewRoot().getAncestors(),e)}};function u6(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(Mye),l=Lye(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=GF(l),c=Pye(f,h)),u.stroke=c;var d=e.viewChildren;if(!d||!d.length)h=GF(l),u.fill=h;else{var v=Eye(e,i,a,s,l,d);E(d,function(p,m){if(p.depth>=r.length||p===r[p.depth]){var y=Rye(i,l,p,m,v,n);u6(p,y,r,n)}})}}}function Lye(e,t,r){var n=de({},t),i=r.designatedVisualItemStyle;return E(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function GF(e){var t=VC(e,"color");if(t){var r=VC(e,"colorAlpha"),n=VC(e,"colorSaturation");return n&&(t=Rp(t,null,null,n)),r&&(t=v1(t,r)),t}}function Pye(e,t){return t!=null?Rp(t,null,null,e):null}function VC(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Eye(e,t,r,n,i,a){if(!(!a||!a.length)){var o=zC(t,"color")||i.color!=null&&i.color!=="none"&&(zC(t,"colorAlpha")||zC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new Tn(f);return l6(h).drColorMappingBy=c,h}}}function zC(e,t){var r=e.get(t);return Se(r)&&r.length?{name:t,range:r}:null}function Rye(e,t,r,n,i,a){var o=de({},t);if(i){var s=i.type,l=s==="color"&&l6(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Rg=Math.max,U1=Math.min,$F=On,YI=E,c6=["itemStyle","borderWidth"],kye=["itemStyle","gapWidth"],Oye=["upperLabel","show"],Nye=["upperLabel","height"];const Fye={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=yn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ee($F(s.width,l[0]),i),c=Ee($F(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Pg(n,h,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),m=i6(p);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Hye(e,d,p,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(w),f6(p,b,!1,0),w=p.getLayout(),YI(m,function(x,A){var D=(m[A+1]||p).getValue();x.setLayout(de({dataExtent:[D,D],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Uye(s,v,d),!0),e.setLayoutInfo(s),h6(C,new ht(-s.x,-s.y,i,a),m,p,0)}};function f6(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(c6),u=s.get(kye)/2,c=d6(s),f=Math.max(l,c),h=l-u,d=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Rg(i-2*h,0),a=Rg(a-h-d,0);var v=i*a,p=Bye(e,s,v,t,r,n);if(p.length){var m={x:h,y:d,width:i,height:a},y=U1(i,a),S=1/0,b=[];b.area=0;for(var w=0,C=p.length;w<C;){var x=p[w];b.push(x),b.area+=x.getLayout().area;var A=$ye(b,y,t.squareRatio);A<=S?(w++,S=A):(b.area-=b.pop().getLayout().area,HF(b,y,m,u,!1),y=U1(m.width,m.height),b.length=b.area=0,S=1/0)}if(b.length&&HF(b,y,m,u,!0),!r){var D=s.get("childrenVisibleMin");D!=null&&v<D&&(r=!0)}for(var w=0,C=p.length;w<C;w++)f6(p[w],t,r,n+1)}}}function Bye(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=sr(o,function(d){return!d.isRemoved()}),zye(o,s);var u=Gye(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Vye(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*r;o[c].setLayout({area:h})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function Vye(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function zye(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function Gye(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],YI(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function $ye(e,t,r){for(var n=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>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Rg(u*n/l,l/(u*i)):1/0}function HF(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=e.length;f<h;f++){var d=e[f],v={},p=c?d.getLayout().area/c:0,m=v[l[o]]=Rg(c-2*n,0),y=r[s[a]]+r[l[a]]-u,S=f===h-1||y<p?y:p,b=v[l[a]]=Rg(S-2*n,0);v[s[o]]=r[s[o]]+U1(n,m/2),v[s[a]]=u+U1(n,b/2),u+=S,d.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function Hye(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,h=0,d=f.length;h<d;h++)c+=f[h].getValue();var v=a.getValue();if(v===0)return o;u*=c/v;var p=s.getModel(),m=p.get(c6),y=Math.max(m,d6(p));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>rO&&(u=rO),a=s}u<l&&(u=l);var S=Math.pow(u/l,.5);return[n*S,i*S]}function Uye(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function h6(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new ht(t.x-a.x,t.y-a.y,t.width,t.height);YI(e.viewChildren||[],function(u){h6(u,l,r,n,i+1)})}}function d6(e){return e.get(Oye)?e.get(Nye):0}function Wye(e){e.registerSeriesModel(cye),e.registerChartView(bye),e.registerVisual(Iye),e.registerLayout(Fye),uye(e)}function Yye(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){$t(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function Xye(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&n.setItemVisual(o,c[f],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){Ne(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");de(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)i.setItemVisual(o,f[h],n.getItemVisual(l,f[h]))}})})}function w0(e){return e instanceof Array||(e=[e,e]),e}function Zye(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=w0(t.get("edgeSymbol")),a=w0(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=w0(s.getShallow("symbol",!0)),c=w0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(de(h,f),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var $D="-->",Sb=function(e){return e.get("autoCurveness")||null},v6=function(e,t){var r=Sb(e),n=20,i=[];if($t(r))n=r;else if(Se(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},kg=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join($D)},p6=function(e){var t=e.split($D);return[t[0],t[2],t[1]].join($D)},qye=function(e,t){var r=kg(e.node1,e.node2,t);return t.__edgeMap[r]},jye=function(e,t){var r=HD(kg(e.node1,e.node2,t),t),n=HD(kg(e.node2,e.node1,t),t);return r+n},HD=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function Kye(e){Sb(e)&&(e.__curvenessList=[],e.__edgeMap={},v6(e))}function Jye(e,t,r,n){if(Sb(r)){var i=kg(e,t,r),a=r.__edgeMap,o=a[p6(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(n)}}function XI(e,t,r,n){var i=Sb(t),a=Se(i);if(!i)return null;var o=qye(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=jye(e,t);v6(t,u),e.lineStyle=e.lineStyle||{};var c=kg(e.node1,e.node2,t),f=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return f[h+s];var d=p6(c),v=HD(d,t),p=f[s+v+h];return n?a?i&&i[0]===0?(v+h)%2?p:-p:((v%2?0:1)+h)%2?p:-p:(v+h)%2?p:-p:f[s+v+h]}function g6(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),ZI(r,e)}}function ZI(e,t){e.eachEdge(function(r,n){var i=Qo(r.getModel().get(["lineStyle","curveness"]),-XI(r,t,n,!0),0),a=Hs(r.node1.getLayout()),o=Hs(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function Qye(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];E(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}ZI(a.graph,r)}else(!n||n==="none")&&g6(r)})}function hp(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function dp(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var UF=Math.PI,GC=[];function qI(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var h=i.pointToData(n),d=h[0],v=h[1],p=[d-l,v-u];Dd(p,p),y_(p,p,c),r.setLayout([l+p[0],u+p[1]],!0);var m=e.get(["circular","rotateLabel"]);m6(r,m,l,u)}e0e[t](e,s,o,c,l,u,f),s.eachEdge(function(y,S){var b=Qo(y.getModel().get(["lineStyle","curveness"]),XI(y,e,S),0),w=Hs(y.node1.getLayout()),C=Hs(y.node2.getLayout()),x,A=(w[0]+C[0])/2,D=(w[1]+C[1])/2;+b&&(b*=3,x=[l*b+A*(1-b),u*b+D*(1-b)]),y.setLayout([w,C,x])})}}}var e0e={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(e,t,r,n,i,a,o){var s=0;GC.length=o;var l=hp(e);t.eachNode(function(f){var h=dp(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=UF/2),GC[f.dataIndex]=d,s+=d*2});var u=(2*UF-s)/o/2,c=0;t.eachNode(function(f){var h=u+GC[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=h})}};function m6(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");de(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function t0e(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&qI(t,"symbolSize")})}var vh=IA;function r0e(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Df(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Hs(f.p),f.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,p;return{warmUp:function(){d=h*.8},setFixed:function(m){n[m].fixed=!0},setUnfixed:function(m){n[m].fixed=!1},beforeStep:function(m){v=m},afterStep:function(m){p=m},step:function(m){v&&v(n,i);for(var y=[],S=n.length,b=0;b<i.length;b++){var w=i[b];if(!w.ignoreForceLayout){var C=w.n1,x=w.n2;zc(y,x.p,C.p);var A=LA(y)-w.d,D=x.w/(C.w+x.w);isNaN(D)&&(D=0),Dd(y,y),!C.fixed&&vh(C.p,C.p,y,D*A*d),!x.fixed&&vh(x.p,x.p,y,-(1-D)*A*d)}}for(var b=0;b<S;b++){var M=n[b];M.fixed||(zc(y,l,M.p),vh(M.p,M.p,y,u*d))}for(var b=0;b<S;b++)for(var C=n[b],I=b+1;I<S;I++){var x=n[I];zc(y,x.p,C.p);var A=LA(y);A===0&&(Poe(y,Math.random()-.5,Math.random()-.5),A=1);var P=(C.rep+x.rep)/A/A;!C.fixed&&vh(C.pp,C.pp,y,P),!x.fixed&&vh(x.pp,x.pp,y,-P)}for(var R=[],b=0;b<S;b++){var M=n[b];M.fixed||(zc(R,M.p,M.pp),vh(M.p,M.p,R,d),pi(M.pp,M.p))}d=d*.992;var N=d<.01;p&&p(n,i,N),m&&m(N)}}}function n0e(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(b){var w=a.getId(b);a.setItemLayout(b,n[w]||[NaN,NaN])}):!l||l==="none"?g6(t):l==="circular"&&qI(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),d=Se(f)?f:[f,f],v=Se(h)?h:[h,h];v=[v[1],v[0]];var p=a.mapArray("value",function(b,w){var C=a.getItemLayout(w),x=ir(b,u,d);return isNaN(x)&&(x=(d[0]+d[1])/2),{w:x,rep:x,fixed:a.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),m=o.mapArray("value",function(b,w){var C=i.getEdgeByIndex(w),x=ir(b,c,v);isNaN(x)&&(x=(v[0]+v[1])/2);var A=C.getModel(),D=Qo(C.getModel().get(["lineStyle","curveness"]),-XI(C,t,w,!0),0);return{n1:p[C.node1.dataIndex],n2:p[C.node2.dataIndex],d:x,curveness:D,ignoreForceLayout:A.get("ignoreForceLayout")}}),y=r.getBoundingRect(),S=r0e(p,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});S.beforeStep(function(b,w){for(var C=0,x=b.length;C<x;C++)b[C].fixed&&pi(b[C].p,i.getNodeByIndex(C).getLayout())}),S.afterStep(function(b,w,C){for(var x=0,A=b.length;x<A;x++)b[x].fixed||i.getNodeByIndex(x).setLayout(b[x].p),n[a.getId(x)]=b[x].p;for(var x=0,A=w.length;x<A;x++){var D=w[x],M=i.getEdgeByIndex(x),I=D.n1.p,P=D.n2.p,R=M.getLayout();R=R?R.slice():[],R[0]=R[0]||[],R[1]=R[1]||[],pi(R[0],I),pi(R[1],P),+D.curveness&&(R[2]=[(I[0]+P[0])/2-(I[1]-P[1])*D.curveness,(I[1]+P[1])/2-(P[0]-I[0])*D.curveness]),M.setLayout(R)}}),t.forceLayout=S,t.preservedPoints=n,S.step()}else t.forceLayout=null})}function i0e(e,t,r){var n=de(e.getBoxLayoutParams(),{aspect:r});return yn(n,{width:t.getWidth(),height:t.getHeight()})}function a0e(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(m){var y=a.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];XS(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=i0e(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],d=c.width,v=c.height,p=n.coordinateSystem=new _m;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,h),p.setViewRect(c.x,c.y,d,v),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),r.push(p)}}),r}var WF=xn.prototype,$C=im.prototype,y6=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(y6);function HC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var o0e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new y6},t.prototype.buildPath=function(r,n){HC(n)?WF.buildPath.call(this,r,n):$C.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return HC(this.shape)?WF.pointAt.call(this,r):$C.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=HC(n)?[n.x2-n.x1,n.y2-n.y1]:$C.tangentAt.call(this,r);return Dd(i,i)},t}(Ct),UC=["fromSymbol","toSymbol"];function YF(e){return"_"+e+"Type"}function XF(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=zd(i),u=Lf(o||0,l);return n+l+u+(a||"")+(s||"")}function ZF(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=zd(i),u=Lf(o||0,l),c=hn(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function s0e(e){var t=new o0e({name:"line",subPixelOptimize:!0});return UD(t.shape,e),t}function UD(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 r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var jI=function(e){Q(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=s0e(o);s.shape.percent=0,Rr(s,{shape:{percent:1}},a,n),this.add(s),E(UC,function(l){var u=ZF(l,r,n);this.add(u),this[YF(l)]=XF(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};UD(l.shape,s),Yt(o,l,a,n),E(UC,function(u){var c=XF(u,r,n),f=YF(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=ZF(u,r,n);this.add(h)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),h=p.get("focus"),d=p.get("blurScope"),c=Dn(v)}var m=r.getItemVisual(n,"style"),y=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,E(UC,function(x){var A=this.childOfName(x);if(A){A.setColor(y),A.style.opacity=m.opacity;for(var D=0;D<xi.length;D++){var M=xi[D],I=o.getState(M);if(I){var P=I.style||{},R=A.ensureState(M),N=R.style||(R.style={});P.stroke!=null&&(N[A.__isEmptyBrush?"stroke":"fill"]=P.stroke),P.opacity!=null&&(N.opacity=P.opacity)}}A.markRedraw()}},this);var S=a.getRawValue(n);Yn(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,A){return a.getFormattedLabel(x,A,r.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(S==null?r.getName(n):isFinite(S)?qr(S):S)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var C=w.get("distance");Se(C)||(C=[C,C]),b.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),Yr(this,h,d,f)},t.prototype.highlight=function(){Js(this)},t.prototype.downplay=function(){Qs(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");UD(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=zc([],f,c);Dd(h,h);function d(I,P){var R=I.__specifiedRotation;if(R==null){var N=l.tangentAt(P);I.attr("rotation",(P===1?-1:1)*Math.PI/2-Math.atan2(N[1],N[0]))}else I.attr("rotation",R)}if(n&&(n.setPosition(c),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,p=void 0,m=a.__labelDistance,y=m[0]*o,S=m[1]*o,b=u/2,w=l.tangentAt(b),C=[w[1],-w[0]],x=l.pointAt(b);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var A=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var D=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(D=Math.PI+D),a.rotation=D}var M=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-S,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=S,p="top";break;default:M=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*y+f[0],a.y=h[1]*S+f[1],v=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*S+c[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*A+c[0],a.y=c[1]+M,v=w[0]<0?"right":"left",a.originX=-y*A,a.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+M,v="center",a.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+M,v=w[0]>=0?"right":"left",a.originX=y*A,a.originY=-M;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},t}(et),KI=function(){function e(t){this.group=new et,this._LineCtor=t||jI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=qF(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qF(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!l0e(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(WC(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Iu(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(WC(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!WC(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function l0e(e){return e.animators&&e.animators.length>0}function qF(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Dn(t)}}function jF(e){return isNaN(e[0])||isNaN(e[1])}function WC(e){return e&&!jF(e[0])&&!jF(e[1])}var YC=[],XC=[],ZC=[],ph=Rn,qC=ef,KF=Math.abs;function JF(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){YC[0]=ph(n[0],i[0],a[0],c),YC[1]=ph(n[1],i[1],a[1],c);var f=KF(qC(YC,t)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var d=s+u;XC[0]=ph(n[0],i[0],a[0],s),XC[1]=ph(n[1],i[1],a[1],s),ZC[0]=ph(n[0],i[0],a[0],d),ZC[1]=ph(n[1],i[1],a[1],d);var f=qC(XC,t)-l;if(KF(f)<.01)break;var v=qC(ZC,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function jC(e,t){var r=[],n=hg,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hs(u[0]),Hs(u[1])],u[2]&&u.__original.push(Hs(u[2])));var h=u.__original;if(u[2]!=null){if(pi(i[0],h[0]),pi(i[1],h[2]),pi(i[2],h[1]),c&&c!=="none"){var d=dp(s.node1),v=JF(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var d=dp(s.node2),v=JF(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}pi(u[0],i[0]),pi(u[1],i[2]),pi(u[2],i[1])}else{if(pi(a[0],h[0]),pi(a[1],h[1]),zc(o,a[1],a[0]),Dd(o,o),c&&c!=="none"){var d=dp(s.node1);IA(a[0],a[0],o,d*t)}if(f&&f!=="none"){var d=dp(s.node2);IA(a[1],a[1],o,-d*t)}pi(u[0],a[0]),pi(u[1],a[1])}})}function QF(e){return e.type==="view"}var u0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new dm,a=new KI,o=this.group;this._controller=new ym(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QF(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Yt(u,c,r)}jC(r.getGraph(),hp(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,C=b.getGraphicEl(),x=b.getModel();if(C){C.off("drag").off("dragend");var A=x.get("draggable");A&&C.on("drag",function(M){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),b.setLayout({fixed:!0},!0),qI(r,"symbolSize",b,[M.offsetX,M.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),ZI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(w)}),C.setDraggable(A,!!x.get("cursor"));var D=x.get(["emphasis","focus"]);D==="adjacency"&&(rt(C).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),C=b.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(rt(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){m6(b,m,y,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!mb(u,i,r)}),!QF(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){VI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){zI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),jC(r.getGraph(),hp(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hp(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){jC(r.getGraph(),hp(r)),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}(pr);function gh(e){return"_EC_"+e}var c0e=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[gh(t)]){var i=new xc(t,r);return i.hostGraph=this,this.nodes.push(i),n[gh(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[gh(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if($t(t)&&(t=this.nodes[t]),$t(r)&&(r=this.nodes[r]),t instanceof xc||(t=i[gh(t)]),r instanceof xc||(r=i[gh(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new _6(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof xc&&(t=t.id),r instanceof xc&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof xc||(r=this._nodesMap[gh(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),xc=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-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(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=He(),r=He(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),_6=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=He(),r=He();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function S6(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},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)}}}dn(xc,S6("hostGraph","data"));dn(_6,S6("hostGraph","edgeData"));function b6(e,t,r,n,i){for(var a=new c0e(n),o=0;o<e.length;o++)a.addNode(On(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,h=c.target;a.addEdge(f,h,u)&&(l.push(c),s.push(On(mn(c.id,null),f+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=ul(e,r);else{var p=lm.get(d),m=p?p.dimensions||[]:[];St(m,"value")<0&&m.concat(["value"]);var y=cm(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new Si(y,r),v.initData(e)}var S=new Si(["value"],r);return S.initData(l,s),i&&i(v,S),r6({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var f0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new mm(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),mf(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Kye(this);var s=b6(a,i,this,!0,l);return E(s.edges,function(u){Jye(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,m=v.getShallow("category"),y=p[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=nr.prototype.getModel;function h(v,p){var m=f.call(this,v,p);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},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(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=YU({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=we(this.option.categories||[],function(i){return i.value!=null?i:de({value:0},i)}),n=new Si(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},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}(Dr),h0e={type:"graphRoam",event:"graphRoam",update:"none"};function d0e(e){e.registerChartView(u0e),e.registerSeriesModel(f0e),e.registerProcessor(Yye),e.registerVisual(Xye),e.registerVisual(Zye),e.registerLayout(Qye),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,t0e),e.registerLayout(n0e),e.registerCoordinateSystem("graphView",{dimensions:_m.dimensions,create:a0e}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rn),e.registerAction(h0e,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=$I(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var v0e=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),p0e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new v0e},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(Ct);function g0e(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ee(r[0],t.getWidth()),s=Ee(r[1],t.getHeight()),l=Ee(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function x0(e,t){var r=e==null?"":e+"";return t&&(Ne(t)?r=t.replace("{value}",r):Xe(t)&&(r=t(e))),r}var m0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=g0e(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),d=h?V1:Ci,v=f.get("show"),p=f.getModel("lineStyle"),m=p.get("width"),y=[u,c];HM(y,!l),u=y[0],c=y[1];for(var S=c-u,b=u,w=[],C=0;v&&C<a.length;C++){var x=Math.min(Math.max(a[C][0],0),1);c=u+S*x;var A=new d({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});A.setStyle({fill:a[C][1]}),A.setStyle(p.getLineStyle(["color","width"])),w.push(A),b=c}w.reverse(),E(w,function(M){return s.add(M)});var D=function(M){if(M<=0)return a[0][1];var I;for(I=0;I<a.length;I++)if(a[I][0]>=M&&(I===0?0:a[I-1][0])<M)return a[I][1];return a[I-1][1]};this._renderTicks(r,n,i,D,o,u,c,l,m),this._renderTitleAndDetail(r,n,i,D,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,D,o,u,c,l,m)},t.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,h=o.cx,d=o.cy,v=o.r,p=+r.get("min"),m=+r.get("max"),y=r.getModel("splitLine"),S=r.getModel("axisTick"),b=r.getModel("axisLabel"),w=r.get("splitNumber"),C=S.get("splitNumber"),x=Ee(y.get("length"),v),A=Ee(S.get("length"),v),D=s,M=(l-s)/w,I=M/C,P=y.getModel("lineStyle").getLineStyle(),R=S.getModel("lineStyle").getLineStyle(),N=y.get("distance"),O,F,B=0;B<=w;B++){if(O=Math.cos(D),F=Math.sin(D),y.get("show")){var W=N?N+c:c,z=new xn({shape:{x1:O*(v-W)+h,y1:F*(v-W)+d,x2:O*(v-x-W)+h,y2:F*(v-x-W)+d},style:P,silent:!0});P.stroke==="auto"&&z.setStyle({stroke:a(B/w)}),f.add(z)}if(b.get("show")){var W=b.get("distance")+N,j=x0(qr(B/w*(m-p)+p),b.get("formatter")),ee=a(B/w),te=O*(v-x-W)+h,me=F*(v-x-W)+d,Ae=b.get("rotate"),Pe=0;Ae==="radial"?(Pe=-D+2*Math.PI,Pe>Math.PI/2&&(Pe+=Math.PI)):Ae==="tangential"?Pe=-D-Math.PI/2:$t(Ae)&&(Pe=Ae*Math.PI/180),Pe===0?f.add(new zt({style:Ar(b,{text:j,x:te,y:me,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:ee}),silent:!0})):f.add(new zt({style:Ar(b,{text:j,x:te,y:me,verticalAlign:"middle",align:"center"},{inheritColor:ee}),silent:!0,originX:te,originY:me,rotation:Pe}))}if(S.get("show")&&B!==w){var W=S.get("distance");W=W?W+c:c;for(var Oe=0;Oe<=C;Oe++){O=Math.cos(D),F=Math.sin(D);var Ue=new xn({shape:{x1:O*(v-W)+h,y1:F*(v-W)+d,x2:O*(v-A-W)+h,y2:F*(v-A-W)+d},silent:!0,style:R});R.stroke==="auto"&&Ue.setStyle({stroke:a((B+Oe/C)/w)}),f.add(Ue),D+=I}D-=I}else D+=M}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,d=this._progressEls,v=[],p=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),C=+r.get("max"),x=[w,C],A=[s,l];function D(I,P){var R=S.getItemModel(I),N=R.getModel("pointer"),O=Ee(N.get("width"),o.r),F=Ee(N.get("length"),o.r),B=r.get(["pointer","icon"]),W=N.get("offsetCenter"),z=Ee(W[0],o.r),j=Ee(W[1],o.r),ee=N.get("keepAspect"),te;return B?te=hn(B,z-O/2,j-F,O,F,null,ee):te=new p0e({shape:{angle:-Math.PI/2,width:O,r:F,x:z,y:j}}),te.rotation=-(P+Math.PI/2),te.x=o.cx,te.y=o.cy,te}function M(I,P){var R=m.get("roundCap"),N=R?V1:Ci,O=m.get("overlap"),F=O?m.get("width"):c/S.count(),B=O?o.r-F:o.r-(I+1)*F,W=O?o.r:o.r-I*F,z=new N({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:B,r:W}});return O&&(z.z2=C-S.get(b,I)%C),z}(y||p)&&(S.diff(h).add(function(I){var P=S.get(b,I);if(p){var R=D(I,s);Rr(R,{rotation:-((isNaN(+P)?A[0]:ir(P,x,A,!0))+Math.PI/2)},r),f.add(R),S.setItemGraphicEl(I,R)}if(y){var N=M(I,s),O=m.get("clip");Rr(N,{shape:{endAngle:ir(P,x,A,O)}},r),f.add(N),tD(r.seriesIndex,S.dataType,I,N),v[I]=N}}).update(function(I,P){var R=S.get(b,I);if(p){var N=h.getItemGraphicEl(P),O=N?N.rotation:s,F=D(I,O);F.rotation=O,Yt(F,{rotation:-((isNaN(+R)?A[0]:ir(R,x,A,!0))+Math.PI/2)},r),f.add(F),S.setItemGraphicEl(I,F)}if(y){var B=d[P],W=B?B.shape.endAngle:s,z=M(I,W),j=m.get("clip");Yt(z,{shape:{endAngle:ir(R,x,A,j)}},r),f.add(z),tD(r.seriesIndex,S.dataType,I,z),v[I]=z}}).execute(),S.each(function(I){var P=S.getItemModel(I),R=P.getModel("emphasis"),N=R.get("focus"),O=R.get("blurScope"),F=R.get("disabled");if(p){var B=S.getItemGraphicEl(I),W=S.getItemVisual(I,"style"),z=W.fill;if(B instanceof Fn){var j=B.style;B.useStyle(de({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},W))}else B.useStyle(W),B.type!=="pointer"&&B.setColor(z);B.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",a(ir(S.get(b,I),x,[0,1],!0))),B.z2EmphasisLift=0,Wn(B,P),Yr(B,N,O,F)}if(y){var ee=v[I];ee.useStyle(S.getItemVisual(I,"style")),ee.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),ee.z2EmphasisLift=0,Wn(ee,P),Yr(ee,N,O,F)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=hn(s,n.cx-o/2+Ee(l[0],n.r),n.cy-o/2+Ee(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new et,d=[],v=[],p=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new zt({silent:!0}),v[y]=new zt({silent:!0})}).update(function(y,S){d[y]=s._titleEls[S],v[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),b=l.get(u,y),w=new et,C=a(ir(b,[c,f],[0,1],!0)),x=S.getModel("title");if(x.get("show")){var A=x.get("offsetCenter"),D=o.cx+Ee(A[0],o.r),M=o.cy+Ee(A[1],o.r),I=d[y];I.attr({z2:m?0:2,style:Ar(x,{x:D,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(I)}var P=S.getModel("detail");if(P.get("show")){var R=P.get("offsetCenter"),N=o.cx+Ee(R[0],o.r),O=o.cy+Ee(R[1],o.r),F=Ee(P.get("width"),o.r),B=Ee(P.get("height"),o.r),W=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=v[y],z=P.get("formatter");I.attr({z2:m?0:2,style:Ar(P,{x:N,y:O,text:x0(b,z),width:isNaN(F)?null:F,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:W})}),jH(I,{normal:P},b,function(ee){return x0(ee,z)}),p&&KH(I,y,l,r,{getFormattedLabel:function(ee,te,me,Ae,Pe,Oe){return x0(Oe?Oe.interpolatedValue:b,z)}}),w.add(I)}h.add(w)}),this.group.add(h),this._titleEls=d,this._detailEls=v},t.type="gauge",t}(pr),y0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return $d(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}(Dr);function _0e(e){e.registerChartView(m0e),e.registerSeriesModel(y0e)}var S0e=["itemStyle","opacity"],b0e=function(e){Q(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Mi,s=new zt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(S0e);c=c??1,i||wo(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Rr(a,{style:{opacity:c}},o,n)):Yt(a,{style:{opacity:c},shape:{points:l.points}},o,n),Wn(a,s),this._updateLabel(r,n),Yr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;Yn(o,Dn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var d=c.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new ut(d[0][0],d[0][1]):null},Yt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),MI(i,II(l),{stroke:h})},t}(Ti),w0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new b0e(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);_g(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(pr),x0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mm(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return $d(this,{coordDimensions:["value"],encodeDefaulter:st(oI,this)})},t.prototype._defaultLabelLine=function(r){mf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Dr);function C0e(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function T0e(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return Xe(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function A0e(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,d,v;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[h,d],[h,d]];else{var p=void 0,m=void 0,y=void 0,S=void 0,b=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=p-b,h=y-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=p+b,h=y+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,S=m-b,d=S-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,S=m+b,d=S+5,f="center"):o==="rightTop"?(p=r==="horizontal"?u[3][0]:u[1][0],m=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(S=m-b,d=S-5,f="center"):(y=p+b,h=y+5,f="top")):o==="rightBottom"?(p=u[2][0],m=u[2][1],r==="horizontal"?(S=m+b,d=S+5,f="center"):(y=p+b,h=y+5,f="bottom")):o==="leftTop"?(p=u[0][0],m=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(S=m-b,d=S-5,f="center"):(y=p-b,h=y-5,f="right")):o==="leftBottom"?(p=r==="horizontal"?u[1][0]:u[3][0],m=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(S=m+b,d=S+5,f="center"):(y=p-b,h=y-5,f="right")):(p=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r==="horizontal"?(S=m+b,d=S+5,f="center"):(y=p+b,h=y+5,f="left")),r==="horizontal"?(y=p,h=y):(S=m,d=S),v=[[p,m],[y,S]]}l.label={linePoints:v,x:h,y:d,verticalAlign:"middle",textAlign:f,inside:c}})}function D0e(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=C0e(r,t),s=r.get("orient"),l=o.width,u=o.height,c=T0e(n,a),f=o.x,h=o.y,d=s==="horizontal"?[Ee(r.get("minSize"),u),Ee(r.get("maxSize"),u)]:[Ee(r.get("minSize"),l),Ee(r.get("maxSize"),l)],v=n.getDataExtent(i),p=r.get("min"),m=r.get("max");p==null&&(p=Math.min(v[0],0)),m==null&&(m=v[1]);var y=r.get("funnelAlign"),S=r.get("gap"),b=s==="horizontal"?l:u,w=(b-S*(n.count()-1))/n.count(),C=function(O,F){if(s==="horizontal"){var B=n.get(i,O)||0,W=ir(B,[p,m],d,!0),z=void 0;switch(y){case"top":z=h;break;case"center":z=h+(u-W)/2;break;case"bottom":z=h+(u-W);break}return[[F,z],[F,z+W]]}var j=n.get(i,O)||0,ee=ir(j,[p,m],d,!0),te;switch(y){case"left":te=f;break;case"center":te=f+(l-ee)/2;break;case"right":te=f+l-ee;break}return[[te,F],[te+ee,F]]};a==="ascending"&&(w=-w,S=-S,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var x=0;x<c.length;x++){var A=c[x],D=c[x+1],M=n.getItemModel(A);if(s==="horizontal"){var I=M.get(["itemStyle","width"]);I==null?I=w:(I=Ee(I,l),a==="ascending"&&(I=-I));var P=C(A,f),R=C(D,f+I);f+=I+S,n.setItemLayout(A,{points:P.concat(R.slice().reverse())})}else{var N=M.get(["itemStyle","height"]);N==null?N=w:(N=Ee(N,u),a==="ascending"&&(N=-N));var P=C(A,h),R=C(D,h+N);h+=N+S,n.setItemLayout(A,{points:P.concat(R.slice().reverse())})}}A0e(n)})}function M0e(e){e.registerChartView(w0e),e.registerSeriesModel(x0e),e.registerLayout(D0e),e.registerProcessor(gm("funnel"))}var I0e=.3,L0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new et,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=t3(r);s.diff(l).add(h).update(d).remove(v).execute();function h(m){var y=e3(s,o,m,c,u);KC(y,s,m,f)}function d(m,y){var S=l.getItemGraphicEl(y),b=w6(s,m,c,u);s.setItemGraphicEl(m,S),Yt(S,{shape:{points:b}},r,m),wo(S),KC(S,s,m,f)}function v(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=P0e(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=t3(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=e3(a,this._dataGroup,c,s,o);f.incremental=!0,KC(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(pr);function P0e(e,t,r){var n=e.model,i=e.getRect(),a=new Ot({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),Rr(a,{shape:{width:i.width,height:i.height}},t,r),a}function w6(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);E0e(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function e3(e,t,r,n,i){var a=w6(e,r,n,i),o=new Mi({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function t3(e){var t=e.get("smooth",!0);return t===!0&&(t=I0e),t=Ks(t),fg(t)&&(t=0),{smooth:t}}function KC(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(r),a=i.getModel("emphasis");Wn(e,i,"lineStyle"),Yr(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function E0e(e,t){return t==="category"?e==null:e==null||isNaN(e)}var R0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return ul(null,this,{useEncodeDefaulter:Fe(k0e,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},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}(Dr);function k0e(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return E(t.dimensions,function(n){var i=O0e(n);r[n]=i}),r}}function O0e(e){return+e.replace("dim","")}var N0e=["lineStyle","opacity"],F0e={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(N0e,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function B0e(e){V0e(e),z0e(e)}function V0e(e){if(!e.parallel){var t=!1;E(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function z0e(e){var t=cr(e.parallelAxis);E(t,function(r){if(Ke(r)){var n=r.parallelIndex||0,i=cr(e.parallel)[n];i&&i.parallelAxisDefault&&ft(r,i.parallelAxisDefault,!1)}})}var G0e=5,$0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},E(H0e,function(a,o){i.getZr().on(o,this._handlers[o]=Fe(a,this))},this)),Vd(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){xg(this,"_throttledDispatchExpand"),E(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(de({type:"parallelAxisExpand"},r))},t.type="parallel",t}(Br),H0e={mousedown:function(e){JC(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(JC(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>G0e)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!JC(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function JC(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var U0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&ft(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){E(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);E(i,function(a){r.push("dim"+a.get("dim")),n.push(a.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}(Dt),W0e=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ao);function kf(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=mh(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=mh(s,[0,o]),i=a=mh(s,[i,a]),n=0}t[0]=mh(t[0],r),t[1]=mh(t[1],r);var l=QC(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=mh(t[n],c);var f;return f=QC(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=QC(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function QC(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function mh(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var eT=E,x6=Math.min,C6=Math.max,r3=Math.floor,Y0e=Math.ceil,n3=qr,X0e=Math.PI,Z0e=function(){function e(t,r,n){this.type="parallel",this._axesMap=He(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;eT(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new W0e(o,pb(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();eT(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),cd(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=yn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=C0(t.get("axisExpandWidth"),l),f=C0(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),v;if(d)v=C0(d[1]-d[0],l),d[1]=d[0]+v;else{v=C0(c*(f-1),l);var p=t.get("axisExpandCenter")||r3(u/2);d=[c*p-v/2],d[1]=d[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[r3(n3(d[0]/c,1))+1,Y0e(n3(d[1]/c,1))-1],S=m/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),eT(n,function(o,s){var l=(i.axisExpandable?j0e:q0e)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:X0e/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],d=ca();Mf(d,d,h),as(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];E(o,function(m){s.push(t.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=t.getValues(s,c),d=0,v=o.length;d<v;d++){var p=l[d].getActiveState(h[d]);if(p==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return mo([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Je(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):h&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?kf(l,i,o,"all"):u="none";else{var d=i[1]-i[0],v=o[1]*s/d;i=[C6(0,v-d/2)],i[1]=x6(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},e}();function C0(e,t){return x6(C6(e,t[0]),t[1])}function q0e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function j0e(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e<o[0]?(s=e*a,c=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function K0e(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new Z0e(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",cn).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var J0e={create:K0e},WD=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return _f([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Je(r);if(n)for(var i=n.length-1;i>=0;i--)za(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(Dt);dn(WD,fm);var wf=!0,Og=Math.min,dd=Math.max,Q0e=Math.pow,e_e=1e4,t_e=6,r_e=6,i3="globalPan",n_e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},i_e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},a3={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},a_e=0,JI=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new et,n._uid="brushController_"+a_e++,E(h_e,function(i,a){this._handlers[a]=Fe(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||qge(n,i3,this._uid),E(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=ft(Je(a3),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;jge(r,i3,this._uid),E(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};E(r,function(i){n[i.panelId]=Je(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=we(r,function(h){return ft(Je(a3),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new el(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(h,d){return(h.id!=null?h.id:n+d)+"-"+h.brushType}function u(h,d){return l(h.__brushOption,d)}function c(h,d){var v=r[h];if(d!=null&&i[d]===s)a[h]=i[d];else{var p=a[h]=d!=null?(i[d].__brushOption=v,i[d]):A6(o,T6(o,v));QI(o,p)}}function f(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),YD(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ya);function T6(e,t){var r=bb[t.brushType].createCover(e,t);return r.__brushOption=t,M6(r,t),e.group.add(r),r}function A6(e,t){var r=eL(t);return r.endCreating&&(r.endCreating(e,t),M6(t,t.__brushOption)),t}function D6(e,t){var r=t.__brushOption;eL(t).updateCoverShape(e,t,r.range,r)}function M6(e,t){var r=t.z;r==null&&(r=e_e),e.traverse(function(n){n.z=r,n.z2=r})}function QI(e,t){eL(t).updateCommon(e,t),D6(e,t)}function eL(e){return bb[e.__brushOption.brushType]}function tL(e,t,r){var n=e._panels;if(!n)return wf;var i,a=e._transform;return E(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function I6(e,t){var r=e._panels;if(!r)return wf;var n=t.__brushOption.panelId;return n!=null?r[n]:wf}function YD(e){var t=e._covers,r=t.length;return E(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function xf(e,t){var r=we(e._covers,function(n){var i=n.__brushOption,a=Je(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function o_e(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=Q0e(i*i+a*a,.5);return o>t_e}function L6(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function P6(e,t,r,n){var i=new et;return i.add(new Ot({name:"main",style:rL(r),silent:!0,draggable:!0,cursor:"move",drift:st(o3,e,t,i,["n","s","w","e"]),ondragend:st(xf,t,{isEnd:!0})})),E(n,function(a){i.add(new Ot({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:st(o3,e,t,i,a),ondragend:st(xf,t,{isEnd:!0})}))}),i}function E6(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=dd(i,r_e),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,d=f-a+i/2,v=c-o,p=f-s,m=v+i,y=p+i;As(e,t,"main",o,s,v,p),n.transformable&&(As(e,t,"w",l,u,a,y),As(e,t,"e",h,u,a,y),As(e,t,"n",l,u,m,a),As(e,t,"s",l,d,m,a),As(e,t,"nw",l,u,a,a),As(e,t,"ne",h,u,a,a),As(e,t,"sw",l,d,a,a),As(e,t,"se",h,d,a,a))}function XD(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(rL(r)),i.attr({silent:!n,cursor:n?"move":"default"}),E([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?ZD(e,a[0]):l_e(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?i_e[s]+"-resize":null})})}function As(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(c_e(nL(e,t,[[n,i],[n+a,i+o]])))}function rL(e){return qe({strokeNoScale:!0},e.brushStyle)}function R6(e,t,r,n){var i=[Og(e,r),Og(t,n)],a=[dd(e,r),dd(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function s_e(e){return of(e.group)}function ZD(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=QS(r[t],s_e(e));return n[i]}function l_e(e,t){var r=[ZD(e,t[0]),ZD(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function o3(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=k6(t,i,a);E(n,function(u){var c=n_e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(R6(s[0][0],s[1][0],s[0][1],s[1][1])),QI(t,r),xf(t,{isEnd:!1})}function u_e(e,t,r,n){var i=t.__brushOption.range,a=k6(e,r,n);E(i,function(o){o[0]+=a[0],o[1]+=a[1]}),QI(e,t),xf(e,{isEnd:!1})}function k6(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function nL(e,t,r){var n=I6(e,t);return n&&n!==wf?n.clipPath(r,e._transform):Je(r)}function c_e(e){var t=Og(e[0][0],e[1][0]),r=Og(e[0][1],e[1][1]),n=dd(e[0][0],e[1][0]),i=dd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function f_e(e,t,r){if(!(!e._brushType||d_e(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=tL(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===wf||s.panelId===a.panelId)&&bb[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function qD(e){var t=e.event;t.preventDefault&&t.preventDefault()}function jD(e,t,r){return e.childOfName("main").contain(t,r)}function O6(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),o_e(e)||i){if(a&&!i){o.brushMode==="single"&&YD(e);var l=Je(o);l.brushType=s3(l.brushType,a),l.panelId=a===wf?null:a.panelId,i=e._creatingCover=T6(e,l),e._covers.push(i)}if(i){var u=bb[s3(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(nL(e,i,e._track)),n&&(A6(e,i),u.updateCommon(e,i)),D6(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&tL(e,t,r)&&YD(e)&&(s={isEnd:n,removeOnClick:!0});return s}function s3(e,t){return e==="auto"?t.defaultBrushType:e}var h_e={mousedown:function(e){if(this._dragging)l3(this,e);else if(!e.target||!e.target.draggable){qD(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=tL(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(f_e(this,e,n),this._dragging){qD(e);var i=O6(this,e,n,!1);i&&xf(this,i)}},mouseup:function(e){l3(this,e)}};function l3(e,t){if(e._dragging){qD(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=O6(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&xf(e,a)}}function d_e(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var bb={lineX:u3(0),lineY:u3(1),rect:{createCover:function(e,t){function r(n){return n}return P6({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=L6(e);return R6(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){E6(e,t,r,n)},updateCommon:XD,contain:jD},polygon:{createCover:function(e,t){var r=new et;return r.add(new Mi({name:"main",style:rL(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ti({name:"main",draggable:!0,drift:st(u_e,e,t),ondragend:st(xf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:nL(e,t,r)})},updateCommon:XD,contain:jD}};function u3(e){return{createCover:function(t,r){return P6({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=L6(t),n=Og(r[0][e],r[1][e]),i=dd(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=I6(t,r);if(o!==wf&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),E6(t,r,l,i)},updateCommon:XD,contain:jD}}function N6(e){return e=iL(e),function(t){return XH(t,e)}}function F6(e,t){return e=iL(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function B6(e,t,r){var n=iL(e);return function(i,a){return n.contain(a[0],a[1])&&!mb(i,t,r)}}function iL(e){return ht.create(e)}var v_e=["axisLine","axisTickLabel","axisName"],p_e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new JI(n.getZr())).on("brush",Fe(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!g_e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new et,this.group.add(this._axisGroup),!!r.get("show")){var s=y_e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=de({strokeContainThreshold:c},h),v=new bi(r,d);E(v_e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,r,s,c,i),om(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ht.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:N6(f),isTargetByCursor:B6(f,s,a),getLinearBrushOtherExtent:F6(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(m_e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=we(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Br);function g_e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function m_e(e){var t=e.axis;return we(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function y_e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var __e={type:"axisAreaSelect",event:"axisAreaSelected"};function S_e(e){e.registerAction(__e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var b_e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function V6(e){e.registerComponentView($0e),e.registerComponentModel(U0e),e.registerCoordinateSystem("parallel",J0e),e.registerPreprocessor(B0e),e.registerComponentModel(WD),e.registerComponentView(p_e),hd(e,"parallel",WD,b_e),S_e(e)}function w_e(e){bt(V6),e.registerChartView(L0e),e.registerSeriesModel(R0e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,F0e)}var x_e=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}(),C_e=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new x_e},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){Js(this)},t.prototype.downplay=function(){Qs(this)},t}(Ct),T_e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new C_e,m=rt(p);m.dataIndex=v.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=v.getModel(),S=y.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),x=C.get("localX"),A=C.get("localY"),D=v.node2.getLayout(),M=v.node2.getModel(),I=M.get("localX"),P=M.get("localY"),R=v.getLayout(),N,O,F,B,W,z,j,ee;p.shape.extent=Math.max(1,R.dy),p.shape.orient=d,d==="vertical"?(N=(x!=null?x*u:w.x)+R.sy,O=(A!=null?A*c:w.y)+w.dy,F=(I!=null?I*u:D.x)+R.ty,B=P!=null?P*c:D.y,W=N,z=O*(1-b)+B*b,j=F,ee=O*b+B*(1-b)):(N=(x!=null?x*u:w.x)+w.dx,O=(A!=null?A*c:w.y)+R.sy,F=I!=null?I*u:D.x,B=(P!=null?P*c:D.y)+R.ty,W=N*(1-b)+F*b,z=O,j=N*b+F*(1-b),ee=B),p.setShape({x1:N,y1:O,x2:F,y2:B,cpx1:W,cpy1:z,cpx2:j,cpy2:ee}),p.useStyle(S.getItemStyle()),c3(p.style,d,v);var te=""+y.get("value"),me=Dn(y,"edgeLabel");Yn(p,me,{labelFetcher:{getFormattedLabel:function(Oe,Ue,se,he,pe,ye){return r.getFormattedLabel(Oe,Ue,"edge",he,Qo(pe,me.normal&&me.normal.get("formatter"),te),ye)}},labelDataIndex:v.dataIndex,defaultText:te}),p.setTextConfig({position:"inside"});var Ae=y.getModel("emphasis");Wn(p,y,"lineStyle",function(Oe){var Ue=Oe.getItemStyle();return c3(Ue,d,v),Ue}),s.add(p),h.setItemGraphicEl(v.dataIndex,p);var Pe=Ae.get("focus");Yr(p,Pe==="adjacency"?v.getAdjacentDataIndices():Pe==="trajectory"?v.getTrajectoryDataIndices():Pe,Ae.get("blurScope"),Ae.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),m=v.getModel(),y=m.get("localX"),S=m.get("localY"),b=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,C=new Ot({shape:{x:y!=null?y*u:p.x,y:S!=null?S*c:p.y,width:p.dx,height:p.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Yn(C,Dn(m),{labelFetcher:{getFormattedLabel:function(A,D){return r.getFormattedLabel(A,D,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),C.disableLabelAnimation=!0,C.setStyle("fill",v.getVisual("color")),C.setStyle("decal",v.getVisual("style").decal),Wn(C,m),s.add(C),f.setItemGraphicEl(v.dataIndex,C),rt(C).dataType="node";var x=b.get("focus");Yr(C,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var m=f.getItemModel(p);m.get("draggable")&&(v.drift=function(y,S){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(A_e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(pr);function c3(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Ne(n)&&Ne(i)&&(e.fill=new am(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function A_e(e,t,r){var n=new Ot({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Rr(n,{shape:{width:e.width+20}},t,r),n}var D_e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new nr(o[l],this,n));if(a&&i){var u=b6(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,m=p.getData().getItemLayout(v);if(m){var y=m.depth,S=p.levelModels[y];S&&(d.parentModel=S)}return d}),h.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,m=p.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var S=y.depth,b=p.levelModels[S];b&&(d.parentModel=b)}return d})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Mn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return Mn("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Dr);function M_e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=I_e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;P_e(u);var f=sr(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");L_e(u,c,n,i,o,s,h,d,v)})}function I_e(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function L_e(e,t,r,n,i,a,o,s,l){E_e(e,t,r,i,a,s,l),N_e(e,t,a,i,n,o,s),W_e(e,s)}function P_e(e){E(e,function(t){var r=fu(t.outEdges,W1),n=fu(t.inEdges,W1),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function E_e(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<e.length;h++)l[h]=e[h].inEdges.length,l[h]===0&&u.push(e[h]);for(var d=-1;u.length;){for(var v=0;v<u.length;v++){var p=u[v],m=p.hostGraph.data.getRawDataItem(p.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>d&&(d=m.depth),p.setLayout({depth:y?m.depth:f},!0),a==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var S=0;S<p.outEdges.length;S++){var b=p.outEdges[S],w=t.indexOf(b);s[w]=0;var C=b.node2,x=e.indexOf(C);--l[x]===0&&c.indexOf(C)<0&&c.push(C)}}++f,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var A=d>f-1?d:f-1;o&&o!=="left"&&R_e(e,o,a,A);var D=a==="vertical"?(i-r)/A:(n-r)/A;O_e(e,D,a)}function z6(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function R_e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}E(e,function(f){z6(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&k_e(e,n)}function k_e(e,t){E(e,function(r){!z6(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function O_e(e,t,r){E(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function N_e(e,t,r,n,i,a,o){var s=F_e(e,o);B_e(s,t,r,n,i,o),tT(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,V_e(s,l,o),tT(s,i,r,n,o),U_e(s,l,o),tT(s,i,r,n,o)}function F_e(e,t){var r=[],n=t==="vertical"?"y":"x",i=KA(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),E(i.keys,function(a){r.push(i.buckets.get(a))}),r}function B_e(e,t,r,n,i,a){var o=1/0;E(e,function(s){var l=s.length,u=0;E(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),E(e,function(s){E(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),E(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function tT(e,t,r,n,i){var a=i==="vertical"?"x":"y";E(e,function(o){o.sort(function(p,m){return p.getLayout()[a]-m.getLayout()[a]});for(var s,l,u,c=0,f=o.length,h=i==="vertical"?"dx":"dy",d=0;d<f;d++)l=o[d],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function V_e(e,t,r){E(e.slice().reverse(),function(n){E(n,function(i){if(i.outEdges.length){var a=fu(i.outEdges,z_e,r)/fu(i.outEdges,W1);if(isNaN(a)){var o=i.outEdges.length;a=o?fu(i.outEdges,G_e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-wu(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-wu(i,r))*t;i.setLayout({y:l},!0)}}})})}function z_e(e,t){return wu(e.node2,t)*e.getValue()}function G_e(e,t){return wu(e.node2,t)}function $_e(e,t){return wu(e.node1,t)*e.getValue()}function H_e(e,t){return wu(e.node1,t)}function wu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function W1(e){return e.getValue()}function fu(e,t,r){for(var n=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],r);isNaN(o)||(n+=o)}return n}function U_e(e,t,r){E(e,function(n){E(n,function(i){if(i.inEdges.length){var a=fu(i.inEdges,$_e,r)/fu(i.inEdges,W1);if(isNaN(a)){var o=i.inEdges.length;a=o?fu(i.inEdges,H_e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-wu(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-wu(i,r))*t;i.setLayout({y:l},!0)}}})})}function W_e(e,t){var r=t==="vertical"?"x":"y";E(e,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),E(e,function(n){var i=0,a=0;E(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),E(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function Y_e(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;E(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),E(n,function(s){var l=new Tn({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&E(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function X_e(e){e.registerChartView(T_e),e.registerSeriesModel(D_e),e.registerLayout(M_e),e.registerVisual(Y_e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var G6=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],d=[i,a],v=d[c].get("type"),p=d[1-c].get("type"),m=t.data;if(m&&l){var y=[];E(m,function(w,C){var x;Se(w)?(x=w.slice(),w.unshift(C)):Se(w.value)?(x=de({},w),x.value=x.value.slice(),w.value.unshift(C)):x=w,y.push(x)}),t.data=y}var S=this.defaultValueDimensions,b=[{name:f,type:k1(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:k1(p),dimsDef:S.slice()}];return $d(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:st(_U,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),$6=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}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}(Dr);dn($6,G6,!0);var Z_e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=f3(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(wo(f),H6(h,f,a,u)):f=f3(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(pr),q_e=function(){function e(){}return e}(),j_e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new q_e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},t}(Ct);function f3(e,t,r,n,i){var a=e.ends,o=new j_e({shape:{points:i?K_e(a,n,e):a}});return H6(e,o,t,r,i),o}function H6(e,t,r,n,i){var a=r.hostModel,o=If[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");Wn(t,s),Yr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function K_e(e,t,r){return we(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Wp=E;function J_e(e){var t=Q_e(e);Wp(t,function(r){var n=r.seriesModels;n.length&&(e1e(r),Wp(n,function(i,a){t1e(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function Q_e(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=St(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function e1e(e){var t=e.axis,r=e.seriesModels,n=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Wp(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Wp(r,function(v){var p=v.get("boxWidth");Se(p)||(p=[p,p]),o.push([Ee(p[0],s)||0,Ee(p[1],s)||0])});var c=s*.8-2,f=c/n*.3,h=(c-f*(n-1))/n,d=h/2-c/2;Wp(r,function(v,p){a.push(d),d+=f+h,i.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function t1e(e,t,r){var n=e.coordinateSystem,i=e.getData(),a=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var h=i.get(u,f),d=b(h,c[2],f),v=b(h,c[0],f),p=b(h,c[1],f),m=b(h,c[3],f),y=b(h,c[4],f),S=[];w(S,p,!1),w(S,m,!0),S.push(v,p,y,m),C(S,v),C(S,y),C(S,d),i.setItemLayout(f,{initBaseline:d[s],ends:S})}function b(x,A,D){var M=i.get(A,D),I=[];I[o]=x,I[s]=M;var P;return isNaN(x)||isNaN(M)?P=[NaN,NaN]:(P=n.dataToPoint(I),P[o]+=t),P}function w(x,A,D){var M=A.slice(),I=A.slice();M[o]+=a,I[o]-=a,D?x.push(M,I):x.push(I,M)}function C(x,A){var D=A.slice(),M=A.slice();D[o]-=a,M[o]+=a,x.push(D,M)}}function r1e(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=za(e[o].slice()),l=Lx(s,.25),u=Lx(s,.5),c=Lx(s,.75),f=s[0],h=s[s.length-1],d=(i??1.5)*(c-l),v=a?f:Math.max(f,l-d),p=a?h:Math.min(h,c+d),m=t.itemNameFormatter,y=Xe(m)?m({value:o}):Ne(m)?m.replace("{value}",o+""):o+"";r.push([y,v,l,u,c,p]);for(var S=0;S<s.length;S++){var b=s[S];if(b<v||b>p){var w=[y,b];n.push(w)}}}return{boxData:r,outliers:n}}var n1e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==ai){var n="";tr(n)}var i=r1e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function i1e(e){e.registerSeriesModel($6),e.registerChartView(Z_e),e.registerLayout(J_e),e.registerTransform(n1e)}var a1e=["color","borderColor"],o1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Iu(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&h3(u,f))return;var h=rT(f,c,!0);Rr(h,{shape:{points:f.ends}},r,c),nT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var d=n.getItemLayout(c);if(s&&h3(u,d)){a.remove(h);return}h?(Yt(h,{shape:{points:d.ends}},r,c),wo(h)):h=rT(d),nT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),d3(r,this.group);var n=r.get("clip",!0)?vm(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=rT(s);nT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){d3(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(pr),s1e=function(){function e(){}return e}(),l1e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new s1e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(Ct);function rT(e,t,r){var n=e.ends;return new l1e({shape:{points:r?u1e(n,e):n},z2:100})}function h3(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function nT(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,Wn(e,i)}function u1e(e,t){return we(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var c1e=function(){function e(){}return e}(),iT=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new c1e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},t}(Ct);function d3(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new iT({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new iT({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new iT({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),aT(1,o,e),aT(-1,s,e),aT(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function aT(e,t,r,n){var i=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(a1e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var U6=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Dr);dn(U6,G6,!0);function f1e(e){!e||!Se(e.series)||E(e.series,function(t){Ke(t)&&t.type==="k"&&(t.type="candlestick")})}var h1e=["itemStyle","borderColor"],d1e=["itemStyle","borderColor0"],v1e=["itemStyle","borderColorDoji"],p1e=["itemStyle","color"],g1e=["itemStyle","color0"],m1e={seriesType:"candlestick",plan:Bd(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?p1e:g1e)}function n(a,o){return o.get(a===0?v1e:a>0?h1e:d1e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");de(f,c)}}}}}},y1e={seriesType:"candlestick",plan:Bd(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=_1e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=we(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:d};function d(p,m){for(var y,S=m.getStore();(y=p.next())!=null;){var b=S.get(s,y),w=S.get(u,y),C=S.get(c,y),x=S.get(f,y),A=S.get(h,y),D=Math.min(w,C),M=Math.max(w,C),I=W(D,b),P=W(M,b),R=W(x,b),N=W(A,b),O=[];z(O,P,0),z(O,I,1),O.push(ee(N),ee(P),ee(R),ee(I));var F=m.getItemModel(y),B=!!F.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:v3(S,y,w,C,c,B),initBaseline:w>C?P[a]:I[a],ends:O,brushRect:j(x,A,b)})}function W(te,me){var Ae=[];return Ae[i]=me,Ae[a]=te,isNaN(me)||isNaN(te)?[NaN,NaN]:t.dataToPoint(Ae)}function z(te,me,Ae){var Pe=me.slice(),Oe=me.slice();Pe[i]=D_(Pe[i]+n/2,1,!1),Oe[i]=D_(Oe[i]-n/2,1,!0),Ae?te.push(Pe,Oe):te.push(Oe,Pe)}function j(te,me,Ae){var Pe=W(te,Ae),Oe=W(me,Ae);return Pe[i]-=n/2,Oe[i]-=n/2,{x:Pe[0],y:Pe[1],width:n,height:Oe[1]-Pe[1]}}function ee(te){return te[i]=D_(te[i],1),te}}function v(p,m){for(var y=jo(p.count*4),S=0,b,w=[],C=[],x,A=m.getStore(),D=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var M=A.get(s,x),I=A.get(u,x),P=A.get(c,x),R=A.get(f,x),N=A.get(h,x);if(isNaN(M)||isNaN(R)||isNaN(N)){y[S++]=NaN,S+=3;continue}y[S++]=v3(A,x,I,P,c,D),w[i]=M,w[a]=R,b=t.dataToPoint(w,null,C),y[S++]=b?b[0]:NaN,y[S++]=b?b[1]:NaN,w[a]=N,b=t.dataToPoint(w,null,C),y[S++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function v3(e,t,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:t>0?e.get(i,t-1)<=n?1:-1:1,o}function _1e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Ee(ot(e.get("barMaxWidth"),i),i),o=Ee(ot(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ee(s,i):Math.max(Math.min(i/2,a),o)}function S1e(e){e.registerChartView(o1e),e.registerSeriesModel(U6),e.registerPreprocessor(f1e),e.registerVisual(m1e),e.registerLayout(y1e)}function p3(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var b1e=function(e){Q(t,e);function t(r,n){var i=e.call(this)||this,a=new hm(r,n),o=new et;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=hn(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}p3(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}p3(i,r)},t.prototype.highlight=function(){Js(this)},t.prototype.downplay=function(){Qs(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=zd(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var d=Lf(r.getItemVisual(n,"symbolOffset"),u);d&&(o.x=d[0],o.y=d[1]);var v=r.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=a.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/r.count(),p.z=a.getShallow("z")||0,p.zlevel=a.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?p.showEffectOn!=="render"&&i.startEffectAnimation(p):m==="normal"&&p.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=p,Yr(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(et),w1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new dm(b1e)},t.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=pm("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=Xoe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(pr),x1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return ul(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},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}(Dr);function C1e(e){e.registerChartView(w1e),e.registerSeriesModel(x1e),e.registerLayout(pm("effectScatter"))}var W6=function(e){Q(t,e);function t(r,n,i){var a=e.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,i){return new jI(r,n,i)},t.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");Se(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=hn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=On(n.get("delay"),function(d){return d/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;Xe(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return jl(r.__p1,r.__cp1)+jl(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Rn,c=NA;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=jl(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*jl(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},t}(et),Y6=function(e){Q(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createPolyline(r,n,i),a}return t.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new Mi({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Yt(o,s,a,n),this._updateCommonStl(r,n,i)},t.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,Yr(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(et),T1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,i){return new Y6(r,n,i)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=jl(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var d=r.__t<1?h[0]-f[0]:f[0]-h[0],v=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(W6),A1e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),D1e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||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 A1e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],h=i[o++];if(r.moveTo(u,c),a>0){var d=(u+f)/2-(c-h)*a,v=(c+h)/2-(f-u)*a;r.quadraticCurveTo(d,v,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],h=a[u++],d=1;d<c;d++){var v=a[u++],p=a[u++];if(zl(f,h,v,p,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],h=a[u++],v=a[u++],p=a[u++];if(o>0){var m=(f+v)/2-(h-p)*o,y=(h+p)/2-(v-f)*o;if(_H(f,h,m,y,v,p,s,r,n))return l}else if(zl(f,h,v,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new ht(a,o,s,l)}return r},t}(Ct),M1e=function(){function e(){this.group=new et}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],i=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new D1e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=rt(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),X6={seriesType:"lines",plan:Bd(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=i.start;c<i.end;c++){var d=e.getLineCoords(c,o);r&&(s[f++]=d);for(var v=0;v<d;v++)h=t.dataToPoint(o[v],!1,h),s[f++]=h[0],s[f++]=h[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var p=a.getItemModel(c),d=e.getLineCoords(c,o),m=[];if(r)for(var y=0;y<d;y++)m.push(t.dataToPoint(o[y]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var S=p.get(["lineStyle","curveness"]);+S&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*S,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*S])}a.setItemLayout(c,m)}}}}}},I1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&vm(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=X6.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new M1e:new KI(o?a?T1e:Y6:a?W6:jI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(pr),L1e=typeof Uint32Array>"u"?Array:Uint32Array,P1e=typeof Float64Array>"u"?Array:Float64Array;function g3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=we(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),IM([i,r[0],r[1]])}))}var E1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],g3(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(g3(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=c1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=c1(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),$t(r[0])){for(var i=r.length,a=new L1e(i),o=new P1e(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var h=0;h<f;h++){var d=r[c++],v=r[c++];o[s++]=d,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var i=new Si(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mn("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},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}(Dr);function T0(e){return e instanceof Array||(e=[e,e]),e}var R1e={seriesType:"lines",reset:function(e){var t=T0(e.get("symbol")),r=T0(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=T0(s.getShallow("symbol",!0)),u=T0(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function k1e(e){e.registerChartView(I1e),e.registerSeriesModel(E1e),e.registerLayout(X6),e.registerVisual(R1e)}var O1e=256,N1e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=mu.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),d=t.length;f.width=r,f.height=n;for(var v=0;v<d;++v){var p=t[v],m=p[0],y=p[1],S=p[2],b=i(S);h.globalAlpha=b,h.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var w=h.getImageData(0,0,f.width,f.height),C=w.data,x=0,A=C.length,D=this.minOpacity,M=this.maxOpacity,I=M-D;x<A;){var b=C[x+3]/256,P=Math.floor(b*(O1e-1))*4;if(b>0){var R=o(b)?l:u;b>0&&(b=b*I+D),C[x++]=R[P],C[x++]=R[P+1],C[x++]=R[P+2],C[x++]=R[P+3]*b*256}else x+=4}return h.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=mu.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function F1e(e,t,r){var n=e[1]-e[0];t=we(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function B1e(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function m3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var V1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):m3(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(m3(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Iu(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ef(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");u=d.getBandWidth()+.5,c=v.getBandWidth()+.5,f=d.scale.getExtent(),h=v.scale.getExtent()}for(var p=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),C=Dn(r),x=r.getModel("emphasis"),A=x.get("focus"),D=x.get("blurScope"),M=x.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=i;P<a;P++){var R=void 0,N=m.getItemVisual(P,"style");if(l){var O=m.get(I[0],P),F=m.get(I[1],P);if(isNaN(m.get(I[2],P))||isNaN(O)||isNaN(F)||O<f[0]||O>f[1]||F<h[0]||F>h[1])continue;var B=s.dataToPoint([O,F]);R=new Ot({shape:{x:B[0]-u/2,y:B[1]-c/2,width:u,height:c},style:N})}else{if(isNaN(m.get(I[1],P)))continue;R=new Ot({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:N})}if(m.hasItemOption){var W=m.getItemModel(P),z=W.getModel("emphasis");y=z.getModel("itemStyle").getItemStyle(),S=W.getModel(["blur","itemStyle"]).getItemStyle(),b=W.getModel(["select","itemStyle"]).getItemStyle(),w=W.get(["itemStyle","borderRadius"]),A=z.get("focus"),D=z.get("blurScope"),M=z.get("disabled"),C=Dn(W)}R.shape.r=w;var j=r.getRawValue(P),ee="-";j&&j[2]!=null&&(ee=j[2]+""),Yn(R,C,{labelFetcher:r,labelDataIndex:P,defaultOpacity:N.opacity,defaultText:ee}),R.ensureState("emphasis").style=y,R.ensureState("blur").style=S,R.ensureState("select").style=b,Yr(R,A,D,M),R.incremental=o,o&&(R.states.emphasis.hoverLayer=!0),p.add(R),m.setItemGraphicEl(P,R),this._progressiveEls&&this._progressiveEls.push(R)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new N1e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),d=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),p=Math.min(c.height+c.y,a.getHeight()),m=v-h,y=p-d,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(A,D,M){var I=r.dataToPoint([A,D]);return I[0]-=h,I[1]-=d,I.push(M),I}),w=i.getExtent(),C=i.type==="visualMap.continuous"?B1e(w,i.option.range):F1e(w,i.getPieceList(),i.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var x=new Fn({style:{width:m,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(pr),z1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return ul(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=lm.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.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}(Dr);function G1e(e){e.registerChartView(V1e),e.registerSeriesModel(z1e)}var $1e=["itemStyle","borderWidth"],y3=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oT=new ll,H1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:y3[+c],categoryDim:y3[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var p=S3(o,v),m=_3(o,v,p,h),y=b3(o,h,m);o.setItemGraphicEl(v,y),a.add(y),x3(y,h,m)}}).update(function(v,p){var m=s.getItemGraphicEl(p);if(!o.hasValue(v)){a.remove(m);return}var y=S3(o,v),S=_3(o,v,y,h),b=Q6(o,S);m&&b!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(v,null),m=null),m?j1e(m,h,S):m=b3(o,h,S,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=S,a.add(m),x3(m,h,S)}).remove(function(v){var p=s.getItemGraphicEl(v);p&&w3(s,v,p.__pictorialSymbolMeta.animationModel,p)}).execute();var d=r.get("clip",!0)?vm(r.coordinateSystem,!1,r):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){w3(a,rt(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(pr);function _3(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};U1e(r,a,i,n,h),W1e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),Y1e(r,h.symbolScale,u,n,h);var d=h.symbolSize,v=Lf(r.get("symbolOffset"),d);return X1e(r,d,i,a,o,v,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function U1e(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Se(o)){var f=[sT(s,o[0])-l,sT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=sT(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=r[a.wh]),i.pxSign=c>0?1:-1}function sT(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function W1e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=e.getItemVisual(t,"symbolSize"),v;Se(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[f.index]=Ee(v[f.index],h),v[c.index]=Ee(v[c.index],n?h:Math.abs(a)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Y1e(e,t,r,n,i){var a=e.get($1e)||0;a&&(oT.attr({scaleX:t[0],scaleY:t[1],rotation:r}),oT.updateTransform(),a/=oT.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function X1e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,v=f.pxSign,p=Math.max(t[d.index]+s,0),m=p;if(n){var y=Math.abs(l),S=On(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=Ee(S,t[d.index]),C=Math.max(p+w*2,0),x=b?0:w*2,A=aH(n),D=A?n:C3((y+x)/C),M=y-D*p;w=M/2/(b?D:Math.max(D-1,1)),C=p+w*2,x=b?0:w*2,!A&&n!=="fixed"&&(D=u?C3((Math.abs(u)+x)/C):0),m=D*C-x,f.repeatTimes=D,f.symbolMargin=w}var I=v*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[d.index]=o==="start"?I:o==="end"?l-I:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var R=f.bundlePosition=[];R[h.index]=r[h.xy],R[d.index]=r[d.xy];var N=f.barRectShape=de({},r);N[d.wh]=v*Math.max(Math.abs(r[d.wh]),Math.abs(P[d.index]+I)),N[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[d.xy]=0,O[d.wh]=r[d.wh]}function Z6(e){var t=e.symbolPatternSize,r=hn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function q6(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(aL(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Qh(p,null,v(c),r,n):Qh(p,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(p)}),c++});c<u;c++){var h=Z6(r);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var d=v(c);Qh(h,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},r,n)}function v(p){var m=s.slice(),y=r.pxSign,S=p;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(S=u-1-p),m[l.index]=f*(S-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function j6(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Qh(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=Z6(r),i.add(a),Qh(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function K6(e,t,r){var n=de({},t.barRectShape),i=e.__pictorialBarRect;i?Qh(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ot({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function J6(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=de({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Yt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ot({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],If[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function S3(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Z1e,r.isAnimationEnabled=q1e,r}function Z1e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function q1e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function b3(e,t,r,n){var i=new et,a=new et;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?q6(i,t,r):j6(i,t,r),K6(i,r,n),J6(i,t,r,n),i.__pictorialShapeStr=Q6(e,r),i.__pictorialSymbolMeta=r,i}function j1e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Yt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?q6(e,t,r,!0):j6(e,t,r,!0),K6(e,r,!0),J6(e,t,r,!0)}function w3(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];aL(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),E(a,function(o){_u(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function Q6(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function aL(e,t,r){E(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Qh(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&If[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function x3(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");aL(e,function(p){if(p instanceof Fn){var m=p.style;p.useStyle(de({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else p.useStyle(r.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var d=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Yn(v,Dn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:fd(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Yr(e,c,f,a.get("disabled"))}function C3(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var K1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Lu(Ig.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}(Ig);function J1e(e){e.registerChartView(H1e),e.registerSeriesModel(K1e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,st(N8,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F8("pictorialBar"))}var Q1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(m){return m.name}var d=new el(this._layersSeries||[],l,h,h),v=[];d.add(Fe(p,this,"add")).update(Fe(p,this,"update")).remove(Fe(p,this,"remove")).execute();function p(m,y,S){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var w=[],C=[],x,A=l[y].indices,D=0;D<A.length;D++){var M=a.getItemLayout(A[D]),I=M.x,P=M.y0,R=M.y;w.push(I,P),C.push(I,P+R),x=a.getItemVisual(A[D],"style")}var N,O=a.getItemLayout(A[0]),F=r.getModel("label"),B=F.get("margin"),W=r.getModel("emphasis");if(m==="add"){var z=v[y]=new et;N=new TW({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z.add(N),s.add(z),r.isAnimationEnabled()&&N.setClipPath(eSe(N.getBoundingRect(),r,function(){N.removeClipPath()}))}else{var z=b[S];N=z.childAt(0),s.add(z),v[y]=z,Yt(N,{shape:{points:w,stackedOnPoints:C}},r),wo(N)}Yn(N,Dn(r),{labelDataIndex:A[D-1],defaultText:a.getName(A[D-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),N.setTextConfig({position:null,local:!0});var j=N.getTextContent();j&&(j.x=O.x-B,j.y=O.y0+O.y/2),N.useStyle(x),a.setItemGraphicEl(y,N),Wn(N,r),Yr(N,W.get("focus"),W.get("blurScope"),W.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(pr);function eSe(e,t,r){var n=new Ot({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Rr(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var lT=2,tSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mm(Fe(this.getData,this),Fe(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=KA(r,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,d){o.push({name:d,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",cn).models[0],a=i.get("type"),o=sr(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=He(),c=0,f=0;f<s.length;++f)l.push(s[f][lT]),u.get(s[f][lT])||(u.set(s[f][lT],c),c++);var h=cm(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:k1(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Si(h,this);return d.initData(s),d},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=KA(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return r.get(o,f)-r.get(o,h)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,i){Se(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,d=o[c].indices.length,v=0;v<d;++v){var p=a.get(r[0],o[c].indices[v]),m=Math.abs(p-n);m<=f&&(u=p,f=m,h=o[c].indices[v])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return Mn("nameValue",{name:o,value:s})},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}(Dr);function rSe(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=Ee(s[0],o.height),s[1]=Ee(s[1],o.height);var u=o.height-s[0]-s[1];T3(n,r,u)}else{s[0]=Ee(s[0],o.width),s[1]=Ee(s[1],o.width);var c=o.width-s[0]-s[1];T3(n,r,c)}n.setLayout("layoutInfo",a)})}function T3(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=we(i,function(m){return we(m.indices,function(y){var S=n.dataToPoint(e.get(a,y));return S[1]=e.get(o,y),S})}),l=nSe(s),u=l.y0,c=r/l.max,f=i.length,h=i[0].indices.length,d,v=0;v<h;++v){d=u[v]*c,e.setItemLayout(i[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:d,y:s[0][v][1]*c});for(var p=1;p<f;++p)d+=s[p-1][v][1]*c,e.setItemLayout(i[p].indices[v],{layerIndex:p,x:s[p][v][0],y0:d,y:s[p][v][1]*c})}}function nSe(e){for(var t=e.length,r=e[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function iSe(e){e.registerChartView(Q1e),e.registerSeriesModel(tSe),e.registerLayout(rSe),e.registerProcessor(gm("themeRiver"))}var aSe=2,oSe=4,A3=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=aSe,o.textConfig={inside:!0},rt(o).seriesIndex=n.seriesIndex;var s=new zt({z2:oSe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;rt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=de({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=ud(d,o));var v=Xc(l.getModel("itemStyle"),f,!0);de(f,v),E(xi,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var C=Xc(w,f);C&&(b.shape=C)}),r?(s.setShape(f),s.shape.r=c.r0,Rr(s,{shape:{r:c.r}},i,n.dataIndex)):(Yt(s,{shape:f},i),wo(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Yr(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),d=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(v!=null&&Math.abs(s)<v);h.ignore=!p,E(mg,function(y){var S=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),b=y==="normal",w=b?h:h.ensureState(y),C=r.getFormattedLabel(d,y);b&&(C=C||n.node.name),w.style=Ar(S,{},null,y!=="normal",!0),C&&(w.style.text=C);var x=S.get("show");x!=null&&!b&&(w.ignore=!x);var A=m(S,"position"),D=b?f:f.states[y],M=D.style.fill;D.textConfig={outsideFill:S.get("color")==="inherit"?M:null,inside:A!=="outside"};var I,P=m(S,"distance")||0,R=m(S,"align"),N=m(S,"rotate"),O=Math.PI*.5,F=Math.PI*1.5,B=la(N==="tangential"?Math.PI/2-l:l),W=B>O&&!pg(B-O)&&B<F;A==="outside"?(I=o.r+P,R=W?"right":"left"):!R||R==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,R="center"):R==="left"?(I=o.r0+P,R=W?"right":"left"):R==="right"&&(I=o.r-P,R=W?"left":"right"),w.style.align=R,w.style.verticalAlign=m(S,"verticalAlign")||"middle",w.x=I*u+o.cx,w.y=I*c+o.cy;var z=0;N==="radial"?z=la(-l)+(W?Math.PI:0):N==="tangential"?z=la(Math.PI/2-l)+(W?Math.PI:0):$t(N)&&(z=N*Math.PI/180),w.rotation=la(z)});function m(y,S){var b=y.get(S);return b??a.get(S)}h.dirtyStyle()},t}(Ci),KD="sunburstRootToNode",D3="sunburstHighlight",sSe="sunburstUnhighlight";function lSe(e){e.registerAction({type:KD,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Pg(t,[KD],i);if(o){var s=i.getViewRoot();s&&(t.direction=WI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:D3,update:"none"},function(t,r,n){t=de({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Pg(t,[D3],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(de(t,{type:"highlight"}))}),e.registerAction({type:sSe,update:"updateView"},function(t,r,n){t=de({},t),n.dispatchAction(de(t,{type:"downplay"}))})}var uSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),h=[];u.eachNode(function(S){h.push(S)});var d=this._oldChildren||[];v(h,d),y(l,u),this._initEvents(),this._oldChildren=h;function v(S,b){if(S.length===0&&b.length===0)return;new el(b,S,w,w).add(C).update(C).remove(st(C,null)).execute();function w(x){return x.getId()}function C(x,A){var D=x==null?null:S[x],M=A==null?null:b[A];p(D,M)}}function p(S,b){if(!f&&S&&!S.getValue()&&(S=null),S!==l&&b!==l){if(b&&b.piece)S?(b.piece.updateData(!1,S,r,n,i),s.setItemGraphicEl(S.dataIndex,b.piece)):m(b);else if(S){var w=new A3(S,r,n,i);c.add(w),s.setItemGraphicEl(S.dataIndex,w)}}}function m(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function y(S,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new A3(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";A1(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:KD,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(pr),cSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};e7(i);var a=this._levelModels=we(r.levels||[],function(l){return new nr(l,this,n)},this),o=UI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=_b(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){a6(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}(Dr);function e7(e){var t=0;E(e.children,function(n){e7(n);var i=n.value;Se(i)&&(i=i[0]),t+=i});var r=e.value;Se(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Se(e.value)?e.value[0]=r:e.value=r}var M3=Math.PI/180;function fSe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Se(a)||(a=[0,a]),Se(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ee(i[0],o),c=Ee(i[1],s),f=Ee(a[0],l/2),h=Ee(a[1],l/2),d=-n.get("startAngle")*M3,v=n.get("minAngle")*M3,p=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&t7(m,S);var b=0;E(m.children,function(B){!isNaN(B.getValue())&&b++});var w=m.getValue(),C=Math.PI/(w||b)*2,x=m.depth>0,A=m.height-(x?-1:1),D=(h-f)/(A||1),M=n.get("clockwise"),I=n.get("stillShowZeroSum"),P=M?1:-1,R=function(B,W){if(B){var z=W;if(B!==p){var j=B.getValue(),ee=w===0&&I?C:j*C;ee<v&&(ee=v),z=W+P*ee;var te=B.depth-y-(x?-1:1),me=f+D*te,Ae=f+D*(te+1),Pe=n.getLevelModel(B);if(Pe){var Oe=Pe.get("r0",!0),Ue=Pe.get("r",!0),se=Pe.get("radius",!0);se!=null&&(Oe=se[0],Ue=se[1]),Oe!=null&&(me=Ee(Oe,l/2)),Ue!=null&&(Ae=Ee(Ue,l/2))}B.setLayout({angle:ee,startAngle:W,endAngle:z,clockwise:M,cx:u,cy:c,r0:me,r:Ae})}if(B.children&&B.children.length){var he=0;E(B.children,function(pe){he+=R(pe,W+he)})}return z-W}};if(x){var N=f,O=f+D,F=Math.PI*2;p.setLayout({angle:F,startAngle:d,endAngle:d+F,clockwise:M,cx:u,cy:c,r0:N,r:O})}R(m,d)})}function t7(e,t){var r=e.children||[];e.children=hSe(r,t),r.length&&E(e.children,function(n){t7(n,t)})}function hSe(e,t){if(Xe(t)){var r=we(e,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return t(i.params,a.params)}),we(r,function(i){return e[i.index]})}else{var n=t==="asc";return e.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function dSe(e){var t={};function r(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ne(s)&&(s=VA(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");de(u,l)})})}function vSe(e){e.registerChartView(uSe),e.registerSeriesModel(cSe),e.registerLayout(st(fSe,"sunburst")),e.registerProcessor(st(gm,"sunburst")),e.registerVisual(dSe),lSe(e)}var I3={color:"fill",borderColor:"stroke"},pSe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ys=Nt(),gSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return ul(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Ys(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Dr);function mSe(e,t){return t=t||[0,0],we(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function ySe(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(r){return e.dataToPoint(r)},size:Fe(mSe,e)}}}function _Se(e,t){return t=t||[0,0],we([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function SSe(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(r){return e.dataToPoint(r)},size:Fe(_Se,e)}}}function bSe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function wSe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Fe(bSe,e)}}}function xSe(e,t){return t=t||[0,0],we(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function CSe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Fe(xSe,e)}}}function TSe(e){var t=e.getRect(),r=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:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function r7(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Ve(e,"text")))}function n7(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Ve(n,"text")&&(o.text=n.text),Ve(n,"rich")&&(o.rich=n.rich),Ve(n,"textFill")&&(o.fill=n.textFill),Ve(n,"textStroke")&&(o.stroke=n.textStroke),Ve(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Ve(n,"fontSize")&&(o.fontSize=n.fontSize),Ve(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Ve(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Ve(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Ve(n,"textPosition")&&(i.position=n.textPosition),Ve(n,"textOffset")&&(i.offset=n.textOffset),Ve(n,"textRotation")&&(i.rotation=n.textRotation),Ve(n,"textDistance")&&(i.distance=n.textDistance)}return L3(o,e),E(o.rich,function(l){L3(l,l)}),{textConfig:i,textContent:a}}function L3(e,t){t&&(t.font=t.textFont||t.font,Ve(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ve(t,"textAlign")&&(e.align=t.textAlign),Ve(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ve(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ve(t,"textWidth")&&(e.width=t.textWidth),Ve(t,"textHeight")&&(e.height=t.textHeight),Ve(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ve(t,"textPadding")&&(e.padding=t.textPadding),Ve(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ve(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ve(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ve(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ve(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ve(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ve(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function P3(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";E3(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,E(t.rich,function(s){E3(s,s)}),n}function E3(e,t){t&&(Ve(t,"fill")&&(e.textFill=t.fill),Ve(t,"stroke")&&(e.textStroke=t.fill),Ve(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ve(t,"font")&&(e.font=t.font),Ve(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ve(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ve(t,"fontSize")&&(e.fontSize=t.fontSize),Ve(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ve(t,"align")&&(e.textAlign=t.align),Ve(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ve(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ve(t,"width")&&(e.textWidth=t.width),Ve(t,"height")&&(e.textHeight=t.height),Ve(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ve(t,"padding")&&(e.textPadding=t.padding),Ve(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ve(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ve(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ve(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ve(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ve(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ve(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ve(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ve(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ve(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ve(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var i7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},R3=Mt(i7);is(os,function(e,t){return e[t]=1,e},{});os.join(", ");var Y1=["","style","shape","extra"],vd=Nt();function oL(e,t,r,n,i){var a=e+"Animation",o=Pd(e,n,i)||{},s=vd(t).userDuring;return o.duration>0&&(o.during=s?Fe(LSe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),de(o,r[a]),o}function R_(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=vd(e),u=t.style;l.userDuring=t.during;var c={},f={};if(ESe(e,t,f),O3("shape",t,f),O3("extra",t,f),!a&&s&&(PSe(e,t,c),k3("shape",e,t,c),k3("extra",e,t,c),RSe(e,t,u,c)),f.style=u,ASe(e,f,o),MSe(e,t),s)if(a){var h={};E(Y1,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(h[v]=h[v]||{}),de(v?h[v]:h,p.enterFrom))});var d=oL("enter",e,t,r,i);d.duration>0&&e.animateFrom(h,d)}else DSe(e,t,i||0,r,c);a7(e,t),u?e.dirty():e.markRedraw()}function a7(e,t){for(var r=vd(e).leaveToProps,n=0;n<Y1.length;n++){var i=Y1[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=vd(e).leaveToProps={}),i&&(r[i]=r[i]||{}),de(i?r[i]:r,a.leaveTo))}}function wb(e,t,r,n){if(e){var i=e.parent,a=vd(e).leaveToProps;if(a){var o=oL("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function uf(e){return e==="all"}function ASe(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){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(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function DSe(e,t,r,n,i){if(i){var a=oL("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function MSe(e,t){Ve(t,"silent")&&(e.silent=t.silent),Ve(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ua&&Ve(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ct&&Ve(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Bo={},ISe={setTransform:function(e,t){return Bo.el[e]=t,this},getTransform:function(e){return Bo.el[e]},setShape:function(e,t){var r=Bo.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Bo.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Bo.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Bo.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Bo.el.extra||(Bo.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Bo.el.extra;if(t)return t[e]}};function LSe(){var e=this,t=e.el;if(t){var r=vd(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Bo.el=t,n(ISe)}}function k3(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),uf(l))de(o,a);else for(var u=cr(l),c=0;c<u.length;c++){var f=u[c],h=a[f];o[f]=h}else if(uf(s)||St(s,e)>=0){!o&&(o=n[e]={});for(var d=Mt(a),c=0;c<d.length;c++){var f=d[c],h=a[f];kSe(i[f],h)&&(o[f]=h)}}}}}function O3(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=Mt(n),o=0;o<a.length;o++){var s=a[o];i[s]=kp(n[s])}}function PSe(e,t,r){for(var n=t.transition,i=uf(n)?os:cr(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function ESe(e,t,r){for(var n=0;n<R3.length;n++){var i=R3[n],a=i7[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<os.length;n++){var s=os[n];t[s]!=null&&(r[s]=t[s])}}function RSe(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!uf(o)){var l=cr(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(e.getAnimationStyleProps&&(uf(s)||uf(o)||St(s,"style")>=0)){var h=e.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=n.style={});for(var v=Mt(r),u=0;u<v.length;u++){var c=v[u];if(d[c]){var f=i[c];a[c]=f}}}}}}}function kSe(e,t){return ii(e)?e!==t:e!=null&&isFinite(e)}var o7=Nt(),OSe=["percent","easing","shape","style","extra"];function s7(e){e.stopAnimation("keyframe"),e.attr(o7(e))}function X1(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Se(t)){E(t,function(s){X1(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Pd("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=o7(e);E(Y1,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),E(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var h=Mt(f);if(s||(h=sr(h,function(p){return St(OSe,p)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;E(h,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(i*u.percent,f,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var Xs="emphasis",nu="normal",sL="blur",lL="select",xu=[nu,Xs,sL,lL],uT={normal:["itemStyle"],emphasis:[Xs,"itemStyle"],blur:[sL,"itemStyle"],select:[lL,"itemStyle"]},cT={normal:["label"],emphasis:[Xs,"label"],blur:[sL,"label"],select:[lL,"label"]},NSe=["x","y"],FSe="e\0\0",Da={normal:{},emphasis:{},blur:{},select:{}},BSe={cartesian2d:ySe,geo:SSe,single:wSe,polar:CSe,calendar:TSe};function JD(e){return e instanceof Ct}function QD(e){return e instanceof Ua}function VSe(e,t){t.copyTransform(e),QD(t)&&QD(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,JD(t)&&JD(e)&&t.setShape(e.shape))}var zSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=N3(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){fT(i,null,f,u(f,a),r,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&wb(h,Ys(h).option,r)}).update(function(f,h){var d=o.getItemGraphicEl(h);fT(i,d,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?vm(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=N3(n,s,i,a),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var h=fT(null,null,f,l(f,o),n,this.group,s);h&&(h.traverse(c),u.push(h))}},t.prototype.eachRendered=function(r){Iu(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(pr);function uL(e){var t=e.type,r;if(t==="path"){var n=e.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=c7(n);r=JS(a,null,i,n.layout||"center"),Ys(r).customPathData=a}else if(t==="image")r=new Fn({}),Ys(r).customImagePath=e.style.image;else if(t==="text")r=new zt({});else if(t==="group")r=new et;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=JM(t);if(!o){var s="";tr(s)}r=new o}return Ys(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function cL(e,t,r,n,i,a,o){s7(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=NSe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Ve(u,"textFill")&&(u.fill=u.textFill),Ve(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=JD(t)?l.decal:null;e&&f&&(f.dirty=!0,c=ud(f,e)),l.__decalPattern=c}if(QD(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}R_(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),X1(t,n.keyframeAnimation,a)}function l7(e,t,r,n,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Sf(a)}}function GSe(e,t,r){if(!e.isGroup){var n=e,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<xu.length;s++)$Se(n,t,xu[s])}}function $Se(e,t,r){var n=r===nu,i=n?t:Z1(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function N3(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):BSe[a.type](a));for(var s=qe({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:x,ordinalRawValue:C,styleEmphasis:A,visual:I,barLayout:P,currentSeriesIndices:R,font:N},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:HSe(e.getData())},u,c,f={},h={},d={},v={},p=0;p<xu.length;p++){var m=xu[p];d[m]=e.getModel(uT[m]),v[m]=e.getModel(cT[m])}function y(O){return O===u?c||(c=t.getItemModel(O)):t.getItemModel(O)}function S(O,F){return t.hasItemOption?O===u?f[F]||(f[F]=y(O).getModel(uT[F])):y(O).getModel(uT[F]):d[F]}function b(O,F){return t.hasItemOption?O===u?h[F]||(h[F]=y(O).getModel(cT[F])):y(O).getModel(cT[F]):v[F]}return function(O,F){return u=O,c=null,f={},h={},i&&i(qe({dataIndexInside:O,dataIndex:t.getRawIndex(O),actionType:F?F.type:null},l),s)};function w(O,F){return F==null&&(F=u),t.getStore().get(t.getDimensionIndex(O||0),F)}function C(O,F){F==null&&(F=u),O=O||0;var B=t.getDimensionInfo(O);if(!B){var W=t.getDimensionIndex(O);return W>=0?t.getStore().get(W,F):void 0}var z=t.get(B.name,F),j=B&&B.ordinalMeta;return j?j.categories[z]:z}function x(O,F){F==null&&(F=u);var B=t.getItemVisual(F,"style"),W=B&&B.fill,z=B&&B.opacity,j=S(F,nu).getItemStyle();W!=null&&(j.fill=W),z!=null&&(j.opacity=z);var ee={inheritColor:Ne(W)?W:"#000"},te=b(F,nu),me=Ar(te,null,ee,!1,!0);me.text=te.getShallow("show")?ot(e.getFormattedLabel(F,nu),fd(t,F)):null;var Ae=C1(te,ee,!1);return M(O,j),j=P3(j,me,Ae),O&&D(j,O),j.legacy=!0,j}function A(O,F){F==null&&(F=u);var B=S(F,Xs).getItemStyle(),W=b(F,Xs),z=Ar(W,null,null,!0,!0);z.text=W.getShallow("show")?Qo(e.getFormattedLabel(F,Xs),e.getFormattedLabel(F,nu),fd(t,F)):null;var j=C1(W,null,!0);return M(O,B),B=P3(B,z,j),O&&D(B,O),B.legacy=!0,B}function D(O,F){for(var B in F)Ve(F,B)&&(O[B]=F[B])}function M(O,F){O&&(O.textFill&&(F.textFill=O.textFill),O.textPosition&&(F.textPosition=O.textPosition))}function I(O,F){if(F==null&&(F=u),Ve(I3,O)){var B=t.getItemVisual(F,"style");return B?B[I3[O]]:null}if(Ve(pSe,O))return t.getItemVisual(F,O)}function P(O){if(a.type==="cartesian2d"){var F=a.getBaseAxis();return Ede(qe({axis:F},O))}}function R(){return r.getCurrentSeriesIndices()}function N(O){return QM(O,r)}}function HSe(e){var t={};return E(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function fT(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=fL(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Yr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fL(e,t,r,n,i,a){var o=-1,s=t;t&&u7(t,n,i)&&(o=St(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=uL(n),s&&VSe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Da.normal.cfg=Da.normal.conOpt=Da.emphasis.cfg=Da.emphasis.conOpt=Da.blur.cfg=Da.blur.conOpt=Da.select.cfg=Da.select.conOpt=null,Da.isLegacy=!1,WSe(u,r,n,i,l,Da),USe(u,r,n,i,l),cL(e,u,r,n,Da,i,l),Ve(n,"info")&&(Ys(u).info=n.info);for(var c=0;c<xu.length;c++){var f=xu[c];if(f!==nu){var h=Z1(n,f),d=hL(n,h,f);l7(f,u,h,d,Da)}}return GSe(u,n,i),n.type==="group"&&YSe(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function u7(e,t,r){var n=Ys(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&jSe(a)&&c7(a)!==n.customPathData||i==="image"&&Ve(o,"image")&&o.image!==n.customImagePath}function USe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&u7(o,a,n)&&(o=null),o||(o=uL(a),e.setClipPath(o)),cL(null,o,t,a,null,n,i)}}function WSe(e,t,r,n,i,a){if(!e.isGroup){F3(r,null,a),F3(r,Xs,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=uL(o),e.setTextContent(c)),cL(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h<xu.length;h++){var d=xu[h];if(d!==nu){var v=a[d].conOpt;l7(d,c,v,hL(o,v,d),null)}}f?c.dirty():c.markRedraw()}}}}function F3(e,t,r){var n=t?Z1(e,t):e,i=t?hL(e,n,Xs):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Z1(s,t):s:null;if(i&&(r.isLegacy||r7(i,a,!!o,!!l))){r.isLegacy=!0;var u=n7(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Z1(e,t){return t?e?e[t]:null:e}function hL(e,t,r){var n=t&&t.style;return n==null&&r===Xs&&e&&(n=e.styleEmphasis),n}function YSe(e,t,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){ZSe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=a[c],h=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),fL(e,h,r,f,i,t)):h.ignore=!0}for(var d=t.childCount()-1;d>=c;d--){var v=t.childAt(d);XSe(t,v,i)}}}function XSe(e,t,r){t&&wb(t,Ys(e).option,r)}function ZSe(e){new el(e.oldChildren,e.newChildren,B3,B3,e).add(V3).update(V3).remove(qSe).execute()}function B3(e,t){var r=e&&e.name;return r??FSe+t}function V3(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;fL(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function qSe(e){var t=this.context,r=t.oldChildren[e];r&&wb(r,Ys(r).option,t.seriesModel)}function c7(e){return e&&(e.pathData||e.d)}function jSe(e){return e&&(Ve(e,"pathData")||Ve(e,"d"))}function KSe(e){e.registerChartView(zSe),e.registerSeriesModel(gSe)}var Ec=Nt(),z3=Je,hT=Fe,dL=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new et,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=st(G3,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}H3(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=FI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ec(t).pointerEl=new If[a.type](z3(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ec(t).labelEl=new zt(z3(r.label));t.add(a),$3(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ec(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ec(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),$3(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=sm(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){js(u.event)},onmousedown:hT(this._onHandleDragMove,this,0,0),drift:hT(this._onHandleDragMove,this),ondragend:hT(this._onHandleDragEnd,this)}),n.add(i)),H3(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Se(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Vd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){G3(this._axisPointerModel,!r&&this._moveAnimation,this._handle,dT(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(dT(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(dT(i)),Ec(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function G3(e,t,r,n){f7(Ec(r).lastProp,n)||(Ec(r).lastProp=n,t?Yt(r,n,e):(r.stopAnimation(),r.attr(n)))}function f7(e,t){if(Ke(e)&&Ke(t)){var r=!0;return E(t,function(n,i){r=r&&f7(e[i],n)}),!!r}else return e===t}function $3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function H3(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function vL(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function h7(e,t,r,n,i){var a=r.get("value"),o=d7(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Od(s.get("padding")||0),u=s.getFont(),c=em(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=d),p==="middle"&&(f[1]-=d/2),JSe(f,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Ar(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function JSe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function d7(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:AI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};E(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ne(o)?a=o.replace("{value}",a):Xe(o)&&(a=o(s))}return a}function pL(e,t,r){var n=ca();return Mf(n,n,r.rotation),as(n,n,r.position),mo([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function v7(e,t,r,n,i,a){var o=bi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),h7(t,n,i,a,{position:pL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gL(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function p7(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function U3(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var QSe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=W3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=vL(a),d=ebe[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=RD(l.model,i);v7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=RD(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=W3(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},t}(dL);function W3(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var ebe={line:function(e,t,r){var n=gL([t,r[0]],[t,r[1]],Y3(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:p7([t-n/2,r[0]],[n,i],Y3(e))}}};function Y3(e){return e.dim==="x"?0:1}var tbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(Dt),Vs=Nt(),rbe=E;function g7(e,t,r){if(!At.node){var n=t.getZr();Vs(n).records||(Vs(n).records={}),nbe(n,t);var i=Vs(n).records[e]||(Vs(n).records[e]={});i.handler=r}}function nbe(e,t){if(Vs(e).initialized)return;Vs(e).initialized=!0,r("click",st(X3,"click")),r("mousemove",st(X3,"mousemove")),r("globalout",abe);function r(n,i){e.on(n,function(a){var o=obe(t);rbe(Vs(e).records,function(s){s&&i(s,a,o.dispatchAction)}),ibe(o.pendings,t)})}}function ibe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function abe(e,t,r){e.handler("leave",null,r)}function X3(e,t,r,n){t.handler(e,r,n)}function obe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function e2(e,t){if(!At.node){var r=t.getZr(),n=(Vs(r).records||{})[e];n&&(Vs(r).records[e]=null)}}var sbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";g7("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){e2("axisPointer",n)},t.prototype.dispose=function(r,n){e2("axisPointer",n)},t.type="axisPointer",t}(Br);function m7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yf(a,e);if(o==null||o<0||Se(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,d=f==="x"||f==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(we(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Z3=Nt();function lbe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Fe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){k_(i)&&(i=m7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=k_(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||k_(i),h={},d={},v={list:[],map:{}},p={showPointer:st(cbe,d),showTooltip:st(fbe,v)};E(s.coordSysMap,function(y,S){var b=l||y.containPoint(i);E(s.coordSysAxesInfo[S],function(w,C){var x=w.axis,A=pbe(u,w);if(!f&&b&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=x.pointToData(i)),D!=null&&q3(w,D,p,!1,h)}})});var m={};return E(c,function(y,S){var b=y.linkGroup;b&&!d[S]&&E(b.axesInfo,function(w,C){var x=d[C];if(w!==y&&x){var A=x.value;b.mapper&&(A=y.axis.scale.parse(b.mapper(A,j3(w),j3(y)))),m[y.key]=A}})}),E(m,function(y,S){q3(c[S],y,p,!0,h)}),hbe(d,c,h),dbe(v,i,e,o),vbe(c,o,r),h}}function q3(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=ube(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&de(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function ube(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return E(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,r);h=d.dataIndices,f=d.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=f,a.length=0),E(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function cbe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function fbe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Lg(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function hbe(e,t,r){var n=r.axesInfo=[];E(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function dbe(e,t,r,n){if(k_(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function vbe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Z3(n)[i]||{},o=Z3(n)[i]={};E(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&E(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];E(a,function(u,c){!o[c]&&l.push(u)}),E(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pbe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function j3(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function k_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Sm(e){Rf.registerAxisPointerClass("CartesianAxisPointer",QSe),e.registerComponentModel(tbe),e.registerComponentView(sbe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Se(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Tge(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lbe)}function gbe(e){bt(WW),bt(Sm)}var mbe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var d=vL(a),v=_be[h](s,l,f,c);v.style=d,r.graphicKey=v.type,r.pointer=v}var p=a.get(["label","margin"]),m=ybe(n,i,a,l,p);h7(r,i,a,o,m)},t}(dL);function ybe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=ca();Mf(h,h,s),as(h,h,[n.cx,n.cy]),u=mo([o,-i],h);var d=t.getModel("axisLabel").get("rotate")||0,v=bi.innerTextLayout(s,d*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/p<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var _be={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:gL(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:U3(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:U3(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},Sbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Dt),mL=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",cn).models[0]},t.type="polarAxis",t}(Dt);dn(mL,fm);var bbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mL),wbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mL),yL=function(e){Q(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ao);yL.prototype.dataToRadius=Ao.prototype.dataToCoord;yL.prototype.radiusToData=Ao.prototype.coordToData;var xbe=Nt(),_L=function(e){Q(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=em(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),v=xbe(r.model),p=v.lastAutoInterval,m=v.lastTickCount;return p!=null&&m!=null&&Math.abs(p-d)<=1&&Math.abs(m-o)<=1&&p>d?d=p:(v.lastTickCount=o,v.lastAutoInterval=d),d},t}(Ao);_L.prototype.dataToAngle=Ao.prototype.dataToCoord;_L.prototype.angleToData=Ao.prototype.coordToData;var y7=["radius","angle"],Cbe=function(){function e(t){this.dimensions=y7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new yL,this._angleAxis=new _L,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=K3(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=K3(r);return i===this?this.pointToData(n):null},e}();function K3(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Tbe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ee(n[0],i),e.cy=Ee(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Se(l)||(l=[0,l]);var u=[Ee(l[0],s),Ee(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Abe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();E(O1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),E(O1(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),cd(n.scale,n.model),cd(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function Dbe(e){return e.mainType==="angleAxis"}function J3(e,t){var r;if(e.type=t.get("type"),e.scale=pb(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Dbe(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var Mbe={dimensions:y7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new Cbe(i+"");a.update=Abe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");J3(o,l),J3(s,u),Tbe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",cn).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},Ibe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function A0(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function D0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Q3(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var Lbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=we(i.getViewLabels(),function(c){c=Je(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});Q3(u),Q3(s),E(Ibe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Pbe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Rf),Pbe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=D0(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new If[d]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new nm({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[D0(r)],u=we(n,function(c){return new xn({shape:A0(r,[l,l+s],c.coord)})});e.add(Ba(u,{style:qe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[D0(r)],c=[],f=0;f<i.length;f++)for(var h=0;h<i[f].length;h++)c.push(new xn({shape:A0(r,[u,u+l],i[f][h].coord)}));e.add(Ba(c,{style:qe(s.getModel("lineStyle").getLineStyle(),qe(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");E(o,function(f,h){var d=l,v=f.tickValue,p=a[D0(r)],m=r.coordToPoint([p+u,f.coord]),y=r.cx,S=r.cy,b=Math.abs(m[0]-y)/p<.3?"center":m[0]>y?"left":"right",w=Math.abs(m[1]-S)/p<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[v]){var C=s[v];Ke(C)&&C.textStyle&&(d=new nr(C.textStyle,l,l.ecModel))}var x=new zt({silent:bi.isLabelSilent(t),style:Ar(d,{x:m[0],y:m[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),c){var A=bi.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,rt(x).eventData=A}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new xn({shape:A0(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Ba(c[f],{style:qe({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new xn({shape:A0(r,a,i[u][c].coord)}));e.add(Ba(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-n[0].coord*f,d=Math.min(a[0],a[1]),v=Math.max(a[0],a[1]),p=t.get("clockwise"),m=1,y=n.length;m<=y;m++){var S=m===y?n[0].coord:n[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Ci({shape:{cx:r.cx,cy:r.cy,r0:d,r:v,startAngle:h,endAngle:-S*f,clockwise:p},silent:!0})),h=-S*f}for(var m=0;m<c.length;m++)e.add(Ba(c[m],{style:qe({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},Ebe=["axisLine","axisTickLabel","axisName"],Rbe=["splitLine","splitArea","minorSplitLine"],kbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new et;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),d=Nbe(s,r,f),v=new bi(r,d);E(Ebe,v.add,v),a.add(v.getGroup()),om(i,a,r),E(Rbe,function(p){r.get([p,"show"])&&!o.scale.isBlank()&&Obe[p](this.group,r,s,f,h,u,c)},this)}},t.type="radiusAxis",t}(Rf),Obe={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),d=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],p=0;p<a.length;p++){var m=u++%l.length;v[m]=v[m]||[],v[m].push(new If[d]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[p].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var p=0;p<v.length;p++)e.add(Ba(v[p],{style:qe({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new ll({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(Ba(u,{style:qe({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,h=1;h<a.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Ci({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[h].coord}for(var h=0;h<c.length;h++)e.add(Ba(c[h],{style:qe({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function Nbe(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function _7(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function S7(e,t){return t.dim+e.model.componentIndex}function Fbe(e,t,r){var n={},i=Bbe(sr(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=S7(s,l),c=_7(a),f=i[u][c],h=f.offset,d=f.width,v=s.getOtherAxis(l),p=a.coordinateSystem.cx,m=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,S=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var b=o.mapDimension(v.dim),w=o.mapDimension(l.dim),C=bu(o,b),x=l.dim!=="radius"||!a.get("roundCap",!0),A=v.model,D=A.get("startValue"),M=v.dataToCoord(D||0),I=0,P=o.count();I<P;I++){var R=o.get(b,I),N=o.get(w,I),O=R>=0?"p":"n",F=M;C&&(n[c][N]||(n[c][N]={p:M,n:M}),F=n[c][N][O]);var B=void 0,W=void 0,z=void 0,j=void 0;if(v.dim==="radius"){var ee=v.dataToCoord(R)-M,te=l.dataToCoord(N);Math.abs(ee)<y&&(ee=(ee<0?-1:1)*y),B=F,W=F+ee,z=te-h,j=z-d,C&&(n[c][N][O]=W)}else{var me=v.dataToCoord(R,x)-M,Ae=l.dataToCoord(N);Math.abs(me)<S&&(me=(me<0?-1:1)*S),B=Ae+h,W=B+d,z=F,j=F+me,C&&(n[c][N][O]=j)}o.setItemLayout(I,{cx:p,cy:m,r0:B,r:W,startAngle:-z*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:z>=j})}}})}function Bbe(e){var t={};E(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=S7(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var d=_7(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var v=Ee(n.get("barWidth"),c),p=Ee(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!h[d].width&&(v=Math.min(f.remainedWidth,v),h[d].width=v,f.remainedWidth-=v),p&&(h[d].maxWidth=p),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return E(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ee(n.categoryGap,o),l=Ee(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),E(a,function(p,m){var y=p.maxWidth;y&&y<f&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,d;E(a,function(p,m){p.width||(p.width=f),d=p,h+=p.width*(1+l)}),d&&(h-=d.width*l);var v=-h/2;E(a,function(p,m){r[i][m]=r[i][m]||{offset:v,width:p.width},v+=p.width*(1+l)})}),r}var Vbe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},zbe={splitNumber:5},Gbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(Br);function $be(e){bt(Sm),Rf.registerAxisPointerClass("PolarAxisPointer",mbe),e.registerCoordinateSystem("polar",Mbe),e.registerComponentModel(Sbe),e.registerComponentView(Gbe),hd(e,"angle",bbe,Vbe),hd(e,"radius",wbe,zbe),e.registerComponentView(Lbe),e.registerComponentView(kbe),e.registerLayout(st(Fbe,"bar"))}function t2(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,i={},a=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),On(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=e.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var Hbe=["axisLine","axisTickLabel","axisName"],Ube=["splitArea","splitLine"],Wbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new et;var l=t2(r),u=new bi(r,l);E(Hbe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),E(Ube,function(c){r.get([c,"show"])&&Ybe[c](this,this.group,this._axisGroup,r)},this),om(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){$W(this)},t.type="singleAxis",t}(Rf),Ybe={splitLine:function(e,t,r,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],h=0,d=i.getTicksCoords({tickModel:a}),v=[],p=[],m=0;m<d.length;++m){var y=i.toGlobalCoord(d[m].coord);c?(v[0]=y,v[1]=u.y,p[0]=y,p[1]=u.y+u.height):(v[0]=u.x,v[1]=y,p[0]=u.x+u.width,p[1]=y);var S=new xn({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});sd(S.shape,l);var b=h++%s.length;f[b]=f[b]||[],f[b].push(S)}for(var w=o.getLineStyle(["color"]),m=0;m<f.length;++m)t.add(Ba(f[m],{style:qe({stroke:s[m%s.length]},w),silent:!0}))}},splitArea:function(e,t,r,n){GW(e,r,n,n)}},O_=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(Dt);dn(O_,fm.prototype);var Xbe=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Ao),b7=["single"],Zbe=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=b7,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=this.dimension,a=new Xbe(i,pb(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();E(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),cd(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=yn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},t.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},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(t){var r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=eB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=eB(r);return i===this?this.pointToData(n):null},e}();function eB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function qbe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new Zbe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",cn).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var jbe={create:qbe,dimensions:b7},tB=["x","y"],Kbe=["width","height"],Jbe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=vT(l,1-q1(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=vL(a),d=Qbe[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=t2(i);v7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=t2(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=q1(o),u=vT(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=vT(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(dL),Qbe={line:function(e,t,r){var n=gL([t,r[0]],[t,r[1]],q1(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:p7([t-n/2,r[0]],[n,i],q1(e))}}};function q1(e){return e.isHorizontal()?0:1}function vT(e,t){var r=e.getRect();return[r[tB[t]],r[tB[t]]+r[Kbe[t]]]}var ewe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Br);function twe(e){bt(Sm),Rf.registerAxisPointerClass("SingleAxisPointer",Jbe),e.registerComponentView(ewe),e.registerComponentView(Wbe),e.registerComponentModel(O_),hd(e,"single",O_,O_.defaultOption),e.registerCoordinateSystem("single",jbe)}var rwe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Nd(r);e.prototype.init.apply(this,arguments),rB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),rB(this.option,r)},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}(Dt);function rB(e,t){var r=e.cellSize,n;Se(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=we([0,1],function(a){return xce(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Su(e,t,{type:"box",ignoreSize:i})}var nwe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ot({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){v(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var m=o._getLinePointsOfOneWeek(r,p,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Mi({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Ne(r)&&r?Sce(r,n):Xe(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var p=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:v},y=this._formatterLabel(p,m),S=new zt({z2:30,style:Ar(o,{text:y})});S.attr(this._yearTextPositionControl(S,d[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ne(s))&&(s&&(n=uD(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p<f[h].length-1;p++){var m=f[h][p].slice(),y=this._firstDayOfMonth[p];if(v){var S=this._firstDayPoints[p];m[d]=(S[d]+f[0][p+1][d])/2}var b=o.get("formatter"),w=s[+y.m-1],C={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},x=this._formatterLabel(b,C),A=new zt({z2:30,style:de(Ar(o,{text:x}),this._monthTextPositionControl(m,v,i,u,l))});a.add(A)}}},t.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||Ne(c)){c&&(n=uD(c)||n);var d=n.get(["time","dayOfWeekShort"]);c=d||we(n.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var v=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=Ee(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var m=0;m<7;m++){var y=l.getNextNDay(v,m),S=l.dataToRect([y.time],!1).center,b=m;b=Math.abs((m+h)%7);var w=new zt({z2:30,style:de(Ar(s,{text:c[b]}),this._weekTextPositionControl(S,a,u,f,p))});o.add(w)}}},t.type="calendar",t}(Br),pT=864e5,iwe=function(){function e(t,r,n){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(t){t=ss(t);var r=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+i+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];E([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=yn(o,l);E([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){Se(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=i.start.time&&n.time<i.end.time+pT))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);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(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},e.prototype.convertToPixel=function(t,r,n){var i=nB(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=nB(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Se(t)&&t.length===1&&(t=t[0]),Se(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/pT)-Math.floor(r[0].time/pT)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&r<i.fweek||t===i.weeks&&r>i.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function nB(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function awe(e){e.registerComponentModel(rwe),e.registerComponentView(nwe),e.registerCoordinateSystem("calendar",iwe)}function owe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function iB(e,t){var r;return E(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function swe(e,t,r){var n=de({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ft(i,n,!0),Su(i,n,{ignoreSize:!0}),vU(r,i),M0(r,i),M0(r,i,"shape"),M0(r,i,"style"),M0(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var w7=["transition","enterFrom","leaveTo"],lwe=w7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function M0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?w7:lwe,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function uwe(e,t){if(e&&(e.hv=t.hv=[iB(t,["left","right"]),iB(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var cwe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=cH(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];E(l,function(c,f){var h=c.newOption;h&&(u.push(h),owe(c,h),swe(o,f,h),uwe(o[f],h))},this),i.elements=sr(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){E(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Dt),aB={path:null,compoundPath:null,group:et,image:Fn,text:zt},ka=Nt(),fwe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=He()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");E(n,function(l){var u=mn(l.id,null),c=u!=null?i.get(u):null,f=mn(l.parentId,null),h=f!=null?i.get(f):a,d=l.type,v=l.style;d==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,m=l.textConfig;if(v&&r7(v,d,!!m,!!p)){var y=n7(v,d,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var S=hwe(l),b=l.$action||"merge",w=b==="merge",C=b==="replace";if(w){var x=!c,A=c;x?A=oB(u,h,l.type,i):(A&&(ka(A).isNew=!1),s7(A)),A&&(R_(A,S,r,{isInit:x}),sB(A,l,o,s))}else if(C){N_(c,l,i,r);var D=oB(u,h,l.type,i);D&&(R_(D,S,r,{isInit:!0}),sB(D,l,o,s))}else b==="remove"&&(a7(c,l),N_(c,l,i,r));var M=i.get(u);if(M&&p)if(w){var I=M.getTextContent();I?I.attr(p):M.setTextContent(new zt(p))}else C&&M.setTextContent(new zt(p));if(M){var P=l.clipPath;if(P){var R=P.type,N=void 0,x=!1;if(w){var O=M.getClipPath();x=!O||ka(O).type!==R,N=x?r2(R):O}else C&&(x=!0,N=r2(R));M.setClipPath(N),R_(N,P,r,{isInit:x}),X1(N,P.keyframeAnimation,r)}var F=ka(M);M.setTextConfig(m),F.option=l,dwe(M,r,l),Ed({el:M,componentModel:r,itemName:M.name,itemTooltipOption:l.tooltip}),X1(M,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],h=mn(f.id,null),d=h!=null?o.get(h):null;if(!(!d||!d.isGroup)){var v=d.parent,p=v===a,m=ka(d),y=ka(v);m.width=Ee(m.option.width,p?s:y.width)||0,m.height=Ee(m.option.height,p?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],h=mn(f.id,null),d=h!=null?o.get(h):null;if(d){var v=d.parent,y=ka(v),S=v===a?{width:s,height:l}:{width:y.width,height:y.height},b={},w=ob(d,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!ka(d).isNew&&w){for(var C=f.transition,x={},A=0;A<u.length;A++){var D=u[A],M=b[D];C&&(uf(C)||St(C,D)>=0)?x[D]=M:d[D]=M}Yt(d,x,r,0)}else d.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){N_(i,ka(i).option,n,r._lastGraphicModel)}),this._elMap=He()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Br);function r2(e){var t=Ve(aB,e)?aB[e]:JM(e),r=new t({});return ka(r).type=e,r}function oB(e,t,r,n){var i=r2(r);return t.add(i),n.set(e,i),ka(i).id=e,ka(i).isNew=!0,i}function N_(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){N_(a,t,r,n)}),wb(e,t,n),r.removeKey(ka(e).id))}function sB(e,t,r,n){e.isGroup||E([["cursor",Ua.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Ve(t,a)?e[a]=ot(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),E(Mt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Xe(a)?a:null}}),Ve(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function hwe(e){return e=de({},e),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dU),function(t){delete e[t]}),e}function dwe(e,t,r){var n=rt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=rt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function vwe(e){e.registerComponentModel(cwe),e.registerComponentView(fwe),e.registerPreprocessor(function(t){var r=t.graphic;Se(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var lB=["x","y","radius","angle","single"],pwe=["cartesian2d","polar","singleAxis"];function gwe(e){var t=e.get("coordinateSystem");return St(pwe,t)>=0}function iu(e){return e+"Axis"}function mwe(e,t){var r=He(),n=[],i=He();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,d){var v=r.get(h);v&&v[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function x7(e){var t=e.ecModel,r={infoList:[],infoMap:He()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(iu(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var gT=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Ng=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=uB(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=uB(r);ft(this.option,r,!0),ft(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=He(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return E(lB,function(i){var a=this.getReferringComponents(iu(i),ule);if(a.specified){n=!0;var o=new gT;E(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new gT;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",cn).models[0];d&&E(u,function(v){f.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",cn).models[0]&&h.add(v.componentIndex)})}}}a&&E(lB,function(u){if(a){var c=i.findComponents({mainType:iu(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new gT;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");E([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(iu(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){E(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(iu(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;E(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},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}(Dt);function uB(e){var t={};return E(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var ywe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(Ng),SL=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(Br),_we=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(SL),Mh=E,cB=za,Swe=function(){function e(t,r,n,i){this._dimName=t,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(gwe(r)){var n=iu(this._dimName),i=r.getReferringComponents(n,cn).models[0];i&&this._axisIndex===i.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Je(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Mh(["start","end"],function(h,d){var v=t[h],p=t[h+"Value"];a[d]==="percent"?(v==null&&(v=o[d]),p=i.parse(ir(v,o,r))):(u=!0,p=p==null?r[d]:i.parse(p),v=ir(p,r,o)),l[d]=p==null||isNaN(p)?r[d]:p,s[d]=v==null||isNaN(v)?o[d]:v}),cB(l),cB(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(h,d,v,p,m){var y=m?"Span":"ValueSpan";kf(0,h,v,"all",c["min"+y],c["max"+y]);for(var S=0;S<2;S++)d[S]=ir(h[S],v,p,!0),m&&(d[S]=i.parse(d[S]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=bwe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Mh(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),h=we(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var v,p,m,y=0;y<c.length;y++){var S=f.get(h[y],d),b=!isNaN(S),w=S<o[0],C=S>o[1];if(b&&!w&&!C)return!0;b&&(m=!0),w&&(v=!0),C&&(p=!0)}return m&&v&&p})}else Mh(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(p){return s(p)?p:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});Mh(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Mh(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ir(n[0]+o,n,[0,100],!0):a!=null&&(o=ir(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=rH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function bwe(e,t,r){var n=[1/0,-1/0];Mh(r,function(o){eve(n,o.getData(),t)});var i=e.getAxisModel(),a=G8(i.axis.scale,i,n).calculate();return[a.min,a.max]}var wwe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(iu(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Swe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=He();return E(r,function(i){E(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function xwe(e){e.registerAction("dataZoom",function(t,r){var n=mwe(r,t);E(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var fB=!1;function bL(e){fB||(fB=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,wwe),xwe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Cwe(e){e.registerComponentModel(ywe),e.registerComponentView(_we),bL(e)}var Na=function(){function e(){}return e}(),C7={};function Ih(e,t){C7[e]=t}function T7(e){return C7[e]}var Twe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;E(this.option.feature,function(n,i){var a=T7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ft(n,a.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}(Dt);function Awe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=yn(n,a,i);sf(t.get("orient"),e,t.get("itemGap"),o.width,o.height),ob(e,n,a,i)}function A7(e,t){var r=Od(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ot({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Dwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];E(u,function(v,p){f.push(p)}),new el(this._featureNames||[],f).add(h).update(h).remove(st(h,null)).execute(),this._featureNames=f;function h(v,p){var m=f[v],y=f[p],S=u[m],b=new nr(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(Mwe(m))w={onclick:b.option.onclick,featureName:m};else{var C=T7(m);if(!C)return;w=new C}c[m]=w}else if(w=c[y],!w)return;w.uid=kd("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var x=w instanceof Na;if(!m&&y){x&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(n,i);return}d(b,w,m),b.setIconStatus=function(A,D){var M=this.option,I=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[A]=D,I[A]&&(D==="emphasis"?Js:Qs)(I[A])},w instanceof Na&&w.render&&w.render(b,n,i,a)}function d(v,p,m){var y=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=p instanceof Na&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},C,x;Ne(b)?(C={},C[m]=b):C=b,Ne(w)?(x={},x[m]=w):x=w;var A=v.iconPaths={};E(C,function(D,M){var I=sm(D,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=S.getItemStyle();var R=new zt({style:{text:x[M],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:QM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});I.setTextContent(R),Ed({el:I,componentModel:r,itemName:M,formatterParamsExtra:{title:x[M]}}),I.__title=x[M],I.on("mouseover",function(){var N=S.getItemStyle(),O=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:S.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),I.setTextConfig({position:S.get("textPosition")||O}),R.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&i.leaveEmphasis(this),R.hide()}),(v.get(["iconStatus",M])==="emphasis"?Js:Qs)(I),o.add(I),I.on("click",Fe(p.onclick,p,n,i,M)),A[M]=I})}Awe(o,r,i),o.add(A7(o.getBoundingRect(),r)),l||o.eachChild(function(v){var p=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!Xe(b)&&p){var w=b.style||(b.style={}),C=em(p,zt.makeFont(w)),x=v.x+o.x,A=v.y+o.y+s,D=!1;A+C.height>i.getHeight()&&(y.position="top",D=!0);var M=D?-5-C.height:s+10;x+C.width/2>i.getWidth()?(y.position=["100%",M],w.align="right"):x-C.width/2<0&&(y.position=[0,M],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){E(this._features,function(o){o instanceof Na&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){E(this._features,function(i){i instanceof Na&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){E(this._features,function(i){i instanceof Na&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Br);function Mwe(e){return e.indexOf("my")===0}var Iwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=At.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),d=h[0].indexOf("base64")>-1,v=o?decodeURIComponent(h[1]):h[1];d&&(v=window.atob(v));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,p)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(b)}}else{var x=i.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',D=window.open();D.document.write(A),D.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Na),hB="__ec_magicType_stack__",Lwe=[["line","bar"],["stack"]],Pwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return E(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(dB[i]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,v=dB[i](h,d,f,a);v&&(qe(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var y=m.dim,S=y+"Axis",b=f.getReferringComponents(S,cn).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var C=0;C<=w;C++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};E(Lwe,function(f){St(f,i)>=0&&E(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=ft({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Na),dB={line:function(e,t,r,n){if(e==="bar")return ft({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return ft({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===hB;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ft({id:t,stack:i?"":hB},n.get(["option","stack"])||{},!0)}};fs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var xb=new Array(60).join("-"),pd=" ";function Ewe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function Rwe(e){var t=[];return E(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(we(r.series,function(d){return d.name})),l=[i.model.getCategories()];E(r.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(pd)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(pd))}t.push(u.join(`
|
||
`))}),t.join(`
|
||
|
||
`+xb+`
|
||
|
||
`)}function kwe(e){return we(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+pd:"")+i.join(pd))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+xb+`
|
||
|
||
`)}function Owe(e){var t=Ewe(e);return{value:sr([Rwe(t.seriesGroupByCategoryAxis),kwe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+xb+`
|
||
|
||
`),meta:t.meta}}function j1(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nwe(e){var t=e.slice(0,e.indexOf(`
|
||
`));if(t.indexOf(pd)>=0)return!0}var n2=new RegExp("["+pd+"]+","g");function Fwe(e){for(var t=e.split(/\n+/g),r=j1(t.shift()).split(n2),n=[],i=we(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=j1(t[a]).split(n2);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function Bwe(e){for(var t=e.split(/\n+/g),r=j1(t.shift()),n=[],i=0;i<t.length;i++){var a=j1(t[i]);if(a){var o=a.split(n2),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function Vwe(e,t){var r=e.split(new RegExp(`
|
||
*`+xb+`
|
||
*`,"g")),n={series:[]};return E(r,function(i,a){if(Nwe(i)){var o=Fwe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Bwe(i);n.series.push(o)}}),n}var zwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),h=a.get("contentToOption"),d=Owe(r);if(Xe(f)){var v=f(n.getOption());Ne(v)?u.innerHTML=v:ad(v)&&u.appendChild(v)}else{c.readOnly=a.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=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),c.value=d.value,u.appendChild(c)}var m=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");S+=";background-color:"+a.get("buttonColor"),S+=";color:"+a.get("buttonTextColor");var C=this;function x(){i.removeChild(o),C._dom=null}OA(b,"click",x),OA(w,"click",function(){if(h==null&&f!=null||h!=null&&f==null){x();return}var A;try{Xe(h)?A=h(u,n.getOption()):A=Vwe(c.value,m)}catch(D){throw x(),new Error("Data view format error "+D)}A&&n.dispatchAction({type:"changeDataView",newOption:A}),x()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=S,!a.get("readOnly")&&y.appendChild(w),y.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Na);function Gwe(e,t){return we(e,function(r,n){var i=t&&t[n];if(Ke(i)&&!Se(i)){var a=Ke(r)&&!Se(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=qe(r,i),o&&delete r.name,r}else return r})}fs({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];E(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(de({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:Gwe(n.data,a)})}}),t.mergeOption(qe({series:r},e.newOption))});var D7=E,M7=Nt();function $we(e,t){var r=wL(e);D7(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function Hwe(e){var t=wL(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return D7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function Uwe(e){M7(e).snapshots=null}function Wwe(e){return wL(e).length}function wL(e){var t=M7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ywe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Uwe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Na);fs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Xwe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],xL=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=vB(r,t);E(Zwe,function(o,s){(!n||!n.include||St(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=mT[n.brushType](0,a,i);n.__rangeOffset={offset:yB[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){E(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&E(a.coordSyses,function(o){var s=mT[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){E(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=mT[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?yB[n.brushType](a.values,o.offset,qwe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return we(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:N6(i),isTargetByCursor:B6(i,t,n.coordSysModel),getLinearBrushOtherExtent:F6(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&St(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=vB(r,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<pB.length;l++)if(pB[l](i,o))return o}return!0},e}();function i2(e){return e[0]>e[1]&&e.reverse(),e}function vB(e,t){return Np(e,t,{includeMainTypes:Xwe})}var Zwe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=He(),o={},s={};!r&&!n&&!i||(E(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),E(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),E(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];E(u.getCartesians(),function(f,h){(St(r,f.getAxis("x").model)>=0||St(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:gB.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){E(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:gB.geo})})}},pB=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],gB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(of(e)),t}},mT={lineX:st(mB,0),lineY:st(mB,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[i2([i[0],a[0]]),i2([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=we(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function mB(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=i2(we([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var yB={lineX:st(_B,0),lineY:st(_B,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return we(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function _B(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function qwe(e,t){var r=SB(e),n=SB(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function SB(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var a2=E,jwe=ile("toolbox-dataZoom_"),Kwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new JI(i.getZr()),this._brushController.on("brush",Fe(this._onBrush,this)).mount()),exe(r,n,this,a,i),Qwe(r,n)},t.prototype.onclick=function(r,n,i){Jwe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new xL(CL(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),$we(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),d=h.model,v=l(u,d,a),p=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=kf(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,c.componentIndex);v&&(h=d)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];a2(r,function(i,a){n.push(Je(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Na),Jwe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Hwe(this.ecModel))}};function CL(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 Qwe(e,t){e.setIconStatus("back",Wwe(t)>1?"emphasis":"normal")}function exe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new xL(CL(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Ice("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=CL(n),o=Np(e,a);a2(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),a2(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:jwe+u+f};h[c]=f,i.push(h)}return i});function txe(e){e.registerComponentModel(Twe),e.registerComponentView(Dwe),Ih("saveAsImage",Iwe),Ih("magicType",Pwe),Ih("dataView",zwe),Ih("dataZoom",Kwe),Ih("restore",Ywe),bt(Cwe)}var rxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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}(Dt);function I7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function L7(e){if(At.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var P7=L7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nxe=L7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function E7(e,t){if(!e)return t;t=fU(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function ixe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var axe=E7(nxe,"transition"),TL=E7(P7,"transform"),oxe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(At.transform3dSupported?"will-change:transform;":"");function sxe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function lxe(e,t,r){if(!Ne(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=bf(t);var a=sxe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=TL+":",u;St(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function uxe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=At.transformSupported?","+TL+n:",left"+n+",top"+n),axe+":"+i}function bB(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!At.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=At.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+TL+":"+o+";":[["top",0],["left",0],[P7,o]]}function cxe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),E(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fxe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=WU(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(uxe(i,r)),a&&n.push("background-color:"+a),E(["width","color","radius"],function(d){var v="border-"+d,p=fU(v),m=e.get(p);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(cxe(c)),f!=null&&n.push("padding:"+Od(f).join("px ")+"px"),n.join(";")+";"}function wB(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Noe(e,o,r,n,i)}else{e[0]=n,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 hxe=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,At.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Ne(a)?document.querySelector(a):ad(a)?a:Xe(a)&&a(t.getDom()));wB(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Ia(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=ixe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=oxe+fxe(t,!this._firstShow,this._longHide)+bB(a[0],a[1],!0)+("border-color:"+bf(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ne(a)&&n.get("trigger")==="item"&&!I7(n)&&(s=lxe(n,i,a)),Ne(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Se(t)||(t=[t]);for(var l=0;l<t.length;l++)ad(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(wB(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=bB(n[0],n[1]);E(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",At.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Fe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),dxe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),CB(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Ke(t)&&tr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new zt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:WU(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),E(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=xB(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;CB(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Nl(a.borderWidth||0),s=xB(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Fe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Nl(e){return Math.max(0,e)}function xB(e){var t=Nl(e.shadowBlur||0),r=Nl(e.shadowOffsetX||0),n=Nl(e.shadowOffsetY||0);return{left:Nl(t-r),right:Nl(t+r),top:Nl(t-n),bottom:Nl(t+n)}}function CB(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var vxe=new Ot({shape:{x:-1,y:-1,width:2,height:2}}),pxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(At.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=fle(i.get("renderMode"));this._tooltipContent=a==="richText"?new dxe(n):new hxe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(At.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Vd(this,"_updatePosition",50,"fixRate"):xg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");g7("itemTooltip",this._api,Fe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||At.node||!i.getDom())){var o=TB(a,i);this._ticket="";var s=a.dataByCoordSys,l=_xe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=vxe;c.x=a.x,c.y=a.y,c.update(),rt(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=m7(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(TB(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Fv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=rt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Uc(i,function(c){if(rt(c).dataIndex!=null)return l=c,!0;if(rt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Fe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fv([n.tooltipOption],a),l=this._renderMode,u=[],c=Mn("section",{blocks:[],noHeader:!0}),f=[],h=new rC;E(r,function(S){E(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),C=b.value;if(!(!w||C==null)){var x=d7(C,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),A=Mn("section",{header:x,noHeader:!uo(x),sortBlocks:!0,blocks:[]});c.blocks.push(A),E(b.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,P=M.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=b.axisDim,P.axisIndex=b.axisIndex,P.axisType=b.axisType,P.axisId=b.axisId,P.axisValue=AI(w.axis,{value:C}),P.axisValueLabel=x,P.marker=h.makeTooltipMarker("item",bf(P.color),l);var R=fN(M.formatTooltip(I,!0,null)),N=R.frag;if(N){var O=Fv([M],a).get("valueFormatter");A.blocks.push(O?de({valueFormatter:O},N):N)}R.text&&f.push(R.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),p=mN(c,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?`
|
||
|
||
`:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=rt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,p=Fv([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new rC;y.marker=S.makeTooltipMarker("item",bf(y.color),d);var b=fN(u.formatTooltip(c,!1,f)),w=p.get("order"),C=p.get("valueFormatter"),x=b.frag,A=x?mN(C?de({valueFormatter:C},x):x,S,d,w,a.get("useUTC"),p.get("textStyle")):b.text,D="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,y,D,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=rt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ne(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Je(l),l.content=Bi(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=Fv(f,this._tooltipModel,d?{position:d}:null),p=v.get("content"),m=Math.random()+"",y=new rC;this._showOrMove(v,function(){var S=Je(v.get("formatterParams")||{});this._showTooltipContent(v,p,S,m,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(Ne(h)){var m=r.ecModel.get("useUTC"),y=Se(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,S&&(d=tb(y.axisValue,d,m)),d=hU(d,i,!0)}else if(Xe(h)){var b=Fe(function(w,C){w===this._ticket&&(f.setContent(C,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,b)}else d=h;f.setContent(d,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Se(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Se(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Xe(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Se(n))i=Ee(n[0],u),a=Ee(n[1],c);else if(Ke(n)){var p=n;p.width=f[0],p.height=f[1];var m=yn(p,{width:u,height:c});i=m.x,a=m.y,h=null,d=null}else if(Ne(n)&&l){var y=yxe(n,v,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=gxe(i,a,o,u,c,h?null:20,d?null:20);i=y[0],a=y[1]}if(h&&(i-=AB(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=AB(d)?f[1]/2:d==="bottom"?f[1]:0),I7(r)){var y=mxe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&E(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&E(u,function(h,d){var v=f[d]||{},p=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===m.length,o&&E(p,function(y,S){var b=m[S];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),a&&E(h.seriesDataIndices,function(y){var S=y.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){At.node||!n.getDom()||(xg(this,"_updatePosition"),this._tooltipContent.dispose(),e2("itemTooltip",n))},t.type="tooltip",t}(Br);function Fv(e,t,r){var n=t.ecModel,i;r?(i=new nr(r,n,n),i=new nr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof nr&&(o=o.get("tooltip",!0)),Ne(o)&&(o={formatter:o}),o&&(i=new nr(o,i,n)))}return i}function TB(e,t){return e.dispatchAction||Fe(t.dispatchAction,t)}function gxe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function mxe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yxe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function AB(e){return e==="center"||e==="middle"}function _xe(e,t,r){var n=zM(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=tm(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=rt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function Sxe(e){bt(Sm),e.registerComponentModel(rxe),e.registerComponentView(pxe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rn)}var bxe=["rect","polygon","keep","clear"];function wxe(e,t){var r=cr(e?e.brush:[]);if(r.length){var n=[];E(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Se(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),xxe(s),t&&!s.length&&s.push.apply(s,bxe)}}function xxe(e){var t={};E(e,function(r){t[r]=1}),e.length=0,E(t,function(r,n){e.push(n)})}var DB=E;function MB(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function o2(e,t,r){var n={};return DB(t,function(a){var o=n[a]=i();DB(e[a],function(s,l){if(Tn.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Tn(u),l==="opacity"&&(u=Je(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Tn(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function R7(e,t,r){var n;E(r,function(i){t.hasOwnProperty(i)&&MB(t[i])&&(n=!0)}),n&&E(r,function(i){t.hasOwnProperty(i)&&MB(t[i])?e[i]=Je(t[i]):delete e[i]})}function Cxe(e,t,r,n,i,a){var o={};E(e,function(f){var h=Tn.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return pI(r,s,f)}function u(f,h){t8(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(i,f),p=t[v],m=o[v],y=0,S=m.length;y<S;y++){var b=m[y];p[b]&&p[b].applyVisual(f,l,u)}}}function Txe(e,t,r,n){var i={};return E(e,function(a){var o=Tn.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(C){return pI(s,f,C)}function c(C,x){t8(s,f,C,x)}for(var f,h=s.getStore();(f=o.next())!=null;){var d=s.getRawDataItem(f);if(!(d&&d.visualMap===!1))for(var v=n!=null?h.get(l,f):f,p=r(v),m=t[p],y=i[p],S=0,b=y.length;S<b;S++){var w=y[S];m[w]&&m[w].applyVisual(v,u,c)}}}}}function Axe(e){var t=e.brushType,r={point:function(n){return IB[t].point(n,r,e)},rect:function(n){return IB[t].rect(n,r,e)}};return r}var IB={lineX:LB(0),lineY:LB(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Lc(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Lc(n,i,a)||Lc(n,i+o,a)||Lc(n,i,a+s)||Lc(n,i+o,a+s)||ht.create(e).contain(l[0],l[1])||op(i,a,i+o,a,n)||op(i,a,i,a+s,n)||op(i+o,a,i+o,a+s,n)||op(i,a+s,i+o,a+s,n))return!0}}};function LB(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Bv(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Bv(s[0],o)||Bv(s[1],o)||Bv(o[0],s)||Bv(o[1],s)}}}}function Bv(e,t){return t[0]<=e&&e<=t[1]}var PB=["inBrush","outOfBrush"],yT="__ecBrushSelect",s2="__ecInBrushSelectEvent";function k7(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new xL(t.option,e);r.setInputRanges(t.areas,e)})}function Dxe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),k7(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Je(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],h=[],d=[],v=!1;s||(i=u.throttleType,a=u.throttleDelay);var p=we(o.areas,function(C){var x=Pxe[C.brushType],A=qe({boundingRect:x?x(C):void 0},C);return A.selectors=Axe(A),A}),m=o2(o.option,PB,function(C){C.mappingMethod="fixed"});Se(c)&&E(c,function(C){f[C]=1});function y(C){return c==="all"||!!f[C]}function S(C){return!!C.length}e.eachSeries(function(C,x){var A=d[x]=[];C.subType==="parallel"?b(C,x):w(C,x,A)});function b(C,x){var A=C.coordinateSystem;v=v||A.hasAxisBrushed(),y(x)&&A.eachActiveState(C.getData(),function(D,M){D==="active"&&(h[M]=1)})}function w(C,x,A){if(!(!C.brushSelector||Lxe(o,x))&&(E(p,function(M){o.brushTargetManager.controlSeries(M,C,e)&&A.push(M),v=v||S(A)}),y(x)&&S(A))){var D=C.getData();D.each(function(M){EB(C,A,D,M)&&(h[M]=1)})}}e.eachSeries(function(C,x){var A={seriesId:C.id,seriesIndex:x,seriesName:C.name,dataIndex:[]};l.selected.push(A);var D=d[x],M=C.getData(),I=y(x)?function(P){return h[P]?(A.dataIndex.push(M.getRawIndex(P)),"inBrush"):"outOfBrush"}:function(P){return EB(C,D,M,P)?(A.dataIndex.push(M.getRawIndex(P)),"inBrush"):"outOfBrush"};(y(x)?v:S(D))&&Cxe(PB,m,M,I)})}),Mxe(t,i,a,n,r)}function Mxe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[s2]){a[yT]||(a[yT]=Ixe);var o=Vd(a,yT,r,t);o(e,n)}}}function Ixe(e,t){if(!e.isDisposed()){var r=e.getZr();r[s2]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[s2]=!1}}function EB(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function Lxe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Se(r)?St(r,t)<0:t!==r)}var Pxe={rect:function(e){return RB(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];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&&RB(t)}};function RB(e){return new ht(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Exe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new JI(n.getZr())).on("brush",Fe(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){k7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Je(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Je(i),$from:n})},t.type="brush",t}(Br),Rxe="#ddd",kxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&R7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Rxe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=we(r,function(n){return kB(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=kB(this.option,r),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}(Dt);function kB(e,t){return ft({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new nr(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Oxe=["rect","polygon","lineX","lineY","keep","clear"],Nxe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,E(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return E(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Oxe.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:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Na);function Fxe(e){e.registerComponentView(Exe),e.registerComponentModel(kxe),e.registerPreprocessor(wxe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Dxe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rn),Ih("brush",Nxe)}var Bxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}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}(Dt),Vxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ot(r.get("textBaseline"),r.get("textVerticalAlign")),c=new zt({style:Ar(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new zt({style:Ar(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,d.silent=!p&&!m,v&&c.on("click",function(){A1(v,"_"+r.get("target"))}),p&&d.on("click",function(){A1(p,"_"+r.get("subtarget"))}),rt(c).eventData=rt(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var b=yn(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),d.setStyle(w),y=a.getBoundingRect();var C=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var A=new Ot({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(Br);function zxe(e){e.registerComponentModel(Bxe),e.registerComponentView(Vxe)}var OB=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],E(n,function(u,c){var f=mn(Id(u),""),h;Ke(u)?(h=Je(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Si([{name:"value",type:s}],this);l.initData(o,a)},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}(Dt),O7=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Lu(OB.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}(OB);dn(O7,lb.prototype);var Gxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Br),$xe=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ao),_T=Math.PI,NB=Nt(),Hxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Mn("nameValue",{noName:!0,value:c})},E(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=Wxe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Ne(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:_T/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,p=d?h.get("itemGap"):0,m=v+p,y=r.get(["label","rotate"])||0;y=y*_T/180;var S,b,w,C=h.get("position",!0),x=d&&h.get("showPlayBtn",!0),A=d&&h.get("showPrevBtn",!0),D=d&&h.get("showNextBtn",!0),M=0,I=f;C==="left"||C==="bottom"?(x&&(S=[0,0],M+=m),A&&(b=[M,0],M+=m),D&&(w=[I-v,0],I-=m)):(x&&(S=[I-v,0],I-=m),A&&(b=[0,0],M+=m),D&&(w=[I-v,0],I-=m));var P=[M,I];return r.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:b,nextBtnPosition:w,axisExtent:P,controlSize:v,controlGap:p}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=ca(),l=o.x,u=o.y+o.height;as(s,s,[-l,-u]),Mf(s,s,-_T/2),as(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=c[0][0];var p=r.labelPosOpt;if(p==null||Ne(p)){var m=p==="+"?0:1;b(d,f,c,1,m),b(v,h,c,1,1-m)}else{var m=p>=0?0:1;b(d,f,c,1,m),v[1]=d[1]+p}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,C,x,A,D){w[A]+=x[A][D]-C[A][D]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Uxe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $xe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new et;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new xn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:de({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new xn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:qe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],E(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Fe(o._changeTimeline,o,u.value)},m=FB(f,h,n,p);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),af(m);var y=rt(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],E(u,function(c){var f=c.tickValue,h=l.getItemModel(f),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new zt({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:Fe(o._changeTimeline,o,f),silent:!1,style:Ar(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=Ar(v),y.ensureState("progress").style=Ar(p),n.add(y),af(y),NB(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",Fe(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Fe(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Fe(this._handlePlayClick,this,!c),!0);function h(d,v,p,m){if(d){var y=bo(ot(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-y/2,y,y],b=Yxe(a,v+"Icon",S,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:p});b.ensureState("emphasis").style=u,n.add(b),af(b)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Fe(u._handlePointerDrag,u),f.ondragend=Fe(u._handlePointerDragend,u),BB(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){BB(f,u._progressLine,s,i,a)}};this._currentPointer=FB(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=za(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return mo(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",NB(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(Gxe);function Uxe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vb({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new CI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new tl}}function Wxe(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Yxe(e,t,r,n){var i=n.style,a=sm(e.get(["controlStyle",t]),n||{},new ht(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function FB(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=hn(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=ft({rectHover:!0,z2:100},n,!0);var u=zd(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Lf(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function BB(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function Xxe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),qe({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function Zxe(e){var t=e&&e.timeline;Se(t)||(t=t?[t]:[]),E(t,function(r){r&&qxe(r)})}function qxe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),VB(e),Rc(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Rc(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Rc(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}E(e.data||[],function(i){Ke(i)&&!Se(i)&&(!Rc(i,"value")&&Rc(i,"name")&&(i.value=i.name),VB(i))})}function VB(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};E(n,function(o,s){!a[s]&&!Rc(i,s)&&(i[s]=o)}),r.label&&!Rc(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Rc(e,t){return e.hasOwnProperty(t)}function jxe(e){e.registerComponentModel(O7),e.registerComponentView(Hxe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),Xxe(e),e.registerPreprocessor(Zxe)}function AL(e,t){if(!e)return!1;for(var r=Se(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function I0(e){mf(e,"label",["show"])}var L0=Nt(),nl=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(At.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=L0(s)[o];if(!l||!l.data){L0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&I0(l),E(l.data,function(c){c instanceof Array?(I0(c[0]),I0(c[1])):I0(c)}),u=this.createMarkerModelFromSeries(l,this,n),de(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),L0(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Mn("section",{header:this.name,blocks:[Mn("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=lb.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return L0(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Dt);dn(nl,lb.prototype);var Kxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},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}(nl);function l2(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Jxe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function P0(e,t,r,n,i,a){var o=[],s=bu(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=DL(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),h=Zo(t.get(n,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var ST={min:st(P0,"min"),max:st(P0,"max"),average:st(P0,"average"),median:st(P0,"median")};function Fg(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Jxe(t)&&!Se(t.coord)&&Se(i)){var a=N7(t,r,n,e);if(t=Je(t),t.type&&ST[t.type]&&a.baseAxis&&a.valueAxis){var o=St(i,a.baseAxis.dim),s=St(i,a.valueAxis.dim),l=ST[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Se(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ST[u[c]]&&(u[c]=DL(r,r.mapDimension(i[c]),u[c]));return t}}function N7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(Qxe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Qxe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Bg(e,t){return e&&e.containData&&t.coord&&!l2(t)?e.containData(t.coord):!0}function eCe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!l2(t)&&!l2(r)?e.containZone(t.coord,r.coord):!0}function F7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return cu(o,t[a])}:function(r,n,i,a){return cu(r.value,t[a])}}function DL(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var bT=Nt(),ML=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=He()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){bT(s).keep=!1}),n.eachSeries(function(s){var l=nl.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!bT(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){bT(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;E(r,function(a){var o=nl.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?IH(l):XM(l))})}})},t.type="marker",t}(Br);function zB(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ee(a.get("x"),r.getWidth()),l=Ee(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var tCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markPoint");o&&(zB(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new dm),f=rCe(o,r,n);n.setData(f),zB(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),p=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),S=d.getShallow("symbolKeepAspect");if(Xe(v)||Xe(p)||Xe(m)||Xe(y)){var b=n.getRawValue(h),w=n.getDataParams(h);Xe(v)&&(v=v(b,w)),Xe(p)&&(p=p(b,w)),Xe(m)&&(m=m(b,w)),Xe(y)&&(y=y(b,w))}var C=d.getModel("itemStyle").getItemStyle(),x=um(l,"color");C.fill||(C.fill=x),f.setItemVisual(h,{symbol:v,symbolSize:p,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){rt(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(ML);function rCe(e,t,r){var n;e?n=we(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return de(de({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Si(n,r),a=we(r.get("data"),st(Fg,t));e&&(a=sr(a,st(Bg,e)));var o=F7(!!e,n);return i.initData(a,null,o),i}function nCe(e){e.registerComponentModel(Kxe),e.registerComponentView(tCe),e.registerPreprocessor(function(t){AL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var iCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(nl),E0=Nt(),aCe=function(e,t,r,n){var i=e.getData(),a;if(Se(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=On(n.yAxis,n.xAxis);else{var u=N7(n,i,t,e);s=u.valueAxis;var c=L8(i,u.valueDataDim);l=DL(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=Je(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var p=r.get("precision");p>=0&&$t(l)&&(l=+l.toFixed(Math.min(p,20))),d.coord[f]=v.coord[f]=l,a=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Fg(e,a[0]),Fg(e,a[1]),de({},a[2])];return m[2].type=m[2].type||null,ft(m[2],m[0]),ft(m[2],m[1]),m};function K1(e){return!isNaN(e)&&!isFinite(e)}function GB(e,t,r,n){var i=1-e,a=n.dimensions[e];return K1(t[i])&&K1(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function oCe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(GB(1,r,n,e)||GB(0,r,n,e)))return!0}return Bg(e,t[0])&&Bg(e,t[1])}function wT(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ee(o.get("x"),i.getWidth()),u=Ee(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),h=e.get(c[1],t);s=a.dataToPoint([f,h])}if(Ef(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;K1(e.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):K1(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var sCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=E0(o).from,u=E0(o).to;l.each(function(c){wT(l,c,!0,a,i),wT(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new KI);this.group.add(c.group);var f=lCe(o,r,n),h=f.from,d=f.to,v=f.line;E0(n).from=h,E0(n).to=d,n.setData(v);var p=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),S=n.get("symbolOffset");Se(p)||(p=[p,p]),Se(m)||(m=[m,m]),Se(y)||(y=[y,y]),Se(S)||(S=[S,S]),f.from.each(function(w){b(h,w,!0),b(d,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[h.getItemLayout(w),d.getItemLayout(w)]),C.stroke==null&&(C.stroke=h.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(w,"symbolOffset"),toSymbolRotate:d.getItemVisual(w,"symbolRotate"),toSymbolSize:d.getItemVisual(w,"symbolSize"),toSymbol:d.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){rt(w).dataModel=n,w.traverse(function(C){rt(C).dataModel=n})});function b(w,C,x){var A=w.getItemModel(C);wT(w,C,x,r,a);var D=A.getModel("itemStyle").getItemStyle();D.fill==null&&(D.fill=um(l,"color")),w.setItemVisual(C,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:ot(A.get("symbolOffset",!0),S[x?0:1]),symbolRotate:ot(A.get("symbolRotate",!0),y[x?0:1]),symbolSize:ot(A.get("symbolSize"),m[x?0:1]),symbol:ot(A.get("symbol",!0),p[x?0:1]),style:D})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(ML);function lCe(e,t,r){var n;e?n=we(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return de(de({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Si(n,r),a=new Si(n,r),o=new Si([],r),s=we(r.get("data"),st(aCe,t,e,r));e&&(s=sr(s,st(oCe,e)));var l=F7(!!e,n);return i.initData(we(s,function(u){return u[0]}),null,l),a.initData(we(s,function(u){return u[1]}),null,l),o.initData(we(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function uCe(e){e.registerComponentModel(iCe),e.registerComponentView(sCe),e.registerPreprocessor(function(t){AL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var cCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(nl),R0=Nt(),fCe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Fg(e,i),s=Fg(e,a),l=o.coord,u=s.coord;l[0]=On(l[0],-1/0),l[1]=On(l[1],-1/0),u[0]=On(u[0],1/0),u[1]=On(u[1],1/0);var c=IM([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function J1(e){return!isNaN(e)&&!isFinite(e)}function $B(e,t,r,n){var i=1-e;return J1(t[i])&&J1(r[i])}function hCe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Ef(e,"cartesian2d")?r&&n&&($B(1,r,n)||$B(0,r,n))?!0:eCe(e,i,a):Bg(e,i)||Bg(e,a)}function HB(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ee(o.get(r[0]),i.getWidth()),u=Ee(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),h=a.clampData(c),d=a.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var p=e.get(r[0],t),m=e.get(r[1],t),y=[p,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Ef(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),p=e.get(r[0],t),m=e.get(r[1],t);J1(p)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):J1(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var UB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=we(UB,function(f){return HB(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new et});this.group.add(c.group),this.markKeep(c);var f=vCe(o,r,n);n.setData(f),f.each(function(h){var d=we(UB,function(D){return HB(f,h,D,r,a)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,m=v.getExtent(),y=p.getExtent(),S=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],b=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];za(S),za(b);var w=!(m[0]>S[1]||m[1]<S[0]||y[0]>b[1]||y[1]<b[0]),C=!w;f.setItemLayout(h,{points:d,allClipped:C});var x=f.getItemModel(h).getModel("itemStyle").getItemStyle(),A=um(l,"color");x.fill||(x.fill=A,Ne(x.fill)&&(x.fill=v1(x.fill,.4))),x.stroke||(x.stroke=A),f.setItemVisual(h,"style",x)}),f.diff(R0(c).data).add(function(h){var d=f.getItemLayout(h);if(!d.allClipped){var v=new Ti({shape:{points:d.points}});f.setItemGraphicEl(h,v),c.group.add(v)}}).update(function(h,d){var v=R0(c).data.getItemGraphicEl(d),p=f.getItemLayout(h);p.allClipped?v&&c.group.remove(v):(v?Yt(v,{shape:{points:p.points}},n,h):v=new Ti({shape:{points:p.points}}),f.setItemGraphicEl(h,v),c.group.add(v))}).remove(function(h){var d=R0(c).data.getItemGraphicEl(h);c.group.remove(d)}).execute(),f.eachItemGraphicEl(function(h,d){var v=f.getItemModel(d),p=f.getItemVisual(d,"style");h.useStyle(f.getItemVisual(d,"style")),Yn(h,Dn(v),{labelFetcher:n,labelDataIndex:d,defaultText:f.getName(d)||"",inheritColor:Ne(p.fill)?v1(p.fill,1):"#000"}),Wn(h,v),Yr(h,null,null,v.get(["emphasis","disabled"])),rt(h).dataModel=n}),R0(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(ML);function vCe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=we(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return de(de({},f),{name:u,ordinalMeta:null})});i=we(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new Si(i,r)}else i=[{name:"value",type:"float"}],n=new Si(i,r);var s=we(r.get("data"),st(fCe,t,e,r));e&&(s=sr(s,st(hCe,e)));var l=e?function(u,c,f,h){var d=u.coord[Math.floor(h/2)][h%2];return cu(d,i[h])}:function(u,c,f,h){return cu(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function pCe(e){e.registerComponentModel(cCe),e.registerComponentView(dCe),e.registerPreprocessor(function(t){AL(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var gCe=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"])}},u2=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Se(n)&&E(n,function(a,o){Ne(a)&&(a={type:a}),n[o]=ft(a,gCe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&VM(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=He(),s=we(a,function(l){return(Ne(l)||$t(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new nr(l,this,this.ecModel))},this);this._data=sr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;E(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;E(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;E(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&St(this._availableNames,r)>=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}(Dt),yh=st,c2=E,k0=et,B7=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new k0),this.group.add(this._selectorGroup=new k0),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=yn(c,f,h),v=this.layoutInner(r,o,d,a,l,u),p=yn(qe({width:v.width,height:v.height},c),f,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=A7(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=He(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),c2(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
||
`)){var m=new k0;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(p)[0];if(!c.get(p))if(y){var S=y.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),C=S.getVisual("style"),x=this._createItem(y,p,v,d,n,r,b,C,w,f,a);x.on("click",yh(WB,p,null,a,h)).on("mouseover",yh(f2,y.name,null,a,h)).on("mouseout",yh(h2,y.name,null,a,h)),i.ssr&&x.eachChild(function(A){var D=rt(A);D.seriesIndex=y.seriesIndex,D.dataIndex=v,D.ssrType="legend"}),c.set(p,!0)}else i.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(p))return;var M=D.indexOfName(p),I=D.getItemVisual(M,"style"),P=D.getItemVisual(M,"legendIcon"),R=fa(I.fill);R&&R[3]===0&&(R[3]=.2,I=de(de({},I),{fill:Ws(R,"rgba")}));var N=this._createItem(A,p,v,d,n,r,{},I,P,f,a);N.on("click",yh(WB,null,p,a,h)).on("mouseover",yh(f2,null,p,a,h)).on("mouseout",yh(h2,null,p,a,h)),i.ssr&&N.eachChild(function(O){var F=rt(O);F.seriesIndex=A.seriesIndex,F.dataIndex=v,F.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();c2(r,function(u){var c=u.type,f=new zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);Yn(f,{normal:h,emphasis:d},{defaultText:u.title}),af(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=mCe(c,a,l,u,d,m,h),C=new k0,x=a.getModel("textStyle");if(Xe(r.getLegendIcon)&&(!b||b==="inherit"))C.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var A=b==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;C.add(yCe({itemWidth:v,itemHeight:p,icon:c,iconRotate:A,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}var D=s==="left"?v+5:-5,M=s,I=o.get("formatter"),P=n;Ne(I)&&I?P=I.replace("{name}",n??""):Xe(I)&&(P=I(n));var R=m?x.getTextColor():a.get("inactiveColor");C.add(new zt({style:Ar(x,{text:P,x:D,y:p/2,fill:R,align:M,verticalAlign:"middle"},{inheritColor:R})}));var N=new Ot({shape:C.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&Ed({el:N,componentModel:o,itemName:n,itemTooltipOption:O.option}),C.add(N),C.eachChild(function(F){F.silent=!0}),N.silent=!f,this.getContentGroup().add(C),af(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();sf(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){sf("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",y=p===0?"height":"width",S=p===0?"y":"x";s==="end"?d[p]+=c[m]+v:f[p]+=h[m]+v,d[1-p]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+h[m],b[y]=Math.max(c[y],h[y]),b[S]=Math.min(0,h[S]+d[1-p]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Br);function mCe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),c2(m,function(S,b){m[b]==="inherit"&&(m[b]=y[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:ud(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function yCe(e){var t=e.icon||"roundRect",r=hn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function WB(e,t,r,n){h2(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),f2(e,t,r,n)}function V7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function f2(e,t,r,n){V7(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function h2(e,t,r,n){V7(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function _Ce(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Vv(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();E(s,function(l){var u=l.get("name");if(!(u===`
|
||
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function SCe(e){e.registerAction("legendToggleSelect","legendselectchanged",st(Vv,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",st(Vv,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",st(Vv,"inverseSelect")),e.registerAction("legendSelect","legendselected",st(Vv,"select")),e.registerAction("legendUnSelect","legendunselected",st(Vv,"unSelect"))}function z7(e){e.registerComponentModel(u2),e.registerComponentView(B7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_Ce),e.registerSubTypeDefaulter("legend",function(){return"plain"}),SCe(e)}var bCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Nd(r);e.prototype.init.call(this,r,n,i),YB(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),YB(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Lu(u2.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}(u2);function YB(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Su(t,r,{type:"box",ignoreSize:!!i})}var XB=et,xT=["width","height"],CT=["x","y"],wCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new XB),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new XB)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),h=Se(f)?f:[f,f];v("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new zt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,m){var y=p+"DataIndex",S=sm(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:Fe(u._pageGo,u,y,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});S.name=p,c.add(S)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=xT[u],f=CT[u],h=xT[1-u],d=CT[1-u];o&&sf("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],y=Je(i);o&&(y[c]=i[c]-p[c]-v);var S=this._layoutContentAndController(r,a,y,u,c,h,d,f);if(o){if(s==="end")m[u]+=S[c]+v;else{var b=p[c]+v;m[u]-=b,S[f]-=b}S[c]+=p[c]+v,m[1-u]+=S[d]+S[h]/2-p[h]/2,S[h]=Math.max(S[h],p[h]),S[d]=Math.min(S[d],p[d]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;sf(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),sf("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var y=[0,0],S=[-v.x,-v.y],b=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:y[a]+=v[o]+b}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var C={x:0,y:0};if(C[o]=p?i[o]:d[o],C[s]=Math.max(d[s],v[s]),C[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-b,0),x[s]=C[s],f.setClipPath(new Ot({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Yt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?r:null),this._updatePageInfoView(r,A),C},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;E(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Ne(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xT[o],l=CT[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var m=u+1,y=p,S=p,b=null;m<=h;++m)b=w(c[m]),(!b&&S.e>y.s+a||b&&!C(b,y.s))&&(S.i>y.i?y=S:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),S=b;for(var m=u-1,y=p,S=p,b=null;m>=-1;--m)b=w(c[m]),(!b||!C(S,b.s))&&y.i<S.i&&(S=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=b;return v;function w(x){if(x){var A=x.getBoundingRect(),D=A[l]+x[l];return{s:D,e:D+A[s],i:x.__legendDataIndex}}}function C(x,A){return x.e>=A&&x.s<=A+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(B7);function xCe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function CCe(e){bt(z7),e.registerComponentModel(bCe),e.registerComponentView(wCe),xCe(e)}function TCe(e){bt(z7),bt(CCe)}var ACe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Lu(Ng.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ng),IL=Nt();function DCe(e,t,r){IL(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function MCe(e,t){for(var r=IL(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||G7(r,o))}}}function G7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function ICe(e,t){var r={model:t,containsPoint:st(PCe,t),dispatchAction:st(LCe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new ym(e.getZr());return E(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function LCe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function PCe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function ECe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function RCe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=IL(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=He());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=x7(a);E(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,ICe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=He());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){G7(i,a);return}var c=ECe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Vd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var kCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),DCe(i,r,{pan:Fe(TT.pan,this),zoom:Fe(TT.zoom,this),scrollMove:Fe(TT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){MCe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(SL),TT={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=AT[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kf(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:ZB(function(e,t,r,n,i,a){var o=AT[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:ZB(function(e,t,r,n,i,a){var o=AT[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function ZB(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(kf(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var AT={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=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,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=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 $7(e){bL(e),e.registerComponentModel(ACe),e.registerComponentView(kCe),RCe(e)}var OCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Lu(Ng.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ng),zv=Ot,qB=7,NCe=1,DT=30,FCe=7,Gv="horizontal",jB="vertical",BCe=5,VCe=["line","bar","candlestick","scatter"],zCe={easing:"cubicOut",duration:100,delay:0},GCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Fe(this._onBrush,this),this._onBrushEnd=Fe(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Vd(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xg(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new et;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?FCe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Gv?{right:s.width-o.x-o.width,top:s.height-DT-qB-a,width:o.width,height:DT}:{right:qB,top:o.y,width:DT,height:o.height},u=Nd(r.option);E(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=yn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===jB&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Gv&&!o?{scaleY:l?1:-1,scaleX:1}:i===Gv&&o?{scaleY:l?1:-1,scaleX:-1}:i===jB&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new zv({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new zv({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Fe(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[0,n[1]],v=[0,n[0]],p=[[n[0],0],[0,0]],m=[],y=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(M,I){if(b>0&&I%b){S+=y;return}var P=M==null||isNaN(M)||M==="",R=P?0:ir(M,f,d,!0);P&&!w&&I?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&w&&(p.push([S,0]),m.push([S,0])),p.push([S,R]),m.push([S,R]),S+=y,w=P}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function x(M){var I=C.getModel(M?"selectedDataBackground":"dataBackground"),P=new et,R=new Ti({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new Mi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(N),P}for(var A=0;A<3;A++){var D=x(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();E(l,function(u){if(!i&&!(n!==!0&&St(VCe,u.get("type"))<0)){var c=a.getComponent(iu(o),s).axis,f=$Ce(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new zv({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new zv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:NCe,fill:"rgba(0,0,0,0)"}})),E([0,1],function(b){var w=l.get("handleIcon");!I1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=hn(w,-1,0,2,2,null,!0);C.attr({cursor:KB(this._orient),draggable:!0,drift:Fe(this._onDragMove,this,b),ondragend:Fe(this._onDragEnd,this),onmouseover:Fe(this._showDataInfo,this,!0),onmouseout:Fe(this._showDataInfo,this,!1),z2:5});var x=C.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ee(A,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),af(C);var D=l.get("handleColor");D!=null&&(C.style.fill=D),o.add(i[b]=C);var M=l.getModel("textStyle");r.add(a[b]=new zt({silent:!0,invisible:!0,style:Ar(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var d=h;if(f){var v=Ee(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ot({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=n.moveHandleIcon=hn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new Ot({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:KB(this._orient),drift:Fe(this._onDragMove,this,"all"),ondragstart:Fe(this._showDataInfo,this,!0),ondragend:Fe(this._onDragEnd,this),onmouseover:Fe(this._showDataInfo,this,!0),onmouseout:Fe(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ir(r[0],[0,100],n,!0),ir(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];kf(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ir(s.minSpan,l,o,!0):null,s.maxSpan!=null?ir(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=za([ir(a[0],o,l,!0),ir(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=za(i.slice()),o=this._size;E([0,1],function(d){var v=n.handles[d],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:i[d]+(d?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new Ot,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=za(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(v){var p=of(i.handles[v].parent,this.group),m=QS(v===0?"right":"left",p),y=this._handleWidth/2+BCe,S=mo([h[v]+(v===0?-y:y),this._size[1]/2],p);a[v].setStyle({x:S[0],y:S[1],verticalAlign:o===Gv?"middle":m,align:o===Gv?m:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Xe(a)?a(r,s):Ne(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,js(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=mo([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new ut(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=za([ir(i.x,o,s,!0),ir(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(js(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new zv({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?zCe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=x7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(SL);function $Ce(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function KB(e){return e==="vertical"?"ns-resize":"ew-resize"}function H7(e){e.registerComponentModel(OCe),e.registerComponentView(GCe),bL(e)}function HCe(e){bt($7),bt(H7)}var U7={get:function(e,t,r){var n=Je((UCe[e]||{})[t]);return r&&Se(n)?n[n.length-1]:n}},UCe={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]}},JB=Tn.mapVisual,WCe=Tn.eachVisual,YCe=Se,QB=E,XCe=za,ZCe=ir,Q1=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&R7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Fe(r,this),this.controllerVisuals=o2(this.option.controller,n,r),this.targetVisuals=o2(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=cr(r),n},t.prototype.eachTargetSeries=function(r,n){E(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Se(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Ne(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Xe(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=XCe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});ft(a,i),ft(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){YCe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],p=f[d];v&&!p&&(p=f[d]={},QB(v,function(m,y){if(Tn.isValidType(y)){var S=U7.get(y,"inactive",s);S!=null&&(p[y]=S,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),m=p||"roundRect";QB(this.stateList,function(y){var S=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=h&&Je(h)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&Je(d)||(s?S[0]:[S[0],S[0]])),b.symbol=JB(b.symbol,function(x){return x==="none"?m:x});var w=b.symbolSize;if(w!=null){var C=-1/0;WCe(w,function(x){x>C&&(C=x)}),b.symbolSize=JB(w,function(x){return ZCe(x,[0,C],[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(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){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}(Dt),eV=[20,140],qCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=eV[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=eV[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Se(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=za((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=tV(this,"outOfRange",this.getExtent()),i=tV(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Lu(Q1.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}(Q1);function tV(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var W7=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=Od(n.get("padding")||0),a=r.getBoundingRect();r.add(new Ot({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,v){s[d]=v}var f=o.controllerVisuals[a||o.getValueState(r)],h=Tn.prepareVisualTypes(f);return E(h,function(d){var v=f[d];i.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",v=f.__alphaForOpacity),Tn.dependsOn(d,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;ob(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(Br),rV=[["left","right","width"],["top","bottom","height"]];function Y7(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=rV[o],l=[0,null,10],u={},c=0;c<3;c++)u[rV[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=yn(u,a,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<a[f[1]]*.5?0:1]}function F_(e,t){return E(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Vo=ir,jCe=E,nV=Math.min,MT=Math.max,KCe=12,JCe=6,QCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=Fe(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Fe(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new zt({style:Ar(d,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=Y7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new et;u.add(c),c.add(i.outOfRange=iV()),c.add(i.inRange=iV(null,s?oV(this._orient):null,Fe(this._dragHandle,this,"all",!1),Fe(this._dragHandle,this,"all",!0))),c.setClipPath(new Ot({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=MT(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=Fe(this._dragHandle,this,i,!1),u=Fe(this._dragHandle,this,i,!0),c=bo(r.get("handleSize"),a[0]),f=hn(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=oV(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){js(y.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),$c(f,!0),n.add(f);var d=this.visualMapModel.textStyleModel,v=new zt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){js(y.event)},ondragend:u,style:Ar(d,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=p,m.handleLabels[i]=v},t.prototype._createIndicator=function(r,n,i,a,o){var s=bo(r.get("indicatorSize"),i[0]),l=hn(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Fn){var c=l.style;l.useStyle(de({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,h=new zt({silent:!0,invisible:!0,style:Ar(f,{x:0,y:0,text:""})});this.group.add(h);var d=[(o==="horizontal"?a/2:JCe)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=h,v.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():aV(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Vo(n[0],i,a,!0),Vo(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];kf(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Vo(a[0],o,s,!0),Vo(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new am(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new et(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();jCe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=Vo(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=mo(i.handleLabelPoints[c],of(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),p=Vo(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=p,f.x=m;var S=mo(c.indicatorLabelPoint,of(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,x=C==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?w:"middle",align:x?"center":w});var A={x:m,y:p,style:{fill:d}},D={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,M),b.animateTo(D,M)}else f.attr(A),b.attr(D);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;P<I.length;P++)this.api.enterBlur(I[P])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=nV(MT(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=nV(MT(o[0],r),o[1]);var l=eTe(i,s,o),u=[r-l,r+l],c=Vo(r,o,s,!0),f=[Vo(u[0],o,s,!0),Vo(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,d=[];(n||aV(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=sle(h,d);this._dispatchHighDown("downplay",F_(v[0],i)),this._dispatchHighDown("highlight",F_(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Uc(r.target,function(l){var u=rt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",F_(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=of(n,a?null:this.group);return Se(r)?mo(r,o,i):QS(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(W7);function iV(e,t,r,n){return new Ti({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){js(i.event)},ondragend:n})}function eTe(e,t,r){var n=KCe/2,i=e.get("hoverLinkDataSize");return i&&(n=Vo(i,t,r,!0)/2),n}function aV(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function oV(e){return e==="vertical"?"ns-resize":"ew-resize"}var tTe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},rTe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},nTe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(Txe(n.stateList,n.targetVisuals,Fe(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(Fe(iTe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function iTe(e,t,r,n){for(var i=t.targetVisuals[n],a=Tn.prepareVisualTypes(i),o={color:um(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,h)}return o.color;function f(d){return o[d]}function h(d,v){o[d]=v}}var sV=E;function aTe(e){var t=e&&e.visualMap;Se(t)||(t=t?[t]:[]),sV(t,function(r){if(r){_h(r,"splitList")&&!_h(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Se(n)&&sV(n,function(i){Ke(i)&&(_h(i,"start")&&!_h(i,"min")&&(i.min=i.start),_h(i,"end")&&!_h(i,"max")&&(i.max=i.end))})}})}function _h(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var lV=!1;function X7(e){lV||(lV=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(tTe,rTe),E(nTe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(aTe))}function Z7(e){e.registerComponentModel(qCe),e.registerComponentView(QCe),X7(e)}var oTe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],sTe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Je(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=we(this._pieceList,function(l){return l=Je(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Tn.listVisualTypes(),a=this.isCategory();E(r.pieces,function(s){E(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),E(n,function(s,l){var u=!1;E(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&E(this.stateList,function(c){(r[c]||(r[c]={}))[l]=U7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,E(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;E(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Je(r)},t.prototype.getValueState=function(r){var n=Tn.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Tn.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return E(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Lu(Q1.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}(Q1),sTe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),nO(e),E(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;E(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),uV(t,e)},pieces:function(e){var t=this.option;E(t.pieces,function(r,n){Ke(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=r[h[d]],s[f]=l[d],c[f]=d===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Tn.retrieveVisuals(r),e.push(i)},this),uV(t,e),nO(e),E(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function uV(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var lTe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=On(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),E(c.viewPieceList,function(d){var v=d.piece,p=new et;p.onclick=Fe(this._onItemClick,this,v),this._enableHoverLink(p,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(p,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);p.add(new zt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,h,l),sf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:F_(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return Y7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new et,l=this.visualMapModel.textStyleModel;s.add(new zt({style:Ar(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=we(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(hn(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Je(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,E(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(W7);function q7(e){e.registerComponentModel(oTe),e.registerComponentView(lTe),X7(e)}function uTe(e){bt(Z7),bt(q7)}var cTe={label:{enabled:!0},decal:{show:!1}},cV=Nt(),fTe={};function hTe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Je(cTe);ft(n.label,e.getLocaleModel().get("aria"),!1),ft(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=He();e.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),cV(h).scope=d}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(Xe(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=hD(h.ecModel,h.name,fTe,e.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",w(b,S))}else{var v=h.getRawData(),p={},m=cV(h).scope;d.each(function(C){var x=d.getRawIndex(C);p[x]=C});var y=v.count();v.each(function(C){var x=p[C],A=v.getName(C)||C+"",D=hD(h.ecModel,A,m,y),M=d.getItemVisual(x,"decal");d.setItemVisual(x,"decal",w(M,D))})}function w(C,x){var A=C?de(de({},x),C):x;return A.dirty=!0,A}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=qe(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,p=Math.min(h,v),m;if(!(h<1)){var y=s();if(y){var S=f.get(["general","withTitle"]);m=o(S,{title:y})}else m=f.get(["general","withoutTitle"]);var b=[],w=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(w,{seriesCount:h}),e.eachSeries(function(D,M){if(M<p){var I=void 0,P=D.get("name"),R=P?"withName":"withoutName";I=h>1?f.get(["series","multiple",R]):f.get(["series","single",R]),I=o(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:l(D.subType)});var N=D.getData();if(N.count()>d){var O=f.get(["data","partialData"]);I+=o(O,{displayCnt:d})}else I+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),W=[],z=0;z<N.count();z++)if(z<d){var j=N.getName(z),ee=N.getValues(z),te=f.get(["data",j?"withName":"withoutName"]);W.push(o(te,{name:j,value:ee.join(F)}))}I+=W.join(F)+B,b.push(I)}});var C=f.getModel(["series","multiple","separator"]),x=C.get("middle"),A=C.get("end");m+=b.join(x)+A,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!Ne(u))return u;var f=u;return E(c,function(h,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function dTe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},E(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function vTe(e){e.registerPreprocessor(dTe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,hTe)}var fV={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pTe=function(){function e(t){var r=this._condVal=Ne(t)?new RegExp(t):Doe(t)?t:null;if(r==null){var n="";tr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ne(r)?this._condVal.test(t):$t(r)?this._condVal.test(t+""):!1},e}(),gTe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),mTe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),yTe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),_Te=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),STe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function LL(e,t){if(e===!0||e===!1){var r=new gTe;return r.value=e,r}var n="";return j7(e)||tr(n),e.and?hV("and",e,t):e.or?hV("or",e,t):e.not?bTe(e,t):wTe(e,t)}function hV(e,t,r){var n=t[e],i="";Se(n)||tr(i),n.length||tr(i);var a=e==="and"?new mTe:new yTe;return a.children=we(n,function(o){return LL(o,r)}),a.children.length||tr(i),a}function bTe(e,t){var r=e.not,n="";j7(r)||tr(n);var i=new _Te;return i.child=LL(r,t),i.child||tr(n),i}function wTe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Mt(e),o=e.parser,s=o?EU(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Ve(fV,u)?fV[u]:u,f=e[u],h=s?s(f):f,d=cfe(c,h)||c==="reg"&&new pTe(h);d||tr(r),i.push(d)}}i.length||tr(r);var v=new STe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=i,v}function j7(e){return Ke(e)&&!ii(e)}var xTe=function(){function e(t,r){this._cond=LL(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function CTe(e,t){return new xTe(e,t)}var TTe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=CTe(e.config,{valueGetterAttrMap:He({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Ve(s,"dimension")||tr(l);var c=t.getDimensionInfo(u);return c||tr(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},ATe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=cr(r);i.length||tr(n);var a=[];E(i,function(c){var f=c.dimension,h=c.order,d=c.parser,v=c.incomparable;if(f==null&&tr(n),h!=="asc"&&h!=="desc"&&tr(n),v&&v!=="min"&&v!=="max"){var p="";tr(p)}if(h!=="asc"&&h!=="desc"){var m="";tr(m)}var y=t.getDimensionInfo(f);y||tr(n);var S=d?EU(d):null;d&&!S&&tr(n),a.push({dimIdx:y.index,parser:S,comparator:new kU(h,v)})});var o=t.sourceFormat;o!==ai&&o!==Za&&tr(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<a.length;h++){var d=a[h],v=t.retrieveValueFromItem(c,d.dimIdx),p=t.retrieveValueFromItem(f,d.dimIdx);d.parser&&(v=d.parser(v),p=d.parser(p));var m=d.comparator.evaluate(v,p);if(m!==0)return m}return 0}),{data:s}}};function DTe(e){e.registerTransform(TTe),e.registerTransform(ATe)}var MTe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new BU(this),pN(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),pN(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:es},t}(Dt),ITe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Br);function LTe(e){e.registerComponentModel(MTe),e.registerComponentView(ITe)}var No=ls.CMD;function Nh(e,t){return Math.abs(e-t)<1e-5}function d2(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(N,O){i&&i.length>2&&n.push(i),i=[N,O]}function c(N,O,F,B){Nh(N,F)&&Nh(O,B)||i.push(N,O,F,B,F,B)}function f(N,O,F,B,W,z){var j=Math.abs(O-N),ee=Math.tan(j/4)*4/3,te=O<N?-1:1,me=Math.cos(N),Ae=Math.sin(N),Pe=Math.cos(O),Oe=Math.sin(O),Ue=me*W+F,se=Ae*z+B,he=Pe*W+F,pe=Oe*z+B,ye=W*ee*te,xe=z*ee*te;i.push(Ue-ye*Ae,se+xe*me,he+ye*Oe,pe-xe*Pe,he,pe)}for(var h,d,v,p,m=0;m<r;){var y=t[m++],S=m===1;switch(S&&(a=t[m],o=t[m+1],s=a,l=o,(y===No.L||y===No.C||y===No.Q)&&(i=[s,l])),y){case No.M:a=s=t[m++],o=l=t[m++],u(s,l);break;case No.L:h=t[m++],d=t[m++],c(a,o,h,d),a=h,o=d;break;case No.C:i.push(t[m++],t[m++],t[m++],t[m++],a=t[m++],o=t[m++]);break;case No.Q:h=t[m++],d=t[m++],v=t[m++],p=t[m++],i.push(a+2/3*(h-a),o+2/3*(d-o),v+2/3*(h-v),p+2/3*(d-p),v,p),a=v,o=p;break;case No.A:var b=t[m++],w=t[m++],C=t[m++],x=t[m++],A=t[m++],D=t[m++]+A;m+=1;var M=!t[m++];h=Math.cos(A)*C+b,d=Math.sin(A)*x+w,S?(s=h,l=d,u(s,l)):c(a,o,h,d),a=Math.cos(D)*C+b,o=Math.sin(D)*x+w;for(var I=(M?-1:1)*Math.PI/2,P=A;M?P>D:P<D;P+=I){var R=M?Math.max(P+I,D):Math.min(P+I,D);f(P,R,b,w,C,x)}break;case No.R:s=a=t[m++],l=o=t[m++],h=s+t[m++],d=l+t[m++],u(h,l),c(h,l,h,d),c(h,d,s,d),c(s,d,s,l),c(s,l,h,l);break;case No.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function v2(e,t,r,n,i,a,o,s,l,u){if(Nh(e,r)&&Nh(t,n)&&Nh(i,o)&&Nh(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,d=s-t,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var p=r-e,m=n-t,y=i-o,S=a-s,b=p*p+m*m,w=y*y+S*S;if(b<f&&w<f){l.push(o,s);return}var C=h*p+d*m,x=-h*y-d*S,A=b-C*C,D=w-x*x;if(A<f&&C>=0&&D<f&&x>=0){l.push(o,s);return}var M=[],I=[];yu(e,r,i,o,.5,M),yu(t,n,a,s,.5,I),v2(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,u),v2(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,u)}function PTe(e,t){var r=d2(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],h=a[u++],d=a[u++],v=a[u++],p=a[u++];v2(s,l,c,f,h,d,v,p,o,t),s=v,l=p}n.push(o)}return n}function K7(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function dV(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=K7([l,u],c?0:1,t),h=(c?s:u)/f.length,d=0;d<f.length;d++)for(var v=(c?u:s)/f[d],p=0;p<f[d];p++){var m={};c?(m.startAngle=a+h*d,m.endAngle=a+h*(d+1),m.r0=n+v*p,m.r=n+v*(p+1)):(m.startAngle=a+v*p,m.endAngle=a+v*(p+1),m.r0=n+h*d,m.r=n+h*(d+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,r.push(m)}}function ETe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=K7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,h=0;h<o.length;h++)for(var d=e[l]/o[h],v=0;v<o[h];v++){var p={};p[u]=h*f,p[c]=v*d,p[s]=f,p[l]=d,p.x+=e.x,p.y+=e.y,r.push(p)}}function vV(e,t,r,n){return e*n-r*t}function RTe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=vV(c,f,l,u);if(Math.abs(h)<1e-6)return null;var d=e-i,v=t-a,p=vV(d,v,c,f)/h;return p<0||p>1?null:new ut(p*l+e,p*u+t)}function kTe(e,t,r){var n=new ut;ut.sub(n,r,t),n.normalize();var i=new ut;ut.sub(i,e,t);var a=i.dot(n);return a}function Sh(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function OTe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=RTe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:kTe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(m,y){return m.projPt-y.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],v=[h],p=[d],a=u.idx+1;a<=c.idx;a++)Sh(v,e[a].slice());Sh(v,d),Sh(v,h);for(var a=c.idx+1;a<=u.idx+n;a++)Sh(p,e[a%n].slice());return Sh(p,h),Sh(p,d),[{points:v},{points:p}]}function pV(e){var t=e.points,r=[],n=[];XS(t,r,n);var i=new ht(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new ut,c=new ut;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),OTe(t,u,c)}function eS(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);eS(e,a[0],i,n),eS(e,a[1],r-i,n)}return n}function NTe(e,t){for(var r=[],n=0;n<t;n++)r.push(qM(e));return r}function FTe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function BTe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function VTe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":ETe(n,t,r),i=Ot;break;case"sector":dV(n,t,r),i=Ci;break;case"circle":dV({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Ci;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=we(PTe(e.getUpdatedPathProxy(),o),function(y){return BTe(y)}),l=s.length;if(l===0)eS(pV,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=we(s,function(y){var S=[],b=[];XS(y,S,b);var w=(b[1]-S[1])*(b[0]-S[0]);return c+=w,{poly:y,area:w}});f.sort(function(y,S){return S.area-y.area});for(var h=t,u=0;u<l;u++){var d=f[u];if(h<=0)break;var v=u===l-1?h:Math.ceil(d.area/c*t);v<0||(eS(pV,{points:d.poly},v,r),h-=v)}}i=Ti;break}if(!i)return NTe(e,t);for(var p=[],u=0;u<r.length;u++){var m=new i;m.setShape(r[u]),FTe(e,m),p.push(m)}return p}function zTe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,d=2;d<s;){var v=o[d-2],p=o[d-1],m=o[d++],y=o[d++],S=o[d++],b=o[d++],w=o[d++],C=o[d++];if(h<=0){f.push(m,y,S,b,w,C);continue}for(var x=Math.min(h,c-1)+1,A=1;A<=x;A++){var D=A/x;yu(v,m,S,w,D,i),yu(p,y,b,C,D,a),v=i[3],p=a[3],f.push(i[1],a[1],i[2],a[2],v,p),m=i[5],y=a[5],S=i[6],b=a[6]}h-=x-1}return o===e?[f,t]:[e,f]}function gV(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function GTe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=zTe(l,u),c=r[0],f=r[1],n=c,i=f):(f=gV(i||l,l),c=l):(c=gV(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function mV(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function $Te(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var d=h===0?c:(c+h-2)%l+2,v=e[d]-r[0],p=e[d+1]-r[1],m=t[h]-n[0],y=t[h+1]-n[1],S=m-v,b=y-p;f+=S*S+b*b}f<a&&(a=f,o=u)}return o}function HTe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function UTe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=mV(s),c=mV(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],h=[],d=0,v=1/0,p=[],m=s.length;a&&(s=HTe(s));for(var y=$Te(s,l,u,c)*6,S=m-2,b=0;b<S;b+=2){var w=(y+b)%S+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var C=n/r,x=-n/2;x<=n/2;x+=C){for(var A=Math.sin(x),D=Math.cos(x),M=0,b=0;b<s.length;b+=2){var I=f[b],P=f[b+1],R=l[b]-c[0],N=l[b+1]-c[1],O=R*D-N*A,F=R*A+N*D;p[b]=O,p[b+1]=F;var B=O-I,W=F-P;M+=B*B+W*W}if(M<v){v=M,d=x;for(var z=0;z<p.length;z++)h[z]=p[z]}}i.push({from:f,to:h,fromCp:u,toCp:c,rotation:-d})}return i}function tS(e){return e.__isCombineMorphing}var J7="__mOriginal_";function rS(e,t,r){var n=J7+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Yp(e,t){var r=J7+t;e[r]&&(e[t]=e[r],e[r]=null)}function yV(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function Q7(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=GTe(d2(r),d2(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&yV(a,s),l&&yV(o,l),rS(t,"updateTransform",{replace:u}),t.transform=null;var c=UTe(a,o,10,Math.PI),f=[];rS(t,"buildPath",{replace:function(h){for(var d=t.__morphT,v=1-d,p=[],m=0;m<c.length;m++){var y=c[m],S=y.from,b=y.to,w=y.rotation*d,C=y.fromCp,x=y.toCp,A=Math.sin(w),D=Math.cos(w);__(p,C,x,d);for(var M=0;M<S.length;M+=2){var I=S[M],P=S[M+1],R=b[M],N=b[M+1],O=I*v+R*d,F=P*v+N*d;f[M]=O*D-F*A+p[0],f[M+1]=O*A+F*D+p[1]}var B=f[0],W=f[1];h.moveTo(B,W);for(var M=2;M<S.length;){var R=f[M++],N=f[M++],z=f[M++],j=f[M++],ee=f[M++],te=f[M++];B===R&&W===N&&z===ee&&j===te?h.lineTo(ee,te):h.bezierCurveTo(R,N,z,j,ee,te),B=ee,W=te}}}})}function PL(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;Q7(e,t),t.__morphT=0;function a(){Yp(t,"buildPath"),Yp(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},qe({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function WTe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function nS(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=we(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=we(a,function(s,l){return{cp:s,z:WTe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function e9(e){return VTe(e.path,e.count)}function p2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function YTe(e,t,r){var n=[];function i(C){for(var x=0;x<C.length;x++){var A=C[x];tS(A)?i(A.childrenRef()):A instanceof Ct&&n.push(A)}}i(e);var a=n.length;if(!a)return p2();var o=r.dividePath||e9,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),p2();n=nS(n),s=nS(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Bs,h=0;h<a;h++){var d=n[h],v=s[h];v.parent=t,v.copyTransform(f),c||Q7(d,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(C){for(var x=0;x<s.length;x++)s[x].addSelfToZr(C)}rS(t,"addSelfToZr",{after:function(C){p(C)}}),rS(t,"removeSelfFromZr",{after:function(C){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(C)}});function m(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Yp(t,"addSelfToZr"),Yp(t,"removeSelfFromZr")}var y=s.length;if(c)for(var S=y,b=function(){S--,S===0&&(m(),l&&l())},h=0;h<y;h++){var w=c?qe({delay:(r.delay||0)+c(h,y,n[h],s[h]),done:b},r):r;PL(n[h],s[h],w)}else t.__morphT=0,t.animateTo({__morphT:1},qe({during:function(C){for(var x=0;x<y;x++){var A=s[x];A.__morphT=t.__morphT,A.dirtyShape()}u&&u(C)},done:function(){m();for(var C=0;C<e.length;C++)Yp(e[C],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function XTe(e,t,r){var n=t.length,i=[],a=r.dividePath||e9;function o(d){for(var v=0;v<d.length;v++){var p=d[v];tS(p)?o(p.childrenRef()):p instanceof Ct&&i.push(p)}}if(tS(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(qM(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),p2()}i=nS(i),t=nS(t);for(var f=r.individualDelay,u=0;u<n;u++){var h=f?qe({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;PL(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function _V(e){return Se(e[0])}function SV(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.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++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var ZTe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=qM(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function IT(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Pd("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;_V(e)&&(u=e,c=t),_V(t)&&(u=t,c=e);function f(y,S,b,w,C){var x=y.many,A=y.one;if(x.length===1&&!C){var D=S?x[0]:A,M=S?A:x[0];if(tS(D))f({many:[D],one:M},!0,b,w,!0);else{var I=s?qe({delay:s(b,w)},l):l;PL(D,M,I),a(D,M,D,M,I)}}else for(var P=qe({dividePath:ZTe[r],individualDelay:s&&function(W,z,j,ee){return s(W+b,w)}},l),R=S?YTe(x,A,P):XTe(A,x,P),N=R.fromIndividuals,O=R.toIndividuals,F=N.length,B=0;B<F;B++){var I=s?qe({delay:s(B,F)},l):l;a(N[B],O[B],S?x[B]:y.one,S?y.one:x[B],I)}}for(var h=u?u===e:e.length>t.length,d=u?SV(c,u):SV(h?t:e,[h?e:t]),v=0,p=0;p<d.length;p++)v+=d[p].many.length;for(var m=0,p=0;p<d.length;p++)f(d[p],h,m,v),m+=d[p].many.length}function Cc(e){if(!e)return[];if(Se(e)){for(var t=[],r=0;r<e.length;r++)t.push(Cc(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof Ct&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var t9=1e4,qTe=0,bV=1,wV=2,jTe=Nt();function KTe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function JTe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function xV(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=KTe(e,i);if(a){var o=JTe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function CV(e){var t=[];return E(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>t9))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:xV(n,o,i,!1),childGroupId:xV(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function LT(e,t,r){e.traverse(function(n){n instanceof Ct&&Rr(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function PT(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function bh(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function QTe(e,t,r){var n=Pd("update",r,t);n&&e.traverse(function(i){if(i instanceof Ua){var a=Xue(i);a&&i.animateFrom({style:a},n)}})}function eAe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function r9(e,t,r){var n=CV(e),i=CV(t);function a(b,w,C,x,A){(C||b)&&w.animateFrom({style:C&&C!==b?de(de({},C.style),b.style):b.style},A)}var o=!1,s=qTe,l=He(),u=He();n.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=bV;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=wV;break}}function d(b,w){return function(C){var x=C.data,A=C.dataIndex;return w?x.getId(A):b?s===bV?C.childGroupId:C.groupId:s===wV?C.childGroupId:C.groupId}}var v=eAe(n,i),p={};if(!v)for(var c=0;c<i.length;c++){var m=i[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(p[y.id]=!0)}function S(b,w){var C=n[w],x=i[b],A=x.data.hostModel,D=C.data.getItemGraphicEl(C.dataIndex),M=x.data.getItemGraphicEl(x.dataIndex);if(D===M){M&&QTe(M,x.dataIndex,A);return}D&&p[D.id]||M&&(bh(M),D?(bh(D),PT(D),o=!0,IT(Cc(D),Cc(M),x.divide,A,b,a)):LT(M,A,b))}new el(n,i,d(!0,v),d(!1,v),null,"multiple").update(S).updateManyToOne(function(b,w){var C=i[b],x=C.data,A=x.hostModel,D=x.getItemGraphicEl(C.dataIndex),M=sr(we(w,function(I){return n[I].data.getItemGraphicEl(n[I].dataIndex)}),function(I){return I&&I!==D&&!p[I.id]});D&&(bh(D),M.length?(E(M,function(I){bh(I),PT(I)}),o=!0,IT(Cc(M),Cc(D),C.divide,A,b,a)):LT(D,A,C.dataIndex))}).updateOneToMany(function(b,w){var C=n[w],x=C.data.getItemGraphicEl(C.dataIndex);if(!(x&&p[x.id])){var A=sr(we(b,function(M){return i[M].data.getItemGraphicEl(i[M].dataIndex)}),function(M){return M&&M!==x}),D=i[b[0]].data.hostModel;A.length&&(E(A,function(M){return bh(M)}),x?(bh(x),PT(x),o=!0,IT(Cc(x),Cc(A),C.divide,D,b[0],a)):E(A,function(M){return LT(M,D,b[0])}))}}).updateManyToMany(function(b,w){new el(w,b,function(C){return n[C].data.getId(n[C].dataIndex)},function(C){return i[C].data.getId(i[C].dataIndex)}).update(function(C,x){S(b[C],w[x])}).execute()}).execute(),o&&E(t,function(b){var w=b.data,C=w.hostModel,x=C&&r.getViewOfSeriesModel(C),A=Pd("update",C,0);x&&C.isAnimationEnabled()&&A&&A.duration>0&&x.group.traverse(function(D){D instanceof Ct&&!D.animators.length&&D.animateFrom({style:{opacity:0}},A)})})}function TV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function AV(e){return Se(e)?e.sort().join(","):e}function Gl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function tAe(e,t){var r=He(),n=He(),i=He();return E(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=TV(a),c=AV(u);n.set(c,{dataGroupId:s,data:l}),Se(u)&&E(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),E(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=TV(a),u=AV(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Gl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Gl(s),data:s}]});else if(Se(l)){var f=[];E(l,function(v){var p=n.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Gl(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Gl(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Gl(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:Gl(s)})}}}}),r}function DV(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function rAe(e,t,r,n){var i=[],a=[];E(cr(e.from),function(o){var s=DV(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Gl(t.oldData[s]),groupIdDim:o.dimension})}),E(cr(e.to),function(o){var s=DV(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Gl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&r9(i,a,n)}function nAe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){E(cr(n.seriesTransition),function(i){E(cr(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][L_]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=jTe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)E(cr(a),function(d){rAe(d,i,n,r)});else{var o=tAe(i,n);E(o.keys(),function(d){var v=o.get(d);r9(v.oldSeries,v.newSeries,r)})}E(n.updatedSeries,function(d){d[L_]&&(d[L_]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<t9&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}bt([dpe]);bt([lpe]);bt([Rpe,Zpe,ige,Fge,Zge,kme,lye,Wye,d0e,_0e,M0e,w_e,X_e,i1e,S1e,C1e,k1e,G1e,J1e,iSe,vSe,KSe]);bt(gbe);bt($be);bt(e6);bt(twe);bt(V6);bt(awe);bt(vwe);bt(txe);bt(Sxe);bt(Sm);bt(Fxe);bt(zxe);bt(jxe);bt(nCe);bt(uCe);bt(pCe);bt(TCe);bt(HCe);bt($7);bt(H7);bt(uTe);bt(Z7);bt(q7);bt(vTe);bt(DTe);bt(LTe);bt(nAe);bt(Mve);/*!
|
||
* shared v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const iS=typeof window<"u",Pu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),iAe=(e,t,r)=>aAe({l:e,k:t,s:r}),aAe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),un=e=>typeof e=="number"&&isFinite(e),oAe=e=>EL(e)==="[object Date]",gd=e=>EL(e)==="[object RegExp]",Cb=e=>Wt(e)&&Object.keys(e).length===0,An=Object.assign,sAe=Object.create,Ir=(e=null)=>sAe(e);let MV;const Zc=()=>MV||(MV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ir());function IV(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const lAe=Object.prototype.hasOwnProperty;function fo(e,t){return lAe.call(e,t)}const tn=Array.isArray,$r=e=>typeof e=="function",Ze=e=>typeof e=="string",ur=e=>typeof e=="boolean",vr=e=>e!==null&&typeof e=="object",uAe=e=>vr(e)&&$r(e.then)&&$r(e.catch),n9=Object.prototype.toString,EL=e=>n9.call(e),Wt=e=>EL(e)==="[object Object]",cAe=e=>e==null?"":tn(e)||Wt(e)&&e.toString===n9?JSON.stringify(e,null,2):String(e);function RL(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function fAe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const O0=e=>!vr(e)||tn(e);function B_(e,t){if(O0(e)||O0(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:i}=r.pop();Object.keys(n).forEach(a=>{a!=="__proto__"&&(vr(n[a])&&!vr(i[a])&&(i[a]=Array.isArray(n[a])?[]:Ir()),O0(i[a])||O0(n[a])?i[a]=n[a]:r.push({src:n[a],des:i[a]}))})}}/*!
|
||
* message-compiler v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function hAe(e,t,r){return{line:e,column:t,offset:r}}function g2(e,t,r){return{start:e,end:t}}const xr={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},dAe=17;function Tb(e,t,r={}){const{domain:n,messages:i,args:a}=r,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=n,s}function vAe(e){throw e}const Ds=" ",pAe="\r",vi=`
|
||
`,gAe="\u2028",mAe="\u2029";function yAe(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===pAe&&t[A+1]===vi,s=A=>t[A]===vi,l=A=>t[A]===mAe,u=A=>t[A]===gAe,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,d=()=>i,v=()=>a,p=A=>o(A)||l(A)||u(A)?vi:t[A],m=()=>p(r),y=()=>p(r+a);function S(){return a=0,c(r)&&(n++,i=0),o(r)&&r++,r++,i++,t[r]}function b(){return o(r+a)&&a++,a++,t[r+a]}function w(){r=0,n=1,i=1,a=0}function C(A=0){a=A}function x(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:d,peekOffset:v,charAt:p,currentChar:m,currentPeek:y,next:S,peek:b,reset:w,resetPeek:C,skipToPeek:x}}const Rl=void 0,_Ae=".",LV="'",SAe="tokenizer";function bAe(e,t={}){const r=t.location!==!1,n=yAe(e),i=()=>n.index(),a=()=>hAe(n.line(),n.column(),n.index()),o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f($,Y,re,...ue){const Ce=u();if(Y.column+=re,Y.offset+=re,c){const Re=r?g2(Ce.startLoc,Y):null,J=Tb($,Re,{domain:SAe,args:ue});c(J)}}function h($,Y,re){$.endLoc=a(),$.currentType=Y;const ue={type:Y};return r&&(ue.loc=g2($.startLoc,$.endLoc)),re!=null&&(ue.value=re),ue}const d=$=>h($,13);function v($,Y){return $.currentChar()===Y?($.next(),Y):(f(xr.EXPECTED_TOKEN,a(),0,Y),"")}function p($){let Y="";for(;$.currentPeek()===Ds||$.currentPeek()===vi;)Y+=$.currentPeek(),$.peek();return Y}function m($){const Y=p($);return $.skipToPeek(),Y}function y($){if($===Rl)return!1;const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function S($){if($===Rl)return!1;const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function b($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=y($.currentPeek());return $.resetPeek(),ue}function w($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=$.currentPeek()==="-"?$.peek():$.currentPeek(),Ce=S(ue);return $.resetPeek(),Ce}function C($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=$.currentPeek()===LV;return $.resetPeek(),ue}function x($,Y){const{currentType:re}=Y;if(re!==7)return!1;p($);const ue=$.currentPeek()===".";return $.resetPeek(),ue}function A($,Y){const{currentType:re}=Y;if(re!==8)return!1;p($);const ue=y($.currentPeek());return $.resetPeek(),ue}function D($,Y){const{currentType:re}=Y;if(!(re===7||re===11))return!1;p($);const ue=$.currentPeek()===":";return $.resetPeek(),ue}function M($,Y){const{currentType:re}=Y;if(re!==9)return!1;const ue=()=>{const Re=$.currentPeek();return Re==="{"?y($.peek()):Re==="@"||Re==="|"||Re===":"||Re==="."||Re===Ds||!Re?!1:Re===vi?($.peek(),ue()):P($,!1)},Ce=ue();return $.resetPeek(),Ce}function I($){p($);const Y=$.currentPeek()==="|";return $.resetPeek(),Y}function P($,Y=!0){const re=(Ce=!1,Re="")=>{const J=$.currentPeek();return J==="{"||J==="@"||!J?Ce:J==="|"?!(Re===Ds||Re===vi):J===Ds?($.peek(),re(!0,Ds)):J===vi?($.peek(),re(!0,vi)):!0},ue=re();return Y&&$.resetPeek(),ue}function R($,Y){const re=$.currentChar();return re===Rl?Rl:Y(re)?($.next(),re):null}function N($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function O($){return R($,N)}function F($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function B($){return R($,F)}function W($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function z($){return R($,W)}function j($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function ee($){return R($,j)}function te($){let Y="",re="";for(;Y=z($);)re+=Y;return re}function me($){let Y="";for(;;){const re=$.currentChar();if(re==="{"||re==="}"||re==="@"||re==="|"||!re)break;if(re===Ds||re===vi)if(P($))Y+=re,$.next();else{if(I($))break;Y+=re,$.next()}else Y+=re,$.next()}return Y}function Ae($){m($);let Y="",re="";for(;Y=B($);)re+=Y;return $.currentChar()===Rl&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re}function Pe($){m($);let Y="";return $.currentChar()==="-"?($.next(),Y+=`-${te($)}`):Y+=te($),$.currentChar()===Rl&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),Y}function Oe($){return $!==LV&&$!==vi}function Ue($){m($),v($,"'");let Y="",re="";for(;Y=R($,Oe);)Y==="\\"?re+=se($):re+=Y;const ue=$.currentChar();return ue===vi||ue===Rl?(f(xr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),ue===vi&&($.next(),v($,"'")),re):(v($,"'"),re)}function se($){const Y=$.currentChar();switch(Y){case"\\":case"'":return $.next(),`\\${Y}`;case"u":return he($,Y,4);case"U":return he($,Y,6);default:return f(xr.UNKNOWN_ESCAPE_SEQUENCE,a(),0,Y),""}}function he($,Y,re){v($,Y);let ue="";for(let Ce=0;Ce<re;Ce++){const Re=ee($);if(!Re){f(xr.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${Y}${ue}${$.currentChar()}`);break}ue+=Re}return`\\${Y}${ue}`}function pe($){return $!=="{"&&$!=="}"&&$!==Ds&&$!==vi}function ye($){m($);let Y="",re="";for(;Y=R($,pe);)re+=Y;return re}function xe($){let Y="",re="";for(;Y=O($);)re+=Y;return re}function ke($){const Y=re=>{const ue=$.currentChar();return ue==="{"||ue==="@"||ue==="|"||ue==="("||ue===")"||!ue||ue===Ds?re:(re+=ue,$.next(),Y(re))};return Y("")}function H($){m($);const Y=v($,"|");return m($),Y}function U($,Y){let re=null;switch($.currentChar()){case"{":return Y.braceNest>=1&&f(xr.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),re=h(Y,2,"{"),m($),Y.braceNest++,re;case"}":return Y.braceNest>0&&Y.currentType===2&&f(xr.EMPTY_PLACEHOLDER,a(),0),$.next(),re=h(Y,3,"}"),Y.braceNest--,Y.braceNest>0&&m($),Y.inLinked&&Y.braceNest===0&&(Y.inLinked=!1),re;case"@":return Y.braceNest>0&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re=ie($,Y)||d(Y),Y.braceNest=0,re;default:{let Ce=!0,Re=!0,J=!0;if(I($))return Y.braceNest>0&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,re;if(Y.braceNest>0&&(Y.currentType===4||Y.currentType===5||Y.currentType===6))return f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),Y.braceNest=0,_e($,Y);if(Ce=b($,Y))return re=h(Y,4,Ae($)),m($),re;if(Re=w($,Y))return re=h(Y,5,Pe($)),m($),re;if(J=C($,Y))return re=h(Y,6,Ue($)),m($),re;if(!Ce&&!Re&&!J)return re=h(Y,12,ye($)),f(xr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,re.value),m($),re;break}}return re}function ie($,Y){const{currentType:re}=Y;let ue=null;const Ce=$.currentChar();switch((re===7||re===8||re===11||re===9)&&(Ce===vi||Ce===Ds)&&f(xr.INVALID_LINKED_FORMAT,a(),0),Ce){case"@":return $.next(),ue=h(Y,7,"@"),Y.inLinked=!0,ue;case".":return m($),$.next(),h(Y,8,".");case":":return m($),$.next(),h(Y,9,":");default:return I($)?(ue=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,ue):x($,Y)||D($,Y)?(m($),ie($,Y)):A($,Y)?(m($),h(Y,11,xe($))):M($,Y)?(m($),Ce==="{"?U($,Y)||ue:h(Y,10,ke($))):(re===7&&f(xr.INVALID_LINKED_FORMAT,a(),0),Y.braceNest=0,Y.inLinked=!1,_e($,Y))}}function _e($,Y){let re={type:13};if(Y.braceNest>0)return U($,Y)||d(Y);if(Y.inLinked)return ie($,Y)||d(Y);switch($.currentChar()){case"{":return U($,Y)||d(Y);case"}":return f(xr.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(Y,3,"}");case"@":return ie($,Y)||d(Y);default:{if(I($))return re=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,re;if(P($))return h(Y,0,me($));break}}return re}function fe(){const{currentType:$,offset:Y,startLoc:re,endLoc:ue}=l;return l.lastType=$,l.lastOffset=Y,l.lastStartLoc=re,l.lastEndLoc=ue,l.offset=i(),l.startLoc=a(),n.currentChar()===Rl?h(l,13):_e(n,l)}return{nextToken:fe,currentOffset:i,currentPosition:a,context:u}}const wAe="parser",xAe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function CAe(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"<22>"}}}function TAe(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,S,b,w,...C){const x=y.currentPosition();if(x.offset+=w,x.column+=w,r){const A=t?g2(b,x):null,D=Tb(S,A,{domain:wAe,args:C});r(D)}}function i(y,S,b){const w={type:y};return t&&(w.start=S,w.end=S,w.loc={start:b,end:b}),w}function a(y,S,b,w){t&&(y.end=S,y.loc&&(y.loc.end=b))}function o(y,S){const b=y.context(),w=i(3,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function s(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(5,w,C);return x.index=parseInt(S,10),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function l(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(4,w,C);return x.key=S,y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function u(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(9,w,C);return x.value=S.replace(xAe,CAe),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function c(y){const S=y.nextToken(),b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(8,w,C);return S.type!==11?(n(y,xr.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),x.value="",a(x,w,C),{nextConsumeToken:S,node:x}):(S.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fo(S)),x.value=S.value||"",a(x,y.currentOffset(),y.currentPosition()),{node:x})}function f(y,S){const b=y.context(),w=i(7,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function h(y){const S=y.context(),b=i(6,S.offset,S.startLoc);let w=y.nextToken();if(w.type===8){const C=c(y);b.modifier=C.node,w=C.nextConsumeToken||y.nextToken()}switch(w.type!==9&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=f(y,w.value||"");break;case 4:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=l(y,w.value||"");break;case 5:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=s(y,w.value||"");break;case 6:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=u(y,w.value||"");break;default:{n(y,xr.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=y.context(),x=i(7,C.offset,C.startLoc);return x.value="",a(x,C.offset,C.startLoc),b.key=x,a(b,C.offset,C.startLoc),{nextConsumeToken:w,node:b}}}return a(b,y.currentOffset(),y.currentPosition()),{node:b}}function d(y){const S=y.context(),b=S.currentType===1?y.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,C=i(2,b,w);C.items=[];let x=null;do{const M=x||y.nextToken();switch(x=null,M.type){case 0:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(o(y,M.value||""));break;case 5:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(s(y,M.value||""));break;case 4:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(l(y,M.value||""));break;case 6:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(u(y,M.value||""));break;case 7:{const I=h(y);C.items.push(I.node),x=I.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),D=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(C,A,D),C}function v(y,S,b,w){const C=y.context();let x=w.items.length===0;const A=i(1,S,b);A.cases=[],A.cases.push(w);do{const D=d(y);x||(x=D.items.length===0),A.cases.push(D)}while(C.currentType!==13);return x&&n(y,xr.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(A,y.currentOffset(),y.currentPosition()),A}function p(y){const S=y.context(),{offset:b,startLoc:w}=S,C=d(y);return S.currentType===13?C:v(y,b,w,C)}function m(y){const S=bAe(y,An({},e)),b=S.context(),w=i(0,b.offset,b.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=p(S),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),b.currentType!==13&&n(S,xr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),a(w,S.currentOffset(),S.currentPosition()),w}return{parse:m}}function Fo(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function AAe(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function PV(e,t){for(let r=0;r<e.length;r++)kL(e[r],t)}function kL(e,t){switch(e.type){case 1:PV(e.cases,t),t.helper("plural");break;case 2:PV(e.items,t);break;case 6:{kL(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function DAe(e,t={}){const r=AAe(e);r.helper("normalize"),e.body&&kL(e.body,r);const n=r.context();e.helpers=Array.from(n.helpers)}function MAe(e){const t=e.body;return t.type===2?EV(t):t.cases.forEach(r=>EV(r)),e}function EV(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];if(!(n.type===3||n.type===9)||n.value==null)break;t.push(n.value)}if(t.length===e.items.length){e.static=RL(t);for(let r=0;r<e.items.length;r++){const n=e.items[r];(n.type===3||n.type===9)&&delete n.value}}}}function Lh(e){switch(e.t=e.type,e.type){case 0:{const t=e;Lh(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let n=0;n<r.length;n++)Lh(r[n]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let n=0;n<r.length;n++)Lh(r[n]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Lh(t.key),t.k=t.key,delete t.key,t.modifier&&(Lh(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function IAe(e,t){const{sourceMap:r,filename:n,breakLineCode:i,needIndent:a}=t,o=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(m,y){s.code+=m}function c(m,y=!0){const S=y?i:"";u(a?S+" ".repeat(m):S)}function f(m=!0){const y=++s.indentLevel;m&&c(y)}function h(m=!0){const y=--s.indentLevel;m&&c(y)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function LAe(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),md(e,t.key),t.modifier?(e.push(", "),md(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function PAe(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let a=0;a<i&&(md(e,t.items[a]),a!==i-1);a++)e.push(", ");e.deindent(n()),e.push("])")}function EAe(e,t){const{helper:r,needIndent:n}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let a=0;a<i&&(md(e,t.cases[a]),a!==i-1);a++)e.push(", ");e.deindent(n()),e.push("])")}}function RAe(e,t){t.body?md(e,t.body):e.push("null")}function md(e,t){const{helper:r}=e;switch(t.type){case 0:RAe(e,t);break;case 1:EAe(e,t);break;case 2:PAe(e,t);break;case 6:LAe(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const kAe=(e,t={})=>{const r=Ze(t.mode)?t.mode:"normal",n=Ze(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
||
`,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=IAe(e,{mode:r,filename:n,sourceMap:i,breakLineCode:a,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${RL(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),md(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function OAe(e,t={}){const r=An({},t),n=!!r.jit,i=!!r.minify,a=r.optimize==null?!0:r.optimize,s=TAe(r).parse(e);return n?(a&&MAe(s),i&&Lh(s),{ast:s,code:""}):(DAe(s,r),kAe(s,r))}/*!
|
||
* core-base v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function NAe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ET(e){return r=>FAe(r,e)}function FAe(e,t){const r=VAe(t);if(r==null)throw Vg(0);if(OL(r)===1){const a=GAe(r);return e.plural(a.reduce((o,s)=>[...o,RV(e,s)],[]))}else return RV(e,r)}const BAe=["b","body"];function VAe(e){return Eu(e,BAe)}const zAe=["c","cases"];function GAe(e){return Eu(e,zAe,[])}function RV(e,t){const r=HAe(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=WAe(t).reduce((i,a)=>[...i,m2(e,a)],[]);return e.normalize(n)}}const $Ae=["s","static"];function HAe(e){return Eu(e,$Ae)}const UAe=["i","items"];function WAe(e){return Eu(e,UAe,[])}function m2(e,t){const r=OL(t);switch(r){case 3:return N0(t,r);case 9:return N0(t,r);case 4:{const n=t;if(fo(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(fo(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Vg(r)}case 5:{const n=t;if(fo(n,"i")&&un(n.i))return e.interpolate(e.list(n.i));if(fo(n,"index")&&un(n.index))return e.interpolate(e.list(n.index));throw Vg(r)}case 6:{const n=t,i=qAe(n),a=KAe(n);return e.linked(m2(e,a),i?m2(e,i):void 0,e.type)}case 7:return N0(t,r);case 8:return N0(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const YAe=["t","type"];function OL(e){return Eu(e,YAe)}const XAe=["v","value"];function N0(e,t){const r=Eu(e,XAe);if(r)return r;throw Vg(t)}const ZAe=["m","modifier"];function qAe(e){return Eu(e,ZAe)}const jAe=["k","key"];function KAe(e){const t=Eu(e,jAe);if(t)return t;throw Vg(6)}function Eu(e,t,r){for(let n=0;n<t.length;n++){const i=t[n];if(fo(e,i)&&e[i]!=null)return e[i]}return r}function Vg(e){return new Error(`unhandled node type: ${e}`)}const JAe=e=>e;let F0=Ir();function yd(e){return vr(e)&&OL(e)===0&&(fo(e,"b")||fo(e,"body"))}function QAe(e,t={}){let r=!1;const n=t.onError||vAe;return t.onError=i=>{r=!0,n(i)},{...OAe(e,t),detectError:r}}function eDe(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ze(e)){ur(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||JAe)(e),i=F0[n];if(i)return i;const{ast:a,detectError:o}=QAe(e,{...t,location:!1,jit:!0}),s=ET(a);return o?s:F0[n]=s}else{const r=e.cacheKey;if(r){const n=F0[r];return n||(F0[r]=ET(e))}else return ET(e)}}let zg=null;function tDe(e){zg=e}function rDe(e,t,r){zg&&zg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const nDe=iDe("function:translate");function iDe(e){return t=>zg&&zg.emit(e,t)}const zs={INVALID_ARGUMENT:dAe,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},aDe=24;function Gs(e){return Tb(e,null,void 0)}function NL(e,t){return t.locale!=null?kV(t.locale):kV(e.locale)}let RT;function kV(e){if(Ze(e))return e;if($r(e)){if(e.resolvedOnce&&RT!=null)return RT;if(e.constructor.name==="Function"){const t=e();if(uAe(t))throw Gs(zs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return RT=t}else throw Gs(zs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gs(zs.NOT_SUPPORT_LOCALE_TYPE)}function oDe(e,t,r){return[...new Set([r,...tn(t)?t:vr(t)?Object.keys(t):Ze(t)?[t]:[r]])]}function i9(e,t,r){const n=Ze(r)?r:Gg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;tn(o);)o=OV(a,o,t);const s=tn(t)||!Wt(t)?t:t.default?t.default:null;o=Ze(s)?[s]:s,tn(o)&&OV(a,o,!1),i.__localeChainCache.set(n,a)}return a}function OV(e,t,r){let n=!0;for(let i=0;i<t.length&&ur(n);i++){const a=t[i];Ze(a)&&(n=sDe(e,t[i],r))}return n}function sDe(e,t,r){let n;const i=t.split("-");do{const a=i.join("-");n=lDe(e,a,r),i.splice(-1,1)}while(i.length&&n===!0);return n}function lDe(e,t,r){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(tn(r)||Wt(r))&&r[i]&&(n=r[i])}return n}const Ru=[];Ru[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ru[1]={w:[1],".":[2],"[":[4],o:[7]};Ru[2]={w:[2],i:[3,0],0:[3,0]};Ru[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ru[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ru[5]={"'":[4,0],o:8,l:[5,0]};Ru[6]={'"':[4,0],o:8,l:[6,0]};const uDe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cDe(e){return uDe.test(e)}function fDe(e){const t=e.charCodeAt(0),r=e.charCodeAt(e.length-1);return t===r&&(t===34||t===39)?e.slice(1,-1):e}function hDe(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function dDe(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:cDe(t)?fDe(t):"*"+t}function vDe(e){const t=[];let r=-1,n=0,i=0,a,o,s,l,u,c,f;const h=[];h[0]=()=>{o===void 0?o=s:o+=s},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,o===void 0||(o=dDe(o),o===!1))return!1;h[1]()}};function d(){const v=e[r+1];if(n===5&&v==="'"||n===6&&v==='"')return r++,s="\\"+v,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&d())){if(l=hDe(a),f=Ru[n],u=f[l]||f.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=a,c()===!1))))return;if(n===7)return t}}const NV=new Map;function pDe(e,t){return vr(e)?e[t]:null}function gDe(e,t){if(!vr(e))return null;let r=NV.get(t);if(r||(r=vDe(t),r&&NV.set(t,r)),!r)return null;const n=r.length;let i=e,a=0;for(;a<n;){const o=i[r[a]];if(o===void 0||$r(i))return null;i=o,a++}return i}const mDe="10.0.5",Ab=-1,Gg="en-US",FV="",BV=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function yDe(){return{upper:(e,t)=>t==="text"&&Ze(e)?e.toUpperCase():t==="vnode"&&vr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ze(e)?e.toLowerCase():t==="vnode"&&vr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ze(e)?BV(e):t==="vnode"&&vr(e)&&"__v_isVNode"in e?BV(e.children):e}}let a9;function _De(e){a9=e}let o9;function SDe(e){o9=e}let s9;function bDe(e){s9=e}let l9=null;const wDe=e=>{l9=e},xDe=()=>l9;let u9=null;const VV=e=>{u9=e},CDe=()=>u9;let zV=0;function TDe(e={}){const t=$r(e.onWarn)?e.onWarn:fAe,r=Ze(e.version)?e.version:mDe,n=Ze(e.locale)||$r(e.locale)?e.locale:Gg,i=$r(n)?Gg:n,a=tn(e.fallbackLocale)||Wt(e.fallbackLocale)||Ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Wt(e.messages)?e.messages:kT(i),s=Wt(e.datetimeFormats)?e.datetimeFormats:kT(i),l=Wt(e.numberFormats)?e.numberFormats:kT(i),u=An(Ir(),e.modifiers,yDe()),c=e.pluralRules||Ir(),f=$r(e.missing)?e.missing:null,h=ur(e.missingWarn)||gd(e.missingWarn)?e.missingWarn:!0,d=ur(e.fallbackWarn)||gd(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,p=!!e.unresolving,m=$r(e.postTranslation)?e.postTranslation:null,y=Wt(e.processor)?e.processor:null,S=ur(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=$r(e.messageCompiler)?e.messageCompiler:a9,C=$r(e.messageResolver)?e.messageResolver:o9||pDe,x=$r(e.localeFallbacker)?e.localeFallbacker:s9||oDe,A=vr(e.fallbackContext)?e.fallbackContext:void 0,D=e,M=vr(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,I=vr(D.__numberFormatters)?D.__numberFormatters:new Map,P=vr(D.__meta)?D.__meta:{};zV++;const R={version:r,cid:zV,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:v,unresolving:p,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:b,messageCompiler:w,messageResolver:C,localeFallbacker:x,fallbackContext:A,onWarn:t,__meta:P};return R.datetimeFormats=s,R.numberFormats=l,R.__datetimeFormatters=M,R.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&rDe(R,r,P),R}const kT=e=>({[e]:Ir()});function FL(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return Ze(s)?s:t}else return t}function $v(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function ADe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function DDe(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n<t.length;n++)if(ADe(e,t[n]))return!0;return!1}function GV(e,...t){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=y2(...t),h=ur(c.missingWarn)?c.missingWarn:e.missingWarn;ur(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=NL(e,c),p=o(e,i,v);if(!Ze(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let m={},y,S=null;const b="datetime format";for(let x=0;x<p.length&&(y=p[x],m=r[y]||{},S=m[l],!Wt(S));x++)FL(e,l,y,h,b);if(!Wt(S)||!Ze(y))return n?Ab:l;let w=`${y}__${l}`;Cb(f)||(w=`${w}__${JSON.stringify(f)}`);let C=s.get(w);return C||(C=new Intl.DateTimeFormat(y,An({},S,f)),s.set(w,C)),d?C.formatToParts(u):C.format(u)}const c9=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function y2(...e){const[t,r,n,i]=e,a=Ir();let o=Ir(),s;if(Ze(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Gs(zs.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Gs(zs.INVALID_ISO_DATE_ARGUMENT)}}else if(oAe(t)){if(isNaN(t.getTime()))throw Gs(zs.INVALID_DATE_ARGUMENT);s=t}else if(un(t))s=t;else throw Gs(zs.INVALID_ARGUMENT);return Ze(r)?a.key=r:Wt(r)&&Object.keys(r).forEach(l=>{c9.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ze(n)?a.locale=n:Wt(n)&&(o=n),Wt(i)&&(o=i),[a.key||"",s,a,o]}function $V(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function HV(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=_2(...t),h=ur(c.missingWarn)?c.missingWarn:e.missingWarn;ur(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=NL(e,c),p=o(e,i,v);if(!Ze(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let m={},y,S=null;const b="number format";for(let x=0;x<p.length&&(y=p[x],m=r[y]||{},S=m[l],!Wt(S));x++)FL(e,l,y,h,b);if(!Wt(S)||!Ze(y))return n?Ab:l;let w=`${y}__${l}`;Cb(f)||(w=`${w}__${JSON.stringify(f)}`);let C=s.get(w);return C||(C=new Intl.NumberFormat(y,An({},S,f)),s.set(w,C)),d?C.formatToParts(u):C.format(u)}const f9=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function _2(...e){const[t,r,n,i]=e,a=Ir();let o=Ir();if(!un(t))throw Gs(zs.INVALID_ARGUMENT);const s=t;return Ze(r)?a.key=r:Wt(r)&&Object.keys(r).forEach(l=>{f9.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ze(n)?a.locale=n:Wt(n)&&(o=n),Wt(i)&&(o=i),[a.key||"",s,a,o]}function UV(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const MDe=e=>e,IDe=e=>"",LDe="text",PDe=e=>e.length===0?"":RL(e),EDe=cAe;function WV(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function RDe(e){const t=un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(un(e.named.count)||un(e.named.n))?un(e.named.count)?e.named.count:un(e.named.n)?e.named.n:t:t}function kDe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ODe(e={}){const t=e.locale,r=RDe(e),n=vr(e.pluralRules)&&Ze(t)&&$r(e.pluralRules[t])?e.pluralRules[t]:WV,i=vr(e.pluralRules)&&Ze(t)&&$r(e.pluralRules[t])?WV:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||Ir();un(e.pluralIndex)&&kDe(r,l);const u=y=>l[y];function c(y,S){const b=$r(e.messages)?e.messages(y,!!S):vr(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):IDe)}const f=y=>e.modifiers?e.modifiers[y]:MDe,h=Wt(e.processor)&&$r(e.processor.normalize)?e.processor.normalize:PDe,d=Wt(e.processor)&&$r(e.processor.interpolate)?e.processor.interpolate:EDe,v=Wt(e.processor)&&Ze(e.processor.type)?e.processor.type:LDe,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[b,w]=S;let C="text",x="";S.length===1?vr(b)?(x=b.modifier||x,C=b.type||C):Ze(b)&&(x=b||x):S.length===2&&(Ze(b)&&(x=b||x),Ze(w)&&(C=w||C));const A=c(y,!0)(m),D=C==="vnode"&&tn(A)&&x?A[0]:A;return x?f(x)(D,C):D},message:c,type:v,interpolate:d,normalize:h,values:An(Ir(),o,l)};return m}const YV=()=>"",Fa=e=>$r(e);function XV(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=S2(...t),c=ur(u.missingWarn)?u.missingWarn:e.missingWarn,f=ur(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ur(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,v=Ze(u.default)||ur(u.default)?ur(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,p=r||v!=null&&(Ze(v)||$r(v)),m=NL(e,u);h&&NDe(u);let[y,S,b]=d?[l,m,s[m]||Ir()]:h9(e,l,m,o,f,c),w=y,C=l;if(!d&&!(Ze(w)||yd(w)||Fa(w))&&p&&(w=v,C=w),!d&&(!(Ze(w)||yd(w)||Fa(w))||!Ze(S)))return i?Ab:l;let x=!1;const A=()=>{x=!0},D=Fa(w)?w:d9(e,l,S,w,C,A);if(x)return w;const M=VDe(e,S,b,u),I=ODe(M),P=FDe(e,D,I),R=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const N={timestamp:Date.now(),key:Ze(l)?l:Fa(w)?w.key:"",locale:S||(Fa(w)?w.locale:""),format:Ze(w)?w:Fa(w)?w.source:"",message:R};N.meta=An({},e.__meta,xDe()||{}),nDe(N)}return R}function NDe(e){tn(e.list)?e.list=e.list.map(t=>Ze(t)?IV(t):t):vr(e.named)&&Object.keys(e.named).forEach(t=>{Ze(e.named[t])&&(e.named[t]=IV(e.named[t]))})}function h9(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f=Ir(),h,d=null;const v="translate";for(let p=0;p<c.length&&(h=c[p],f=o[h]||Ir(),(d=l(f,t))===null&&(d=f[t]),!(Ze(d)||yd(d)||Fa(d)));p++)if(!DDe(h,c)){const m=FL(e,t,h,a,v);m!==t&&(d=m)}return[d,h,f]}function d9(e,t,r,n,i,a){const{messageCompiler:o,warnHtmlMessage:s}=e;if(Fa(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||t,u}if(o==null){const u=()=>n;return u.locale=r,u.key=t,u}const l=o(n,BDe(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function FDe(e,t,r){return t(r)}function S2(...e){const[t,r,n]=e,i=Ir();if(!Ze(t)&&!un(t)&&!Fa(t)&&!yd(t))throw Gs(zs.INVALID_ARGUMENT);const a=un(t)?String(t):(Fa(t),t);return un(r)?i.plural=r:Ze(r)?i.default=r:Wt(r)&&!Cb(r)?i.named=r:tn(r)&&(i.list=r),un(n)?i.plural=n:Ze(n)?i.default=n:Wt(n)&&An(i,n),[a,i]}function BDe(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>iAe(t,r,o)}}function VDe(e,t,r,n){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:a,messages:(d,v)=>{let p=o(r,d);if(p==null&&(c||v)){const[,,m]=h9(c||e,d,t,s,l,u);p=o(m,d)}if(Ze(p)||yd(p)){let m=!1;const S=d9(e,d,t,p,d,()=>{m=!0});return m?YV:S}else return Fa(p)?p:YV}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),un(n.plural)&&(h.pluralIndex=n.plural),h}NAe();/*!
|
||
* vue-i18n v10.0.5
|
||
* (c) 2024 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const zDe="10.0.5";function GDe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ai={UNEXPECTED_RETURN_TYPE:aDe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ui(e,...t){return Tb(e,null,void 0)}const b2=Pu("__translateVNode"),w2=Pu("__datetimeParts"),x2=Pu("__numberParts"),v9=Pu("__setPluralRules"),p9=Pu("__injectWithOption"),C2=Pu("__dispose");function $g(e){if(!vr(e))return e;for(const t in e)if(fo(e,t))if(!t.includes("."))vr(e[t])&&$g(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,a=!1;for(let o=0;o<n;o++){if(r[o]in i||(i[r[o]]=Ir()),!vr(i[r[o]])){a=!0;break}i=i[r[o]]}a||(i[r[n]]=e[t],delete e[t]),vr(i[r[n]])&&$g(i[r[n]])}return e}function BL(e,t){const{messages:r,__i18n:n,messageResolver:i,flatJson:a}=t,o=Wt(r)?r:tn(n)?Ir():{[e]:Ir()};if(tn(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||Ir(),B_(u,o[l])):B_(u,o)}else Ze(s)&&B_(JSON.parse(s),o)}),i==null&&a)for(const s in o)fo(o,s)&&$g(o[s]);return o}function g9(e){return e.type}function m9(e,t,r){let n=vr(t.messages)?t.messages:Ir();"__i18nGlobal"in r&&(n=BL(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(vr(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(vr(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ZV(e){return ze(qg,null,e,0)}const qV="__INTLIFY_META__",jV=()=>[],$De=()=>!1;let KV=0;function JV(e){return(t,r,n,i)=>e(r,n,ns()||void 0,i)}const HDe=()=>{const e=ns();let t=null;return e&&(t=g9(e)[qV])?{[qV]:t}:null};function VL(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=iS?Ye:bS;let o=ur(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:Ze(e.locale)?e.locale:Gg),l=a(t&&o?t.fallbackLocale.value:Ze(e.fallbackLocale)||tn(e.fallbackLocale)||Wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(BL(s.value,e)),c=a(Wt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Wt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:ur(e.missingWarn)||gd(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:ur(e.fallbackWarn)||gd(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:ur(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=$r(e.missing)?e.missing:null,y=$r(e.missing)?JV(e.missing):null,S=$r(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:ur(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Wt(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&VV(null);const J={version:zDe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:x,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:d,fallbackFormat:p,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=c.value,J.numberFormats=f.value,J.__datetimeFormatters=Wt(A)?A.__datetimeFormatters:void 0,J.__numberFormatters=Wt(A)?A.__numberFormatters:void 0;const ce=TDe(J);return n&&VV(ce),ce})(),$v(A,s.value,l.value);function M(){return[s.value,l.value,u.value,c.value,f.value]}const I=at({get:()=>s.value,set:J=>{s.value=J,A.locale=s.value}}),P=at({get:()=>l.value,set:J=>{l.value=J,A.fallbackLocale=l.value,$v(A,s.value,J)}}),R=at(()=>u.value),N=at(()=>c.value),O=at(()=>f.value);function F(){return $r(S)?S:null}function B(J){S=J,A.postTranslation=J}function W(){return m}function z(J){J!==null&&(y=JV(J)),m=J,A.missing=y}const j=(J,ce,Ge,Qe,It,Ft)=>{M();let Mr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?CDe():void 0),Mr=J(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ge!=="translate exists"&&un(Mr)&&Mr===Ab||Ge==="translate exists"&&!Mr){const[Vr,nn]=ce();return t&&v?Qe(t):It(Vr)}else{if(Ft(Mr))return Mr;throw Ui(Ai.UNEXPECTED_RETURN_TYPE)}};function ee(...J){return j(ce=>Reflect.apply(XV,null,[ce,...J]),()=>S2(...J),"translate",ce=>Reflect.apply(ce.t,ce,[...J]),ce=>ce,ce=>Ze(ce))}function te(...J){const[ce,Ge,Qe]=J;if(Qe&&!vr(Qe))throw Ui(Ai.INVALID_ARGUMENT);return ee(ce,Ge,An({resolvedMessage:!0},Qe||{}))}function me(...J){return j(ce=>Reflect.apply(GV,null,[ce,...J]),()=>y2(...J),"datetime format",ce=>Reflect.apply(ce.d,ce,[...J]),()=>FV,ce=>Ze(ce))}function Ae(...J){return j(ce=>Reflect.apply(HV,null,[ce,...J]),()=>_2(...J),"number format",ce=>Reflect.apply(ce.n,ce,[...J]),()=>FV,ce=>Ze(ce))}function Pe(J){return J.map(ce=>Ze(ce)||un(ce)||ur(ce)?ZV(String(ce)):ce)}const Ue={normalize:Pe,interpolate:J=>J,type:"vnode"};function se(...J){return j(ce=>{let Ge;const Qe=ce;try{Qe.processor=Ue,Ge=Reflect.apply(XV,null,[Qe,...J])}finally{Qe.processor=null}return Ge},()=>S2(...J),"translate",ce=>ce[b2](...J),ce=>[ZV(ce)],ce=>tn(ce))}function he(...J){return j(ce=>Reflect.apply(HV,null,[ce,...J]),()=>_2(...J),"number format",ce=>ce[x2](...J),jV,ce=>Ze(ce)||tn(ce))}function pe(...J){return j(ce=>Reflect.apply(GV,null,[ce,...J]),()=>y2(...J),"datetime format",ce=>ce[w2](...J),jV,ce=>Ze(ce)||tn(ce))}function ye(J){x=J,A.pluralRules=x}function xe(J,ce){return j(()=>{if(!J)return!1;const Ge=Ze(ce)?ce:s.value,Qe=U(Ge),It=A.messageResolver(Qe,J);return yd(It)||Fa(It)||Ze(It)},()=>[J],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[J,ce]),$De,Ge=>ur(Ge))}function ke(J){let ce=null;const Ge=i9(A,l.value,s.value);for(let Qe=0;Qe<Ge.length;Qe++){const It=u.value[Ge[Qe]]||{},Ft=A.messageResolver(It,J);if(Ft!=null){ce=Ft;break}}return ce}function H(J){const ce=ke(J);return ce??(t?t.tm(J)||{}:{})}function U(J){return u.value[J]||{}}function ie(J,ce){if(i){const Ge={[J]:ce};for(const Qe in Ge)fo(Ge,Qe)&&$g(Ge[Qe]);ce=Ge[J]}u.value[J]=ce,A.messages=u.value}function _e(J,ce){u.value[J]=u.value[J]||{};const Ge={[J]:ce};if(i)for(const Qe in Ge)fo(Ge,Qe)&&$g(Ge[Qe]);ce=Ge[J],B_(ce,u.value[J]),A.messages=u.value}function fe(J){return c.value[J]||{}}function $(J,ce){c.value[J]=ce,A.datetimeFormats=c.value,$V(A,J,ce)}function Y(J,ce){c.value[J]=An(c.value[J]||{},ce),A.datetimeFormats=c.value,$V(A,J,ce)}function re(J){return f.value[J]||{}}function ue(J,ce){f.value[J]=ce,A.numberFormats=f.value,UV(A,J,ce)}function Ce(J,ce){f.value[J]=An(f.value[J]||{},ce),A.numberFormats=f.value,UV(A,J,ce)}KV++,t&&iS&&(Sr(t.locale,J=>{o&&(s.value=J,A.locale=J,$v(A,s.value,l.value))}),Sr(t.fallbackLocale,J=>{o&&(l.value=J,A.fallbackLocale=J,$v(A,s.value,l.value))}));const Re={id:KV,locale:I,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(J){o=J,J&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,$v(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:R,get modifiers(){return C},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(J){h=J,A.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(J){d=J,A.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(J){v=J},get fallbackFormat(){return p},set fallbackFormat(J){p=J,A.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(J){b=J,A.warnHtmlMessage=J},get escapeParameter(){return w},set escapeParameter(J){w=J,A.escapeParameter=J},t:ee,getLocaleMessage:U,setLocaleMessage:ie,mergeLocaleMessage:_e,getPostTranslationHandler:F,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:z,[v9]:ye};return Re.datetimeFormats=N,Re.numberFormats=O,Re.rt=te,Re.te=xe,Re.tm=H,Re.d=me,Re.n=Ae,Re.getDateTimeFormat=fe,Re.setDateTimeFormat=$,Re.mergeDateTimeFormat=Y,Re.getNumberFormat=re,Re.setNumberFormat=ue,Re.mergeNumberFormat=Ce,Re[p9]=r,Re[b2]=se,Re[w2]=pe,Re[x2]=he,Re}function UDe(e){const t=Ze(e.locale)?e.locale:Gg,r=Ze(e.fallbackLocale)||tn(e.fallbackLocale)||Wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=$r(e.missing)?e.missing:void 0,i=ur(e.silentTranslationWarn)||gd(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=ur(e.silentFallbackWarn)||gd(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ur(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Wt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=$r(e.postTranslation)?e.postTranslation:void 0,f=Ze(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=ur(e.sync)?e.sync:!0;let v=e.messages;if(Wt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((A,D)=>{const M=A[D]||(A[D]={});return An(M,C[D]),A},v||{})}const{__i18n:p,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,b=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:v,flatJson:w,datetimeFormats:S,numberFormats:b,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:p,__root:m,__injectWithOption:y}}function T2(e={}){const t=VL(UDe(e)),{__extender:r}=e,n={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return ur(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=ur(i)?!i:i},get silentFallbackWarn(){return ur(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=ur(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[a,o,s]=i,l={plural:1};let u=null,c=null;if(!Ze(a))throw Ui(Ai.INVALID_ARGUMENT);const f=a;return Ze(o)?l.locale=o:un(o)?l.plural=o:tn(o)?u=o:Wt(o)&&(c=o),Ze(s)?l.locale=s:tn(s)?u=s:Wt(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,a){return t.te(i,a)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,a){t.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){t.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,a){t.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){t.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,a){t.setNumberFormat(i,a)},mergeNumberFormat(i,a){t.mergeNumberFormat(i,a)}};return n.__extender=r,n}function WDe(e,t,r){return{beforeCreate(){const n=ns();if(!n)throw Ui(Ai.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;if(i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root)this.$i18n=QV(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=T2(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=QV(e,i);else{this.$i18n=T2({__i18n:i.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&m9(t,i,i),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=ns();if(!n)throw Ui(Ai.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),r.__deleteInstance(n),delete this.$i18n}}}function QV(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[v9](t.pluralizationRules||e.pluralizationRules);const r=BL(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const zL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function YDe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===it?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},Ir())}function y9(){return it}const XDe=qt({name:"i18n-t",props:An({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>un(e)||!isNaN(e)}},zL),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(f=>f!=="_"),o=Ir();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Ze(e.plural)?+e.plural:e.plural);const s=YDe(t,a),l=i[b2](e.keypath,s,o),u=An(Ir(),n),c=Ze(e.tag)||vr(e.tag)?e.tag:y9();return Wo(c,u,l)}}}),e4=XDe;function ZDe(e){return tn(e)&&!Ze(e[0])}function _9(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s=Ir();e.locale&&(o.locale=e.locale),Ze(e.format)?o.key=e.format:vr(e.format)&&(Ze(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>r.includes(d)?An(Ir(),h,{[d]:e.format[d]}):h,Ir()));const l=n(e.value,o,s);let u=[o.key];tn(l)?u=l.map((h,d)=>{const v=i[h.type],p=v?v({[h.type]:h.value,index:d,parts:l}):[h.value];return ZDe(p)&&(p[0].key=`${h.type}-${d}`),p}):Ze(l)&&(u=[l]);const c=An(Ir(),a),f=Ze(e.tag)||vr(e.tag)?e.tag:y9();return Wo(f,c,u)}}const qDe=qt({name:"i18n-n",props:An({value:{type:Number,required:!0},format:{type:[String,Object]}},zL),setup(e,t){const r=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return _9(e,t,f9,(...n)=>r[x2](...n))}}),t4=qDe,jDe=qt({name:"i18n-d",props:An({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zL),setup(e,t){const r=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return _9(e,t,c9,(...n)=>r[w2](...n))}}),r4=jDe;function KDe(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function JDe(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw Ui(Ai.UNEXPECTED_ERROR);const u=KDe(e,s.$),c=n4(l);return[Reflect.apply(u.t,u,[...i4(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);iS&&e.global===u&&(o.__i18nWatcher=Sr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{iS&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=n4(s);o.textContent=Reflect.apply(l.t,l,[...i4(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function n4(e){if(Ze(e))return{path:e};if(Wt(e)){if(!("path"in e))throw Ui(Ai.REQUIRED_VALUE,"path");return e}else throw Ui(Ai.INVALID_VALUE)}function i4(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return Ze(r)&&(o.locale=r),un(i)&&(o.plural=i),un(a)&&(o.plural=a),[t,s,o]}function QDe(e,t,...r){const n=Wt(r[0])?r[0]:{};(ur(n.globalInstall)?n.globalInstall:!0)&&([e4.name,"I18nT"].forEach(a=>e.component(a,e4)),[t4.name,"I18nN"].forEach(a=>e.component(a,t4)),[r4.name,"I18nD"].forEach(a=>e.component(a,r4))),e.directive("t",JDe(t))}const e2e=Pu("global-vue-i18n");function t2e(e={},t){const r=__VUE_I18N_LEGACY_API__&&ur(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ur(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=r2e(e,r),s=Pu("");function l(h){return i.get(h)||null}function u(h,d){i.set(h,d)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...d){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Wt(d[0])){const m=d[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let v=null;!r&&n&&(v=c2e(h,f.global)),__VUE_I18N_FULL_INSTALL__&&QDe(h,f,...d),__VUE_I18N_LEGACY_API__&&r&&h.mixin(WDe(o,o.__composer,f));const p=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),p()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Cf(e={}){const t=ns();if(t==null)throw Ui(Ai.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ui(Ai.NOT_INSTALLED);const r=n2e(t),n=a2e(r),i=g9(t),a=i2e(e,i);if(a==="global")return m9(n,e,i),n;if(a==="parent"){let l=o2e(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=An({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=VL(l),o.__composerExtend&&(s[C2]=o.__composerExtend(s)),l2e(o,t,s),o.__setInstance(t,s)}return s}function r2e(e,t,r){const n=qQ(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>T2(e)):n.run(()=>VL(e));if(i==null)throw Ui(Ai.UNEXPECTED_ERROR);return[n,i]}function n2e(e){const t=vo(e.isCE?e2e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ui(e.isCE?Ai.NOT_INSTALLED_WITH_PROVIDE:Ai.UNEXPECTED_ERROR);return t}function i2e(e,t){return Cb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function a2e(e){return e.mode==="composition"?e.global:e.global.__composer}function o2e(e,t,r=!1){let n=null;const i=t.root;let a=s2e(t,r);for(;a!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(n=s.__composer,r&&n&&!n[p9]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function s2e(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function l2e(e,t,r){ol(()=>{},t),Zg(()=>{const n=r;e.__deleteInstance(t);const i=n[C2];i&&(i(),delete n[C2])},t)}const u2e=["locale","fallbackLocale","availableLocales"],a4=["t","rt","d","n","tm","te"];function c2e(e,t){const r=Object.create(null);return u2e.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw Ui(Ai.UNEXPECTED_ERROR);const o=vt(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,i,o)}),e.config.globalProperties.$i18n=r,a4.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw Ui(Ai.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,a4.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}GDe();_De(eDe);SDe(gDe);bDe(i9);if(__INTLIFY_PROD_DEVTOOLS__){const e=Zc();e.__INTLIFY__=!0,tDe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const f2e=qt({__name:"SpeedCharts",setup(e){const t=Ye(),r=Ye(),n=Ye(),i=Cf().t,a=Ye();return ol(()=>{const o=at(()=>{var d,v,p;const c=(d=getComputedStyle(t.value))==null?void 0:d.color,f=(v=getComputedStyle(r.value))==null?void 0:v.color,h=(p=getComputedStyle(n.value))==null?void 0:p.color;return{legend:{bottom:0,data:[i("download"),i("upload")],textStyle:{color:c}},grid:{left:60,top:15,right:10,bottom:25},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:m=>Math.max(m.max,102400),axisLine:{show:!1},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:m=>`${Wr(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},series:[{name:i("upload"),data:tp.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:ep.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Khe(a.value);s.setOption(o.value),Sr(o,()=>{s.setOption(o.value)});const{width:l}=Mre(a),u=vf.debounce(()=>{s.resize()},100);Sr(()=>l.value,()=>{u()})}),(o,s)=>(oe(),ve(it,null,[X("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),X("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),X("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),X("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),h2e={setup:"Setup",overview:"Overview",proxies:"Proxies",rules:"Rules",connections:"Connections",logs:"Logs",protocol:"Protocol",host:"Host",port:"Port",password:"Password",submit:"Submit",cancel:"Cancel",download:"Download",upload:"Upload",downloadSpeed:"Download Speed",uploadSpeed:"Upload Speed",memoryUsage:"Memory Usage",version:"Version",quickFilter:"Quick Filter",noContent:"No Content",flushFakeIP:"Flush Fake IP",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumnProxyGroup:"Two Column Proxy Group",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",twoColumnNodeForMobile:"Two Column Proxy Node",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavailable",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",quickFilterTip:"Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.",lowLatencyDesc:"Yellow threshold",mediumLatencyDesc:"Red threshold",[So.EN_US]:"English",[So.ZH_CN]:"中文"},d2e={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnNodeForMobile:"双列显示节点",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",[So.EN_US]:"English",[So.ZH_CN]:"中文"},Db=t2e({locale:sa.value,messages:{[So.EN_US]:h2e,[So.ZH_CN]:d2e}}),v2e=qt({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=ze("span",{class:"flex-1"},null),n=ze("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ze("span",{class:"hidden sm:inline"},[Xt(":"),e.conn.metadata.destinationPort])]),i=ze("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[ze(qie,{class:"h-4 w-3"},null),ze("div",{class:"hidden w-16 text-right sm:inline"},[Wr(e.conn.download),Xt(" |")," "]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.downloadSpeed),Xt("/s")])]),a=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[ze(bk,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Wr(e.conn.upload),Xt(" | ")]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.uploadSpeed),Xt("/s")])]),o=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[ze(bk,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Wr(e.conn.upload),Xt(" | ")]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.uploadSpeed),Xt("/s")])]),s=ze("div",{class:"flex w-12 gap-1"},[ze("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[ze(t$,{class:"h-4 w-4"},null)]),ze("button",{onClick:()=>ES(e.conn.id)},[ze(SM,{class:"h-4 w-4"},null)])]),l=ze("span",{class:"inline w-56 truncate text-sm"},[[...e.conn.chains].reverse().join("->")]),u=ze("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=ze("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[XG(e.conn)]),f=ze("span",{class:Tr("inline whitespace-nowrap text-right text-sm tracking-tight",sa.value===So.ZH_CN?"w-20":"w-32")},[OS(e.conn.start)]),h=ze("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Xt(" | "),e.conn.metadata.network]),d=ze("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Xt(" | "),e.conn.metadata.network]),v=e.conn.metadata.destinationIP||"remote-resolve",p=yM(e.conn.metadata.sourceIP),m=ze("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ze("span",null,[p,Xt(":"),e.conn.metadata.sourcePort]),ze("span",null,[Xt("->")]),ze("span",null,[v,Xt(":"),e.conn.metadata.destinationPort])]),y=ze("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ze("span",null,[p]),ze("span",null,[Xt("->")]),ze("span",null,[v])]);return WG.value&&s_.value?ze("div",{class:"card w-full flex-row items-center justify-between gap-1 rounded-xl bg-base-100 px-2 py-1 shadow-lg"},[n,l,y,d,i,a,f,s]):ze("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[ze("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,m,i,o]),ze("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/**
|
||
* table-core
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function au(e,t){return typeof e=="function"?e(t):e}function da(e,t){return r=>{t.setState(n=>({...n,[e]:au(r,n[e])}))}}function cf(e){return e instanceof Function}function p2e(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function S9(e,t){const r=[],n=i=>{i.forEach(a=>{r.push(a);const o=t(a);o!=null&&o.length&&n(o)})};return n(e),r}function yt(e,t,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());const s=e(a);if(!(s.length!==n.length||s.some((c,f)=>n[f]!==c)))return i;n=s;let u;if(r.key&&r.debug&&(u=Date.now()),i=t(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const c=Math.round((Date.now()-o)*100)/100,f=Math.round((Date.now()-u)*100)/100,h=f/16,d=(v,p)=>{for(v=String(v);v.length<p;)v=" "+v;return v};console.info(`%c⏱ ${d(f,5)} /${d(c,5)} ms`,`
|
||
font-size: .6rem;
|
||
font-weight: bold;
|
||
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function _t(e,t,r,n){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function g2e(e,t,r,n){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:yt(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),_t(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function m2e(e,t,r,n){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let d=h;for(const p of l.split(".")){var v;d=(v=d)==null?void 0:v[p]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:yt(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},_t(e.options,"debugColumns")),getLeafColumns:yt(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let v=f.columns.flatMap(p=>p.getLeafColumns());return h(v)}return[f]},_t(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Jn="debugHeaders";function o4(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const y2e={createTable:e=>{e.getHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;const s=(a=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return B0(t,[...s,...u,...l],e)},_t(e.options,Jn)),e.getCenterHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),B0(t,r,e,"center")),_t(e.options,Jn)),e.getLeftHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return B0(t,a,e,"left")},_t(e.options,Jn)),e.getRightHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return B0(t,a,e,"right")},_t(e.options,Jn)),e.getFooterGroups=yt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getLeftFooterGroups=yt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getCenterFooterGroups=yt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getRightFooterGroups=yt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getFlatHeaders=yt(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getLeftFlatHeaders=yt(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getCenterFlatHeaders=yt(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getRightFlatHeaders=yt(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getCenterLeafHeaders=yt(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getLeftLeafHeaders=yt(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getRightLeafHeaders=yt(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getLeafHeaders=yt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},_t(e.options,Jn))}};function B0(e,t,r,n){var i,a;let o=0;const s=function(h,d){d===void 0&&(d=1),o=Math.max(o,d),h.filter(v=>v.getIsVisible()).forEach(v=>{var p;(p=v.columns)!=null&&p.length&&s(v.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const v={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},p=[];h.forEach(m=>{const y=[...p].reverse()[0],S=m.column.depth===v.depth;let b,w=!1;if(S&&m.column.parent?b=m.column.parent:(b=m.column,w=!0),y&&(y==null?void 0:y.column)===b)y.subHeaders.push(m);else{const C=o4(r,b,{id:[n,d,b.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${p.filter(x=>x.column===b).length}`:void 0,depth:d,index:p.length});C.subHeaders.push(m),p.push(C)}v.headers.push(m),m.headerGroup=v}),l.push(v),d>0&&u(p,d-1)},c=t.map((h,d)=>o4(r,h,{depth:o,index:d}));u(c,o-1),l.reverse();const f=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let p=0,m=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:C}=b;p+=w,y.push(C)})):p=1;const S=Math.min(...y);return m=m+S,v.colSpan=p,v.rowSpan=m,{colSpan:p,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const b9=(e,t,r,n,i,a,o)=>{let s={id:t,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>S9(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:yt(()=>[e.getAllLeafColumns()],l=>l.map(u=>g2e(e,s,u,u.id)),_t(e.options,"debugRows")),_getAllCellsByColumnId:yt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),_t(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},_2e={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},w9=(e,t,r)=>{var n,i;const a=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};w9.autoRemove=e=>yo(e);const x9=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};x9.autoRemove=e=>yo(e);const C9=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(r==null?void 0:r.toLowerCase())};C9.autoRemove=e=>yo(e);const T9=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};T9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const A9=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});A9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const D9=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});D9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const M9=(e,t,r)=>e.getValue(t)===r;M9.autoRemove=e=>yo(e);const I9=(e,t,r)=>e.getValue(t)==r;I9.autoRemove=e=>yo(e);const GL=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};GL.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,a=t===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};GL.autoRemove=e=>yo(e)||yo(e[0])&&yo(e[1]);const Rs={includesString:w9,includesStringSensitive:x9,equalsString:C9,arrIncludes:T9,arrIncludesAll:A9,arrIncludesSome:D9,equals:M9,weakEquals:I9,inNumberRange:GL};function yo(e){return e==null||e===""}const S2e={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:da("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Rs.includesString:typeof n=="number"?Rs.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Rs.equals:Array.isArray(n)?Rs.arrIncludes:Rs.weakEquals},e.getFilterFn=()=>{var r,n;return cf(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Rs[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),a=n==null?void 0:n.find(c=>c.id===e.id),o=au(r,a?a.value:void 0);if(s4(i,o,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var a;return(a=au(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(s4(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function s4(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const b2e=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),w2e=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},x2e=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}),n},C2e=(e,t,r)=>{let n,i;return r.forEach(a=>{const o=a.getValue(e);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i<o&&(i=o)))}),[n,i]},T2e=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},A2e=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!p2e(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},D2e=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),M2e=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,I2e=(e,t)=>t.length,OT={sum:b2e,min:w2e,max:x2e,extent:C2e,mean:T2e,median:A2e,unique:D2e,uniqueCount:M2e,count:I2e},L2e={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:da("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return OT.sum;if(Object.prototype.toString.call(n)==="[object Date]")return OT.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return cf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:OT[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function P2e(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(a=>!t.includes(a.id));return r==="remove"?n:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...n]}const E2e={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:da("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=yt(r=>[Xp(t,r)],r=>r.findIndex(n=>n.id===e.id),_t(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=Xp(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=Xp(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=yt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return P2e(a,r,n)},_t(e.options,"debugTable"))}},NT=()=>({left:[],right:[]}),R2e={getInitialState:e=>({columnPinning:NT(),...e}),getDefaultOptions:e=>({onColumnPinningChange:da("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const a=[...n??[],...i??[]];return r.filter(o=>!a.includes(o.column.id))},_t(t.options,"debugRows")),e.getLeftVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),_t(t.options,"debugRows")),e.getRightVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),_t(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?NT():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:NT())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),_t(e.options,"debugColumns")),e.getRightLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),_t(e.options,"debugColumns")),e.getCenterLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(a=>!i.includes(a.id))},_t(e.options,"debugColumns"))}},V0={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},FT=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k2e={getDefaultColumnDef:()=>V0,getInitialState:e=>({columnSizing:{},columnSizingInfo:FT(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:da("columnSizing",e),onColumnSizingInfoChange:da("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:V0.minSize,(n=a??e.columnDef.size)!=null?n:V0.size),(i=e.columnDef.maxSize)!=null?i:V0.maxSize)},e.getStart=yt(r=>[r,Xp(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),_t(t.options,"debugColumns")),e.getAfter=yt(r=>[r,Xp(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),_t(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),BT(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=BT(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(b=>{var w,C;const x=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((w=b==null?void 0:b.startOffset)!=null?w:0))*x,D=Math.max(A/((C=b==null?void 0:b.startSize)!=null?C:0),-.999999);return b.columnSizingStart.forEach(M=>{let[I,P]=M;u[I]=Math.round(Math.max(P+P*D,0)*100)/100}),{...b,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(b=>({...b,...u})))},f=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=r||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",v.moveHandler),d==null||d.removeEventListener("mouseup",v.upHandler),h(y.clientX)}},p={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;d==null||d.removeEventListener("touchmove",p.moveHandler),d==null||d.removeEventListener("touchend",p.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=O2e()?{passive:!1}:!1;BT(a)?(d==null||d.addEventListener("touchmove",p.moveHandler,m),d==null||d.addEventListener("touchend",p.upHandler,m)):(d==null||d.addEventListener("mousemove",v.moveHandler,m),d==null||d.addEventListener("mouseup",v.upHandler,m)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?FT():(r=e.initialState.columnSizingInfo)!=null?r:FT())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let z0=null;function O2e(){if(typeof z0=="boolean")return z0;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return z0=e,z0}function BT(e){return e.type==="touchstart"}const N2e={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:da("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=yt(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),_t(t.options,"debugRows")),e.getVisibleCells=yt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],_t(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>yt(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),_t(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function Xp(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const F2e={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},B2e={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:da("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Rs.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return cf(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Rs[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},V2e={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:da("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,a;e.setExpanded(n?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const a=n===!0?!0:!!(n!=null&&n[e.id]);let o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[e.id]:!0};if(a&&!r){const{[e.id]:s,...l}=o;return l}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},A2=0,D2=10,VT=()=>({pageIndex:A2,pageSize:D2}),z2e={getInitialState:e=>({...e,pagination:{...VT(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:da("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=a=>au(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?VT():(i=e.initialState.pagination)!=null?i:VT())},e.setPageIndex=n=>{e.setPagination(i=>{let a=au(n,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=n=>{var i,a;e.setPageIndex(n?A2:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:A2)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?D2:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:D2)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,au(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=n=>e.setPagination(i=>{var a;let o=au(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=yt(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},_t(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},zT=()=>({top:[],bottom:[]}),G2e={getInitialState:e=>({rowPinning:zT(),...e}),getDefaultOptions:e=>({onRowPinningChange:da("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const a=n?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,h;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(r==="top"){var d,v;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const a=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?zT():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:zT())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},e.getTopRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),_t(e.options,"debugRows")),e.getBottomRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),_t(e.options,"debugRows")),e.getCenterRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(a=>!i.has(a.id))},_t(e.options,"debugRows"))}},$2e={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:da("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(a=>{M2(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getFilteredSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getGroupedSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return a;const s={...a};return M2(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return $L(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return I2(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return I2(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},M2=(e,t,r,n,i)=>{var a;const o=i.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>M2(e,s.id,r,n,i))};function GT(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=$L(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:i}}function $L(e,t){var r;return(r=t[e.id])!=null?r:!1}function I2(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&($L(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=I2(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const L2=/([0-9]+)/gm,H2e=(e,t,r)=>L9(Cu(e.getValue(r)).toLowerCase(),Cu(t.getValue(r)).toLowerCase()),U2e=(e,t,r)=>L9(Cu(e.getValue(r)),Cu(t.getValue(r))),W2e=(e,t,r)=>HL(Cu(e.getValue(r)).toLowerCase(),Cu(t.getValue(r)).toLowerCase()),Y2e=(e,t,r)=>HL(Cu(e.getValue(r)),Cu(t.getValue(r))),X2e=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},Z2e=(e,t,r)=>HL(e.getValue(r),t.getValue(r));function HL(e,t){return e===t?0:e>t?1:-1}function Cu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function L9(e,t){const r=e.split(L2).filter(Boolean),n=t.split(L2).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}const Hv={alphanumeric:H2e,alphanumericCaseSensitive:U2e,text:W2e,textCaseSensitive:Y2e,datetime:X2e,basic:Z2e},q2e={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:da("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Hv.datetime;if(typeof a=="string"&&(n=!0,a.split(L2).length>1))return Hv.alphanumeric}return n?Hv.text:Hv.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return cf(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Hv[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),a=typeof r<"u"&&r!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(d=>d.id===e.id),l=o==null?void 0:o.findIndex(d=>d.id===e.id);let u=[],c,f=a?r:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=o.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},j2e=[y2e,N2e,E2e,R2e,_2e,S2e,F2e,B2e,q2e,L2e,V2e,z2e,G2e,$2e,k2e];function K2e(e){var t,r;const n=[...j2e,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var d;l=(d=h.getInitialState==null?void 0:h.getInitialState(l))!=null?d:l});const u=[];let c=!1;const f={_features:n,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const d=au(h,i.options);i.options=o(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,v)=>{var p;return(p=i.options.getRowId==null?void 0:i.options.getRowId(h,d,v))!=null?p:`${v?[v.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let v=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:yt(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:v=>{const p=v.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:v=>{var p,m;return(p=(m=v.renderValue())==null||m.toString==null?void 0:m.toString())!=null?p:null},...i._features.reduce((v,p)=>Object.assign(v,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...h}},_t(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:yt(()=>[i._getColumnDefs()],h=>{const d=function(v,p,m){return m===void 0&&(m=0),v.map(y=>{const S=m2e(i,y,m,p),b=y;return S.columns=b.columns?d(b.columns,S,m+1):[],S})};return d(h)},_t(e,"debugColumns")),getAllFlatColumns:yt(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),_t(e,"debugColumns")),_getAllFlatColumnsById:yt(()=>[i.getAllFlatColumns()],h=>h.reduce((d,v)=>(d[v.id]=v,d),{}),_t(e,"debugColumns")),getAllLeafColumns:yt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let v=h.flatMap(p=>p.getLeafColumns());return d(v)},_t(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;h<i._features.length;h++){const d=i._features[h];d==null||d.createTable==null||d.createTable(i)}return i}function J2e(){return e=>yt(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;u<i.length;u++){const c=b9(e,e._getRowId(i[u],u,o),i[u],u,a,void 0,o==null?void 0:o.id);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=n(c.originalSubRows,a+1,c))}}return s};return r.rows=n(t),r},_t(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q2e(){return e=>yt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:eMe(r),_t(e.options,"debugTable"))}function eMe(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function tMe(){return e=>yt(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,r)=>{if(!r.rows.length||!t.length)return r.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),r;const n=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=n.length)return l.map(v=>(v.depth=u,i.push(v),a[v.id]=v,v.subRows&&(v.subRows=o(v.subRows,u+1,v.id)),v));const f=n[u],h=rMe(l,f);return Array.from(h.entries()).map((v,p)=>{let[m,y]=v,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const b=o(y,u+1,S);b.forEach(x=>{x.parentId=S});const w=u?S9(y,x=>x.subRows):y,C=b9(e,S,w[0].original,p,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:m,subRows:b,leafRows:w,getValue:x=>{if(n.includes(x)){if(C._valuesCache.hasOwnProperty(x))return C._valuesCache[x];if(y[0]){var A;C._valuesCache[x]=(A=y[0].getValue(x))!=null?A:void 0}return C._valuesCache[x]}if(C._groupingValuesCache.hasOwnProperty(x))return C._groupingValuesCache[x];const D=e.getColumn(x),M=D==null?void 0:D.getAggregationFn();if(M)return C._groupingValuesCache[x]=M(x,w,y),C._groupingValuesCache[x]}}),b.forEach(x=>{i.push(x),a[x.id]=x}),C})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},_t(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function rMe(e,t){const r=new Map;return e.reduce((n,i)=>{const a=`${i.getGroupingValue(t)}`,o=n.get(a);return o?o.push(i):n.set(a,[i]),n},r)}function nMe(){return e=>yt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],a=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let d=0;d<a.length;d+=1){var h;const v=a[d],p=o[v.id],m=p.sortUndefined,y=(h=v==null?void 0:v.desc)!=null?h:!1;let S=0;if(m){const b=c.getValue(v.id),w=f.getValue(v.id),C=b===void 0,x=w===void 0;if(C||x){if(m==="first")return C?-1:1;if(m==="last")return C?1:-1;S=C&&x?0:C?m:-m}}if(S===0&&(S=p.sortingFn(c,f,v.id)),S!==0)return y&&(S*=-1),p.invertSorting&&(S*=-1),S}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},_t(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
|
||
* vue-table
|
||
*
|
||
* Copyright (c) TanStack
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function G0(){return!0}const iMe=Symbol("merge-proxy"),aMe={get(e,t,r){return t===iMe?r:e.get(t)},has(e,t){return e.has(t)},set:G0,deleteProperty:G0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:G0,deleteProperty:G0}},ownKeys(e){return e.keys()}};function $T(e){return"value"in e?e.value:e}function vp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Proxy({get(n){for(let i=t.length-1;i>=0;i--){const a=$T(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in $T(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i<t.length;i++)n.push(...Object.keys($T(t[i])));return[...Array.from(new Set(n))]}},aMe)}const $0=qt({props:["render","props"],setup:e=>()=>typeof e.render=="function"||typeof e.render=="object"?Wo(e.render,e.props):e.render});function l4(e){return vp(e,{data:q(e.data)})}function oMe(e){const t=vt(e.data),r=vp({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:vp(a,o)}},t?l4(e):e),n=K2e(r);if(t){const a=bS(e.data);Sr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=Ye(n.initialState);return oM(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return vp(a,t?l4(e):e,{state:vp(s,(o=e.state)!=null?o:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),n}const sMe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},lMe={class:"bg-base-100"},uMe=["colSpan","onClick"],cMe={class:"flex items-center gap-1"},fMe=["onClick"],hMe=["onClick"],dMe={key:0},vMe=qt({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=Cf(),i=[{header:()=>n("details"),enableSorting:!1,id:or.Details,cell:({row:u})=>Wo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[Wo(t$,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:or.Close,cell:({row:u})=>Wo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;ES(c.id)}},[Wo(SM,{class:"h-4 w-4"})])},{header:()=>n("type"),id:or.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:or.Process,accessorFn:u=>XG(u)},{header:()=>n("host"),id:or.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:or.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:or.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:or.ConnectTime,accessorFn:u=>OS(u.start),sortingFn:(u,c)=>hu(u.original.start).valueOf()-hu(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:or.DlSpeed,accessorFn:u=>`${Wr(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:or.UlSpeed,accessorFn:u=>`${Wr(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:or.Download,accessorFn:u=>Wr(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:or.Upload,accessorFn:u=>Wr(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:or.SourceIP,accessorFn:u=>yM(u.metadata.sourceIP)},{header:()=>n("sourcePort"),id:or.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:or.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=Ye([]),o=Ye({}),s=Or("config/table-sorting",[]),l=oMe({get data(){return a1.value},columns:i,state:{get columnOrder(){return Mc.value},get columnVisibility(){return{...Object.fromEntries(Object.values(or).map(u=>[u,!1])),...Object.fromEntries(Mc.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{cf(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{cf(u)&&(o.value=u(o.value))},onSortingChange:u=>{cf(u)?s.value=u(s.value):s.value=u},getSortedRowModel:nMe(),getGroupedRowModel:tMe(),getExpandedRowModel:Q2e(),getCoreRowModel:J2e()});return(u,c)=>(oe(),ve("table",sMe,[X("thead",lMe,[(oe(!0),ve(it,null,lr(q(l).getHeaderGroups(),f=>(oe(),ve("tr",{key:f.id},[(oe(!0),ve(it,null,lr(f.headers,h=>(oe(),ve("th",{key:h.id,colSpan:h.colSpan,class:Tt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:d=>{var v;return(v=h.column.getToggleSortingHandler())==null?void 0:v(d)}},[X("div",cMe,[h.column.getCanGroup()?(oe(),ve("button",{key:0,class:"cursor-pointer",onClick:uM(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(oe(),er(q(wk),{key:0,class:"h-4 w-4"})):(oe(),er(q(xk),{key:1,class:"h-4 w-4"}))],8,fMe)):Ut("",!0),h.isPlaceholder?Ut("",!0):(oe(),er(q($0),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(oe(),er(q(jG),{key:2,class:"h-4 w-4"})):Ut("",!0),h.column.getIsSorted()==="desc"?(oe(),er(q(ZG),{key:3,class:"h-4 w-4"})):Ut("",!0)])],10,uMe))),128))]))),128))]),X("tbody",null,[(oe(!0),ve(it,null,lr(q(l).getRowModel().rows,f=>(oe(),ve("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(oe(!0),ve(it,null,lr(f.getVisibleCells(),h=>(oe(),ve("td",{key:h.id,class:"text-sm"},[X("div",{class:Tt(q(Tr)("flex items-center gap-2 whitespace-nowrap",[q(or).Download,q(or).DlSpeed,q(or).Upload,q(or).UlSpeed].includes(h.column.id)&&"w-14",[q(or).Host].includes(h.column.id)&&"max-w-[32rem] truncate"))},[h.column.getIsGrouped()?(oe(),ve(it,{key:0},[f.getCanExpand()?(oe(),ve(it,{key:0},[X("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(oe(),er(q(wk),{key:0,class:"h-4 w-4"})):(oe(),er(q(xk),{key:1,class:"h-4 w-4"}))],8,hMe),ze(q($0),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(oe(),ve("div",dMe,"("+Ie(f.subRows.length)+")",1)):Ut("",!0)],64)):Ut("",!0)],64)):h.getIsAggregated()?(oe(),er(q($0),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?Ut("",!0):(oe(),er(q($0),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var aS={d:(e,t)=>{for(var r in t)aS.o(t,r)&&!aS.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},P9={};function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E9(e,t){if(e){if(typeof e=="string")return P2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P2(e,t):void 0}}function oS(e){return function(t){if(Array.isArray(t))return P2(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||E9(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}aS.d(P9,{Z:()=>_Me});const ct=(u4={computed:()=>at,createTextVNode:()=>Xt,createVNode:()=>ze,defineComponent:()=>qt,reactive:()=>Du,ref:()=>Ye,watch:()=>Sr,watchEffect:()=>oM},HT={},aS.d(HT,u4),HT),pMe=(0,ct.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,ct.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),gMe=(0,ct.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var r=t.emit;return{uiType:(0,ct.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,ct.computed)({get:function(){return e.checked},set:function(n){return r("update:modelValue",n)}})}},render:function(){var e=this.uiType,t=this.model,r=this.$emit;return(0,ct.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,ct.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,ct.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),mMe=(0,ct.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,r=e==="objectStart"||e==="arrayStart";return r||e==="objectCollapsed"||e==="arrayCollapsed"?(0,ct.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,ct.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,ct.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var u4,HT;function E2(e){return E2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E2(e)}function R9(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,i=n||{},a=i.key,o=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,h=f===void 0?1:f,d=R9(e);if(d==="array"){var v=c4(e.map(function(y,S,b){return Tc(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==b.length-1,length:h,type:l})}));return[Tc("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(v,Tc("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var p=Object.keys(e),m=c4(p.map(function(y,S,b){return Tc(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==b.length-1,length:h,type:l})}));return[Tc("{",t,r,{showComma:!1,key:a,index:o,length:p.length,type:"objectStart"})[0]].concat(m,Tc("}",t,r,{showComma:c,length:p.length,type:"objectEnd"})[0])}return[{content:e,level:r,key:a,index:o,path:t,showComma:c,length:h,type:l}]}function c4(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=oS(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,oS(n)):r.push(n)}return r}function R2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(E2(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return R2(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=R2(e[i],t);return t.set(e,n),n}function f4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f4(Object(r),!0).forEach(function(n){sS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var k9={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const yMe=(0,ct.defineComponent)({name:"TreeNode",props:h4(h4({},k9),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var r=t.emit,n=(0,ct.computed)(function(){return R9(e.node.content)}),i=(0,ct.computed)(function(){return"vjs-value vjs-value-".concat(n.value)}),a=(0,ct.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),o=(0,ct.computed)(function(){return e.selectableType==="multiple"}),s=(0,ct.computed)(function(){return e.selectableType==="single"}),l=(0,ct.computed)(function(){return e.nodeSelectable(e.node)&&(o.value||s.value)}),u=(0,ct.reactive)({editing:!1}),c=function(S){var b,w,C=(w=(b=S.target)===null||b===void 0?void 0:b.value)==="null"?null:w==="undefined"?void 0:w==="true"||w!=="false"&&(w[0]+w[w.length-1]==='""'||w[0]+w[w.length-1]==="''"?w.slice(1,-1):typeof Number(w)=="number"&&!isNaN(Number(w))||w==="NaN"?Number(w):w);r("valueChange",C,e.node.path)},f=(0,ct.computed)(function(){var S,b=(S=e.node)===null||S===void 0?void 0:S.content;return b===null?b="null":b===void 0&&(b="undefined"),n.value==="string"?'"'.concat(b,'"'):b+""}),h=function(){var S=e.renderNodeValue;return S?S({node:e.node,defaultValue:f.value}):f.value},d=function(){r("bracketsClick",!e.collapsed,e.node)},v=function(){r("iconClick",!e.collapsed,e.node)},p=function(){r("selectedChange",e.node)},m=function(){r("nodeClick",e.node),l.value&&e.selectOnClickNode&&r("selectedChange",e.node)},y=function(S){if(e.editable&&!u.editing){u.editing=!0;var b=function w(C){var x;C.target!==S.target&&((x=C.target)===null||x===void 0?void 0:x.parentElement)!==S.target&&(u.editing=!1,document.removeEventListener("click",w))};document.removeEventListener("click",b),document.addEventListener("click",b)}};return function(){var S,b=e.node;return(0,ct.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:m,style:e.style},[e.showLineNumber&&(0,ct.createVNode)("span",{class:"vjs-node-index"},[b.id+1]),e.showSelectController&&l.value&&b.type!=="objectEnd"&&b.type!=="arrayEnd"&&(0,ct.createVNode)(gMe,{isMultiple:o.value,checked:e.checked,onChange:p},null),(0,ct.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(b.level)).map(function(w,C){return(0,ct.createVNode)("div",{key:C,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,ct.createVNode)(mMe,{nodeType:b.type,onClick:v},null)]),b.key&&(0,ct.createVNode)("span",{class:"vjs-key"},[(S=e.renderNodeKey,S?S({node:e.node,defaultKey:a.value||""}):a.value),(0,ct.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,ct.createVNode)("span",null,[b.type!=="content"&&b.content?(0,ct.createVNode)(pMe,{data:b.content.toString(),onClick:d},null):(0,ct.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&u.editing?(0,ct.createVNode)("input",{value:f.value,onChange:c,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):h()]),b.showComma&&(0,ct.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,ct.createVNode)("span",{class:"vjs-comment"},[(0,ct.createTextVNode)(" // "),b.length,(0,ct.createTextVNode)(" items ")])])])}}});function d4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d4(Object(r),!0).forEach(function(n){sS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const _Me=(0,ct.defineComponent)({name:"Tree",props:Qi(Qi({},k9),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var r=t.emit,n=t.slots,i=(0,ct.ref)(),a=(0,ct.computed)(function(){return Tc(e.data,e.rootPath)}),o=function(b,w){return a.value.reduce(function(C,x){var A,D=x.level>=b||x.length>=w,M=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,x);return x.type!=="objectStart"&&x.type!=="arrayStart"||!D&&!M?C:Qi(Qi({},C),{},sS({},x.path,1))},{})},s=(0,ct.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,ct.computed)(function(){for(var b=null,w=[],C=a.value.length,x=0;x<C;x++){var A=Qi(Qi({},a.value[x]),{},{id:x}),D=s.hiddenPaths[A.path];if(b&&b.path===A.path){var M=b.type==="objectStart",I=Qi(Qi(Qi({},A),b),{},{showComma:A.showComma,content:M?"{...}":"[...]",type:M?"objectCollapsed":"arrayCollapsed"});b=null,w.push(I)}else{if(D&&!b){b=A;continue}if(b)continue;w.push(A)}}return w}),u=(0,ct.computed)(function(){var b=e.selectedValue;return b&&e.selectableType==="multiple"&&Array.isArray(b)?b:[b]}),c=(0,ct.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),f=function(){var b=l.value;if(e.virtual){var w,C=e.height/e.itemHeight,x=((w=i.value)===null||w===void 0?void 0:w.scrollTop)||0,A=Math.floor(x/e.itemHeight),D=A<0?0:A+C>b.length?b.length-C:A;D<0&&(D=0);var M=D+C;s.translateY=D*e.itemHeight,s.visibleData=b.filter(function(I,P){return P>=D&&P<M})}else s.visibleData=b},h=function(){f()},d=function(b){var w,C,x=b.path,A=e.selectableType;if(A==="multiple"){var D=u.value.findIndex(function(R){return R===x}),M=oS(u.value);D!==-1?M.splice(D,1):M.push(x),r("update:selectedValue",M),r("selectedChange",M,oS(u.value))}else if(A==="single"&&u.value[0]!==x){var I=(w=u.value,C=1,function(R){if(Array.isArray(R))return R}(w)||function(R,N){var O=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(O!=null){var F,B,W=[],z=!0,j=!1;try{for(O=O.call(R);!(z=(F=O.next()).done)&&(W.push(F.value),!N||W.length!==N);z=!0);}catch(ee){j=!0,B=ee}finally{try{z||O.return==null||O.return()}finally{if(j)throw B}}return W}}(w,C)||E9(w,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],P=x;r("update:selectedValue",P),r("selectedChange",P,I)}},v=function(b){r("nodeClick",b)},p=function(b,w){if(b)s.hiddenPaths=Qi(Qi({},s.hiddenPaths),{},sS({},w,1));else{var C=Qi({},s.hiddenPaths);delete C[w],s.hiddenPaths=C}},m=function(b,w){e.collapsedOnClickBrackets&&p(b,w.path),r("bracketsClick",b,w)},y=function(b,w){p(b,w.path),r("iconClick",b,w)},S=function(b,w){var C=R2(e.data),x=e.rootPath;new Function("data","val","data".concat(w.slice(x.length),"=val"))(C,b),r("update:data",C)};return(0,ct.watchEffect)(function(){c.value&&function(b){throw new Error("[VueJSONPretty] ".concat(b))}(c.value)}),(0,ct.watchEffect)(function(){l.value&&f()}),(0,ct.watch)(function(){return e.deep},function(b){b&&(s.hiddenPaths=o(b,e.collapsedNodeLength))}),(0,ct.watch)(function(){return e.collapsedNodeLength},function(b){b&&(s.hiddenPaths=o(e.deep,b))}),function(){var b,w,C=(b=e.renderNodeKey)!==null&&b!==void 0?b:n.renderNodeKey,x=(w=e.renderNodeValue)!==null&&w!==void 0?w:n.renderNodeValue,A=s.visibleData&&s.visibleData.map(function(D){return(0,ct.createVNode)(yMe,{key:D.id,node:D,collapsed:!!s.hiddenPaths[D.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:u.value.includes(D.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:C,renderNodeValue:x,onNodeClick:v,onBracketsClick:m,onIconClick:y,onSelectedChange:d,onValueChange:S,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,ct.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?h:void 0,style:e.showLineNumber?Qi({paddingLeft:"".concat(12*Number(a.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,ct.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,ct.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,ct.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[A])])]):A])}}});var SMe=P9.Z;const bMe={class:"h-full overflow-auto p-2"},wMe={key:0,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},xMe={class:"flex flex-col gap-[2px]"},CMe={class:"modal-box"},TMe=qt({__name:"ConnectionsPage",setup(e){const t=Ye(),r=Ye(),n=i=>{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(oe(),ve("div",bMe,[q(Fc)?(oe(),ve(it,{key:0},[q(a1).length?Ut("",!0):(oe(),ve("div",wMe,Ie(i.$t("noContent")),1)),X("div",xMe,[(oe(!0),ve(it,null,lr(q(a1),o=>(oe(),er(q(v2e),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(oe(),er(vMe,{key:1,onInfo:n})),X("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[X("div",CMe,[ze(q(SMe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=X("form",{method:"dialog",class:"modal-backdrop"},[X("button",null,"close")],-1))],512)]))}}),AMe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},DMe={key:0,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},MMe={class:"mx-2 text-primary"},IMe={class:"ml-2"},LMe=qt({__name:"LogsPage",setup(e){const t={[Nc.Error]:"text-error",[Nc.Warning]:"text-warning",[Nc.Info]:"text-info",[Nc.Debug]:"text-accent"},r=at(()=>Qv.value.filter(n=>Xh.value?n.payload.includes(Xh.value)||n.type.includes(Xh.value):!0));return(n,i)=>(oe(),ve("div",AMe,[r.value.length?Ut("",!0):(oe(),ve("div",DMe,Ie(n.$t("noContent")),1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("div",{key:a.seq,class:"card block rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[X("span",null,Ie(a.seq),1),X("span",MMe,Ie(q(hu)(a.time).locale(q(sa)).format("HH:mm:ss")),1),X("span",{class:Tt(t[a.type])},Ie(a.type),3),X("span",IMe,Ie(a.payload),1)]))),128))]))}}),PMe={class:"badge flex w-8 items-center justify-center shadow-sm"},O9=qt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=at(()=>kS(t.name)),n=at(()=>r.value<Zl.value?"text-green-500":r.value<Ns.value?"text-yellow-500":"text-red-500");return(i,a)=>(oe(),ve("div",PMe,[r.value>0?(oe(),ve("div",{key:0,class:Tt(q(Tr)("text-xs",n.value))},Ie(r.value),3)):(oe(),er(q(KG),{key:1,class:"h-4 w-4"}))]))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:N9,setPrototypeOf:v4,isFrozen:EMe,getPrototypeOf:RMe,getOwnPropertyDescriptor:kMe}=Object;let{freeze:Di,seal:Wa,create:F9}=Object,{apply:k2,construct:O2}=typeof Reflect<"u"&&Reflect;Di||(Di=function(t){return t});Wa||(Wa=function(t){return t});k2||(k2=function(t,r,n){return t.apply(r,n)});O2||(O2=function(t,r){return new t(...r)});const H0=va(Array.prototype.forEach),p4=va(Array.prototype.pop),Uv=va(Array.prototype.push),V_=va(String.prototype.toLowerCase),UT=va(String.prototype.toString),g4=va(String.prototype.match),Wv=va(String.prototype.replace),OMe=va(String.prototype.indexOf),NMe=va(String.prototype.trim),oo=va(Object.prototype.hasOwnProperty),ci=va(RegExp.prototype.test),Yv=FMe(TypeError);function va(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k2(e,t,n)}}function FMe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O2(e,r)}}function Kt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V_;v4&&v4(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(EMe(t)||(t[n]=a),i=a)}e[i]=!0}return e}function BMe(e){for(let t=0;t<e.length;t++)oo(e,t)||(e[t]=null);return e}function Ac(e){const t=F9(null);for(const[r,n]of N9(e))oo(e,r)&&(Array.isArray(n)?t[r]=BMe(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ac(n):t[r]=n);return t}function Xv(e,t){for(;e!==null;){const n=kMe(e,t);if(n){if(n.get)return va(n.get);if(typeof n.value=="function")return va(n.value)}e=RMe(e)}function r(){return null}return r}const m4=Di(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),WT=Di(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),YT=Di(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VMe=Di(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),XT=Di(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zMe=Di(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),y4=Di(["#text"]),_4=Di(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ZT=Di(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),S4=Di(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U0=Di(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),GMe=Wa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$Me=Wa(/<%[\w\W]*|[\w\W]*%>/gm),HMe=Wa(/\${[\w\W]*}/gm),UMe=Wa(/^data-[\-\w.\u00B7-\uFFFF]/),WMe=Wa(/^aria-[\-\w]+$/),B9=Wa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),YMe=Wa(/^(?:\w+script|data):/i),XMe=Wa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V9=Wa(/^html$/i),ZMe=Wa(/^[a-z][.\w]*(-[.\w]+)+$/i);var b4=Object.freeze({__proto__:null,ARIA_ATTR:WMe,ATTR_WHITESPACE:XMe,CUSTOM_ELEMENT:ZMe,DATA_ATTR:UMe,DOCTYPE_NAME:V9,ERB_EXPR:$Me,IS_ALLOWED_URI:B9,IS_SCRIPT_OR_DATA:YMe,MUSTACHE_EXPR:GMe,TMPLIT_EXPR:HMe});const Zv={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qMe=function(){return typeof window>"u"?null:window},jMe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},w4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function z9(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qMe();const t=lt=>z9(lt);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==Zv.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,v=l.prototype,p=Xv(v,"cloneNode"),m=Xv(v,"remove"),y=Xv(v,"nextSibling"),S=Xv(v,"childNodes"),b=Xv(v,"parentNode");if(typeof o=="function"){const lt=r.createElement("template");lt.content&<.content.ownerDocument&&(r=lt.content.ownerDocument)}let w,C="";const{implementation:x,createNodeIterator:A,createDocumentFragment:D,getElementsByTagName:M}=r,{importNode:I}=n;let P=w4();t.isSupported=typeof N9=="function"&&typeof b=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:N,TMPLIT_EXPR:O,DATA_ATTR:F,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:j}=b4;let{IS_ALLOWED_URI:ee}=b4,te=null;const me=Kt({},[...m4,...WT,...YT,...XT,...y4]);let Ae=null;const Pe=Kt({},[..._4,...ZT,...S4,...U0]);let Oe=Object.seal(F9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ue=null,se=null,he=!0,pe=!0,ye=!1,xe=!0,ke=!1,H=!0,U=!1,ie=!1,_e=!1,fe=!1,$=!1,Y=!1,re=!0,ue=!1;const Ce="user-content-";let Re=!0,J=!1,ce={},Ge=null;const Qe=Kt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const Ft=Kt({},["audio","video","img","source","image","track"]);let Mr=null;const Vr=Kt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",_n="http://www.w3.org/1999/xhtml";let Wi=_n,an=!1,In=null;const Of=Kt({},[nn,jr,_n],UT);let Nf=Kt({},["mi","mo","mn","ms","mtext"]),Ff=Kt({},["annotation-xml"]);const Cm=Kt({},["title","style","font","a","script"]);let fl=null;const Lb=["application/xhtml+xml","text/html"],Pb="text/html";let vn=null,hl=null;const Tm=r.createElement("form"),Am=function(ne){return ne instanceof RegExp||ne instanceof Function},Hd=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hl&&hl===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Ac(ne),fl=Lb.indexOf(ne.PARSER_MEDIA_TYPE)===-1?Pb:ne.PARSER_MEDIA_TYPE,vn=fl==="application/xhtml+xml"?UT:V_,te=oo(ne,"ALLOWED_TAGS")?Kt({},ne.ALLOWED_TAGS,vn):me,Ae=oo(ne,"ALLOWED_ATTR")?Kt({},ne.ALLOWED_ATTR,vn):Pe,In=oo(ne,"ALLOWED_NAMESPACES")?Kt({},ne.ALLOWED_NAMESPACES,UT):Of,Mr=oo(ne,"ADD_URI_SAFE_ATTR")?Kt(Ac(Vr),ne.ADD_URI_SAFE_ATTR,vn):Vr,It=oo(ne,"ADD_DATA_URI_TAGS")?Kt(Ac(Ft),ne.ADD_DATA_URI_TAGS,vn):Ft,Ge=oo(ne,"FORBID_CONTENTS")?Kt({},ne.FORBID_CONTENTS,vn):Qe,Ue=oo(ne,"FORBID_TAGS")?Kt({},ne.FORBID_TAGS,vn):{},se=oo(ne,"FORBID_ATTR")?Kt({},ne.FORBID_ATTR,vn):{},ce=oo(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,he=ne.ALLOW_ARIA_ATTR!==!1,pe=ne.ALLOW_DATA_ATTR!==!1,ye=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=ne.SAFE_FOR_TEMPLATES||!1,H=ne.SAFE_FOR_XML!==!1,U=ne.WHOLE_DOCUMENT||!1,fe=ne.RETURN_DOM||!1,$=ne.RETURN_DOM_FRAGMENT||!1,Y=ne.RETURN_TRUSTED_TYPE||!1,_e=ne.FORCE_BODY||!1,re=ne.SANITIZE_DOM!==!1,ue=ne.SANITIZE_NAMED_PROPS||!1,Re=ne.KEEP_CONTENT!==!1,J=ne.IN_PLACE||!1,ee=ne.ALLOWED_URI_REGEXP||B9,Wi=ne.NAMESPACE||_n,Nf=ne.MATHML_TEXT_INTEGRATION_POINTS||Nf,Ff=ne.HTML_INTEGRATION_POINTS||Ff,Oe=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&Am(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&Am(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Oe.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(pe=!1),$&&(fe=!0),ce&&(te=Kt({},y4),Ae=[],ce.html===!0&&(Kt(te,m4),Kt(Ae,_4)),ce.svg===!0&&(Kt(te,WT),Kt(Ae,ZT),Kt(Ae,U0)),ce.svgFilters===!0&&(Kt(te,YT),Kt(Ae,ZT),Kt(Ae,U0)),ce.mathMl===!0&&(Kt(te,XT),Kt(Ae,S4),Kt(Ae,U0))),ne.ADD_TAGS&&(te===me&&(te=Ac(te)),Kt(te,ne.ADD_TAGS,vn)),ne.ADD_ATTR&&(Ae===Pe&&(Ae=Ac(Ae)),Kt(Ae,ne.ADD_ATTR,vn)),ne.ADD_URI_SAFE_ATTR&&Kt(Mr,ne.ADD_URI_SAFE_ATTR,vn),ne.FORBID_CONTENTS&&(Ge===Qe&&(Ge=Ac(Ge)),Kt(Ge,ne.FORBID_CONTENTS,vn)),Re&&(te["#text"]=!0),U&&Kt(te,["html","head","body"]),te.table&&(Kt(te,["tbody"]),delete Ue.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ne.TRUSTED_TYPES_POLICY,C=w.createHTML("")}else w===void 0&&(w=jMe(d,i)),w!==null&&typeof C=="string"&&(C=w.createHTML(""));Di&&Di(ne),hl=ne}},Dm=Kt({},[...WT,...YT,...VMe]),Bf=Kt({},[...XT,...zMe]),Eb=function(ne){let Be=b(ne);(!Be||!Be.tagName)&&(Be={namespaceURI:Wi,tagName:"template"});const tt=V_(ne.tagName),br=V_(Be.tagName);return In[ne.namespaceURI]?ne.namespaceURI===jr?Be.namespaceURI===_n?tt==="svg":Be.namespaceURI===nn?tt==="svg"&&(br==="annotation-xml"||Nf[br]):!!Dm[tt]:ne.namespaceURI===nn?Be.namespaceURI===_n?tt==="math":Be.namespaceURI===jr?tt==="math"&&Ff[br]:!!Bf[tt]:ne.namespaceURI===_n?Be.namespaceURI===jr&&!Ff[br]||Be.namespaceURI===nn&&!Nf[br]?!1:!Bf[tt]&&(Cm[tt]||!Dm[tt]):!!(fl==="application/xhtml+xml"&&In[ne.namespaceURI]):!1},Ii=function(ne){Uv(t.removed,{element:ne});try{b(ne).removeChild(ne)}catch{m(ne)}},Vf=function(ne,Be){try{Uv(t.removed,{attribute:Be.getAttributeNode(ne),from:Be})}catch{Uv(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ne),ne==="is")if(fe||$)try{Ii(Be)}catch{}else try{Be.setAttribute(ne,"")}catch{}},Mm=function(ne){let Be=null,tt=null;if(_e)ne="<remove></remove>"+ne;else{const Kr=g4(ne,/^[\r\n\t ]+/);tt=Kr&&Kr[0]}fl==="application/xhtml+xml"&&Wi===_n&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");const br=w?w.createHTML(ne):ne;if(Wi===_n)try{Be=new h().parseFromString(br,fl)}catch{}if(!Be||!Be.documentElement){Be=x.createDocument(Wi,"template",null);try{Be.documentElement.innerHTML=an?C:br}catch{}}const Ln=Be.body||Be.documentElement;return ne&&tt&&Ln.insertBefore(r.createTextNode(tt),Ln.childNodes[0]||null),Wi===_n?M.call(Be,U?"html":"body")[0]:U?Be.documentElement:Ln},Im=function(ne){return A.call(ne.ownerDocument||ne,ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Lm=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof c)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},Pm=function(ne){return typeof s=="function"&&ne instanceof s};function qa(lt,ne,Be){H0(lt,tt=>{tt.call(t,ne,Be,hl)})}const Em=function(ne){let Be=null;if(qa(P.beforeSanitizeElements,ne,null),Lm(ne))return Ii(ne),!0;const tt=vn(ne.nodeName);if(qa(P.uponSanitizeElement,ne,{tagName:tt,allowedTags:te}),ne.hasChildNodes()&&!Pm(ne.firstElementChild)&&ci(/<[/\w]/g,ne.innerHTML)&&ci(/<[/\w]/g,ne.textContent)||ne.nodeType===Zv.progressingInstruction||H&&ne.nodeType===Zv.comment&&ci(/<[/\w]/g,ne.data))return Ii(ne),!0;if(!te[tt]||Ue[tt]){if(!Ue[tt]&&Ud(tt)&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,tt)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(tt)))return!1;if(Re&&!Ge[tt]){const br=b(ne)||ne.parentNode,Ln=S(ne)||ne.childNodes;if(Ln&&br){const Kr=Ln.length;for(let Xn=Kr-1;Xn>=0;--Xn){const pa=p(Ln[Xn],!0);pa.__removalCount=(ne.__removalCount||0)+1,br.insertBefore(pa,y(ne))}}}return Ii(ne),!0}return ne instanceof l&&!Eb(ne)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&ci(/<\/no(script|embed|frames)/i,ne.innerHTML)?(Ii(ne),!0):(ke&&ne.nodeType===Zv.text&&(Be=ne.textContent,H0([R,N,O],br=>{Be=Wv(Be,br," ")}),ne.textContent!==Be&&(Uv(t.removed,{element:ne.cloneNode()}),ne.textContent=Be)),qa(P.afterSanitizeElements,ne,null),!1)},Rm=function(ne,Be,tt){if(re&&(Be==="id"||Be==="name")&&(tt in r||tt in Tm))return!1;if(!(pe&&!se[Be]&&ci(F,Be))){if(!(he&&ci(B,Be))){if(!Ae[Be]||se[Be]){if(!(Ud(ne)&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,ne)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(ne))&&(Oe.attributeNameCheck instanceof RegExp&&ci(Oe.attributeNameCheck,Be)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(Be))||Be==="is"&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,tt)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(tt))))return!1}else if(!Mr[Be]){if(!ci(ee,Wv(tt,z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ne!=="script"&&OMe(tt,"data:")===0&&It[ne])){if(!(ye&&!ci(W,Wv(tt,z,"")))){if(tt)return!1}}}}}}return!0},Ud=function(ne){return ne!=="annotation-xml"&&g4(ne,j)},km=function(ne){qa(P.beforeSanitizeAttributes,ne,null);const{attributes:Be}=ne;if(!Be)return;const tt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let br=Be.length;for(;br--;){const Ln=Be[br],{name:Kr,namespaceURI:Xn,value:pa}=Ln,ku=vn(Kr);let Pn=Kr==="value"?pa:NMe(pa);if(tt.attrName=ku,tt.attrValue=Pn,tt.keepAttr=!0,tt.forceKeepAttr=void 0,qa(P.uponSanitizeAttribute,ne,tt),Pn=tt.attrValue,ue&&(ku==="id"||ku==="name")&&(Vf(Kr,ne),Pn=Ce+Pn),H&&ci(/((--!?|])>)|<\/(style|title)/i,Pn)){Vf(Kr,ne);continue}if(tt.forceKeepAttr||(Vf(Kr,ne),!tt.keepAttr))continue;if(!xe&&ci(/\/>/i,Pn)){Vf(Kr,ne);continue}ke&&H0([R,N,O],Yd=>{Pn=Wv(Pn,Yd," ")});const Wd=vn(ne.nodeName);if(Rm(Wd,ku,Pn)){if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Xn)switch(d.getAttributeType(Wd,ku)){case"TrustedHTML":{Pn=w.createHTML(Pn);break}case"TrustedScriptURL":{Pn=w.createScriptURL(Pn);break}}try{Xn?ne.setAttributeNS(Xn,Kr,Pn):ne.setAttribute(Kr,Pn),Lm(ne)?Ii(ne):p4(t.removed)}catch{}}}qa(P.afterSanitizeAttributes,ne,null)},Rb=function lt(ne){let Be=null;const tt=Im(ne);for(qa(P.beforeSanitizeShadowDOM,ne,null);Be=tt.nextNode();)qa(P.uponSanitizeShadowNode,Be,null),!Em(Be)&&(Be.content instanceof a&<(Be.content),km(Be));qa(P.afterSanitizeShadowDOM,ne,null)};return t.sanitize=function(lt){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,tt=null,br=null,Ln=null;if(an=!lt,an&&(lt="<!-->"),typeof lt!="string"&&!Pm(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw Yv("dirty is not a string, aborting")}else throw Yv("toString is not a function");if(!t.isSupported)return lt;if(ie||Hd(ne),t.removed=[],typeof lt=="string"&&(J=!1),J){if(lt.nodeName){const pa=vn(lt.nodeName);if(!te[pa]||Ue[pa])throw Yv("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof s)Be=Mm("<!---->"),tt=Be.ownerDocument.importNode(lt,!0),tt.nodeType===Zv.element&&tt.nodeName==="BODY"||tt.nodeName==="HTML"?Be=tt:Be.appendChild(tt);else{if(!fe&&!ke&&!U&<.indexOf("<")===-1)return w&&Y?w.createHTML(lt):lt;if(Be=Mm(lt),!Be)return fe?null:Y?C:""}Be&&_e&&Ii(Be.firstChild);const Kr=Im(J?lt:Be);for(;br=Kr.nextNode();)Em(br)||(br.content instanceof a&&Rb(br.content),km(br));if(J)return lt;if(fe){if($)for(Ln=D.call(Be.ownerDocument);Be.firstChild;)Ln.appendChild(Be.firstChild);else Ln=Be;return(Ae.shadowroot||Ae.shadowrootmode)&&(Ln=I.call(n,Ln,!0)),Ln}let Xn=U?Be.outerHTML:Be.innerHTML;return U&&te["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&ci(V9,Be.ownerDocument.doctype.name)&&(Xn="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
|
||
`+Xn),ke&&H0([R,N,O],pa=>{Xn=Wv(Xn,pa," ")}),w&&Y?w.createHTML(Xn):Xn},t.setConfig=function(){let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hd(lt),ie=!0},t.clearConfig=function(){hl=null,ie=!1},t.isValidAttribute=function(lt,ne,Be){hl||Hd({});const tt=vn(lt),br=vn(ne);return Rm(tt,br,Be)},t.addHook=function(lt,ne){typeof ne=="function"&&Uv(P[lt],ne)},t.removeHook=function(lt){return p4(P[lt])},t.removeHooks=function(lt){P[lt]=[]},t.removeAllHooks=function(){P=w4()},t}var KMe=z9();const JMe=["innerHTML"],QMe=["src"],x4="data:image/svg+xml,",eIe=qt({__name:"ProxyIcon",props:{icon:{}},setup(e){const t=e,r=at(()=>t.icon.startsWith(x4)),n=at(()=>{if(r.value)return KMe.sanitize(t.icon.replace(x4,""))});return(i,a)=>r.value?(oe(),ve("div",{key:0,class:"h-5 w-5 fill-primary",innerHTML:n.value},null,8,JMe)):(oe(),ve("img",{key:1,class:"w-5",src:i.icon},null,8,QMe))}}),tIe=["data-tip"],rIe={class:"flex-1"},nIe=qt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=Ye(),n=Ye(!1);let i=null;const a=()=>{if(r.value){const{scrollWidth:c,clientWidth:f}=r.value;n.value=c>f}};ol(()=>{r.value&&(i=new ResizeObserver(()=>{a()}),i.observe(r.value)),a()}),Zg(()=>{i&&r.value&&i.unobserve(r.value),i=null});const o=at(()=>qs.value[t.name]),s=Ye(!1),l=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),u=async()=>{if(!s.value){s.value=!0;try{await Vie(t.name),s.value=!1}catch{s.value=!1}}};return(c,f)=>(oe(),ve("div",{class:Tt(q(Tr)("flex cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 shadow-md sm:hover:scale-105",c.active&&"bg-primary text-primary-content",q(Ap)&&n.value&&"tooltip text-left")),"data-tip":o.value.name},[X("div",{class:Tt(q(Tr)("flex-1 whitespace-nowrap text-xs md:text-sm",q(Ap)&&"truncate")),ref_key:"nameRef",ref:r},Ie(o.value.name),3),X("div",{class:Tt(q(Tr)("flex items-center text-xs sm:gap-2",q(Jc)?"gap-[2px]":"gap-1"))},[X("div",rIe,[X("span",null,Ie(l(o.value.type)),1),o.value.udp?(oe(),ve(it,{key:0},[X("span",{class:Tt(q(Tr)("hidden sm:hidden",q(Jc)&&"inline"))},":udp",2),X("span",{class:Tt(q(Tr)("hidden sm:inline",!q(Jc)&&"inline"))}," | udp ",2)],64)):Ut("",!0)]),ze(O9,{class:Tt(s.value?"animate-pulse":""),name:o.value.name,onClick:uM(u,["stop"])},null,8,["class","name"])],2)],10,tIe))}}),G9=h$(nIe,[["__scopeId","data-v-09e42248"]]),$9=qt({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=NS();return(r,n)=>(oe(),ve("div",{class:Tt(q(Tr)("grid gap-2",q(Jc)?"grid-cols-2":"grid-cols-1",q(Kc)?q(t)?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-6":q(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 3xl:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5"))},[Yee(r.$slots,"default")],2))}}),iIe={key:0,class:"flex flex-wrap gap-1 pt-2"},aIe={key:0,class:"h-2 w-2 rounded-full bg-white"},oIe={key:1,class:"flex items-center gap-2 py-2"},sIe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},H9=qt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=at(()=>Dp.value===ug.DOTS||Dp.value===ug.AUTO&&t.nodes.length<20),n=at(()=>t.nodes.map(u=>({latency:kS(u),name:u}))),i=u=>u===Ty?"bg-gray-500":u<Zl.value?"bg-green-500":u<Ns.value?"bg-yellow-500":"bg-red-500",a=at(()=>n.value.filter(u=>u.latency<Zl.value&&u.latency>Ty).length),o=at(()=>n.value.filter(u=>u.latency>=Zl.value&&u.latency<Ns.value).length),s=at(()=>n.value.filter(u=>u.latency>=Ns.value).length),l=at(()=>n.value.filter(u=>u.latency===Ty).length);return(u,c)=>r.value?(oe(),ve("div",iIe,[(oe(!0),ve(it,null,lr(n.value,f=>(oe(),ve("div",{key:f.name,class:Tt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",i(f.latency)])},[u.now===f.name?(oe(),ve("div",aIe)):Ut("",!0)],2))),128))])):(oe(),ve("div",oIe,[X("div",sIe,[X("div",{class:Tt(i(q(Zl)-1)),style:kc({width:`${a.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ns)-1)),style:kc({width:`${o.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ns)+1)),style:kc({width:`${s.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ty))),style:kc({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),lIe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},uIe={class:"collapse-title"},cIe={class:"flex items-center gap-2"},fIe={class:"flex items-center gap-1 text-lg font-medium sm:text-xl"},hIe={class:"text-xs"},dIe={key:0,class:"flex hidden items-center gap-2 text-xs sm:flex sm:text-sm"},vIe={class:"text-sm"},pIe={key:0,class:"flex items-center gap-2 text-xs sm:hidden sm:text-sm"},gIe={class:"collapse-content flex flex-col gap-2 max-sm:px-2"},mIe=qt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=at({get(){return e1.value[t.name]},set(u){e1.value[t.name]=u}}),n=Ye(r.value);Sr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=at(()=>qs.value[t.name]),a=at(()=>YG(i.value.all??[])),o=Ye(!1),s=async()=>{if(!o.value){o.value=!0;try{await zie(t.name),o.value=!1}catch{o.value=!1}}},l=at(()=>Yo.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(oe(),ve("div",lIe,[X("div",uIe,[X("div",cIe,[X("div",fIe,[i.value.icon?(oe(),er(eIe,{key:0,icon:i.value.icon},null,8,["icon"])):Ut("",!0),Xt(" "+Ie(i.value.name)+" ",1),X("span",hIe,":: "+Ie(i.value.type),1)]),i.value.now?(oe(),ve("div",dIe," -> "+Ie(i.value.now),1)):Ut("",!0),c[1]||(c[1]=X("div",{class:"flex-1"},null,-1)),X("div",vIe,Ie(q(Wr)(l.value))+"/s",1),ze(O9,{class:Tt(q(Tr)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:uM(s,["stop"])},null,8,["class","name"])]),i.value.now?(oe(),ve("div",pIe," -> "+Ie(i.value.now),1)):Ut("",!0),r.value?Ut("",!0):(oe(),er(H9,{key:1,nodes:a.value,now:i.value.now},null,8,["nodes","now"]))]),Qt(X("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[Ea,r.value]]),X("div",gIe,[n.value?(oe(),er($9,{key:0},{default:ig(()=>[(oe(!0),ve(it,null,lr(a.value,f=>(oe(),er(G9,{key:f,name:f,active:f===i.value.now,onClick:h=>q(Bie)(i.value.name,f)},null,8,["name","active","onClick"]))),128))]),_:1})):Ut("",!0)])]))}}),yIe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},_Ie={class:"collapse-title"},SIe={class:"flex items-center gap-2"},bIe={class:"text-lg font-medium sm:text-xl"},wIe={class:"flex gap-2"},xIe=["value"],CIe={class:"flex gap-4"},TIe={class:"text-sm text-slate-500"},AIe={class:"text-sm text-slate-500"},DIe={class:"text-sm text-slate-500"},MIe={class:"collapse-content flex flex-col gap-2"},IIe=qt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=at({get(){return e1.value[t.name]},set(h){e1.value[t.name]=h}}),n=Ye(r.value);Sr(r,h=>{h?n.value=h:setTimeout(()=>{h===r.value&&(n.value=h)},1e3)});const i=h=>{const{Download:d=0,Upload:v=0,Total:p=0,Expire:m=0}=h,y=Wr(p,{binary:!0}),S=Wr(d+v,{binary:!0}),b=vf.toFinite(((d+v)/p*100).toFixed(2));return{total:y,used:S,percentage:b,expirePrefix:()=>{const{t:x}=Cf();return x("expire")},expireStr:()=>{const{t:x}=Cf();return m===0?x("noExpire"):hu(m*1e3).format("YYYY-MM-DD")}}},a=at(()=>Wh.value.find(h=>h.name===t.name)),o=at(()=>YG(a.value.proxies.map(h=>h.name))),s=at(()=>a.value.subscriptionInfo?i(a.value.subscriptionInfo):null),l=Ye(!1),u=Ye(!1),c=async()=>{if(!u.value){u.value=!0;try{await xie(t.name),await id(),u.value=!1}catch{u.value=!1}}},f=async()=>{if(!l.value){l.value=!0;try{await $G(t.name),await id(),l.value=!1}catch{l.value=!1}}};return(h,d)=>(oe(),ve("div",yIe,[X("div",_Ie,[X("div",SIe,[X("div",bIe,Ie(a.value.name),1),d[1]||(d[1]=X("div",{class:"flex-1"},null,-1)),X("div",wIe,[X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs z-30",u.value?"animate-pulse":"")),onClick:c},[ze(q(KG),{class:"h-4 w-4"})],2),X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs z-30",l.value?"animate-spin":"")),onClick:f},[ze(q(qG),{class:"h-4 w-4"})],2)])]),s.value?(oe(),ve("progress",{key:0,class:"progress",value:s.value.percentage,max:"100"},null,8,xIe)):Ut("",!0),X("div",CIe,[s.value?(oe(),ve(it,{key:0},[X("div",TIe,Ie(s.value.used)+" / "+Ie(s.value.total)+" ( "+Ie(s.value.percentage)+"% ) ",1),X("div",AIe,Ie(s.value.expirePrefix())+": "+Ie(s.value.expireStr()),1)],64)):Ut("",!0),X("div",DIe,Ie(h.$t("updated"))+" "+Ie(q(OS)(a.value.updatedAt)),1)]),r.value?Ut("",!0):(oe(),er(H9,{key:1,nodes:o.value},null,8,["nodes"]))]),Qt(X("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>r.value=v)},null,512),[[Ea,r.value]]),X("div",MIe,[n.value?(oe(),er($9,{key:0},{default:ig(()=>[(oe(!0),ve(it,null,lr(o.value,v=>(oe(),er(G9,{key:v,name:v},null,8,["name"]))),128))]),_:1})):Ut("",!0)])]))}}),LIe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},PIe={key:0,class:"grid grid-cols-2 gap-1"},EIe={key:1,class:"grid grid-cols-1 gap-1"},RIe=qt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:r}=NS(),n=at(()=>t.value===hf.PROVIDER?IIe:mIe),i=(a,o)=>a.filter((s,l)=>l%2===o);return(a,o)=>(oe(),ve("div",LIe,[q(WG)&&q(xp)&&q(r).length>1?(oe(),ve("div",PIe,[(oe(),ve(it,null,lr([0,1],s=>X("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(oe(!0),ve(it,null,lr(i(q(r),s),l=>(oe(),er(du(n.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(oe(),ve("div",EIe,[(oe(!0),ve(it,null,lr(q(r),s=>(oe(),er(du(n.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),kIe={class:"card block w-full gap-2 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},OIe={class:"mx-2"},NIe={class:"min-w-32 text-primary"},FIe=qt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(oe(),ve("div",kIe,[X("span",null,Ie(t.rule.type),1),X("span",OIe,Ie(t.rule.payload),1),X("span",NIe,"-> "+Ie(t.rule.proxy),1)]))}}),BIe={class:"card w-full flex-row items-center gap-2 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},VIe={class:"flex flex-1 flex-col sm:flex-row"},zIe={class:"w-48 flex-1 text-primary"},GIe={class:"flex gap-1"},$Ie=qt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Ye(!1),r=e,n=async()=>{t.value||(t.value=!0,await HG(r.ruleProvider.name),s1(),t.value=!1)};return(i,a)=>(oe(),ve("div",BIe,[X("div",VIe,[X("div",zIe,Ie(i.ruleProvider.name)+" ("+Ie(i.ruleProvider.ruleCount)+") ",1),X("div",GIe,[X("span",null,Ie(i.ruleProvider.behavior),1),X("span",null,Ie(i.ruleProvider.vehicleType),1),X("span",null,Ie(i.$t("updated"))+" "+Ie(q(OS)(i.ruleProvider.updatedAt)),1)])]),X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[ze(q(qG),{class:"h-4 w-4"})],2)]))}}),HIe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},UIe=qt({__name:"RulesPage",setup(e){return(t,r)=>(oe(),ve("div",HIe,[q(Lp)===q(nd).PROVIDER?(oe(!0),ve(it,{key:0},lr(q(o1),n=>(oe(),er($Ie,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(oe(!0),ve(it,{key:1},lr(q(S$),n=>(oe(),er(FIe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}}),WIe={class:"flex flex-col gap-2 p-2"},YIe=["onUpdate:modelValue"],XIe=["onClick"],ZIe={class:"flex w-full items-center gap-2"},qIe=qt({__name:"SourceIPLabels",setup(e){const t=at(()=>Object.keys(Ls.value)),r=Du({ip:"",label:""}),n=()=>{Ls.value[r.ip]=r.label,r.ip="",r.label=""},i=a=>{Reflect.deleteProperty(Ls.value,a),Ls.value={...Ls.value}};return(a,o)=>(oe(),ve(it,null,[X("div",null,Ie(a.$t("sourceIPLabels"))+":",1),X("div",WIe,[(oe(!0),ve(it,null,lr(t.value,s=>(oe(),ve("div",{key:s,class:"flex items-center gap-2"},[Xt(Ie(s)+" -> ",1),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-24","onUpdate:modelValue":l=>q(Ls)[s]=l},null,8,YIe),[[oa,q(Ls)[s]]]),X("button",{class:"btn btn-circle btn-xs bg-base-300",onClick:()=>i(s)},[ze(q(r$),{class:"h-4 w-4"})],8,XIe)]))),128)),X("div",ZIe,[o[2]||(o[2]=Xt(" IP: ")),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-44","onUpdate:modelValue":o[0]||(o[0]=s=>r.ip=s)},null,512),[[oa,r.ip]]),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-20","onUpdate:modelValue":o[1]||(o[1]=s=>r.label=s)},null,512),[[oa,r.label]]),X("button",{class:"btn btn-circle btn-xs bg-base-300",onClick:n},[ze(q(a$),{class:"h-4 w-4"})])])])],64))}});var jIe=Object.defineProperty,lS=Object.getOwnPropertySymbols,U9=Object.prototype.hasOwnProperty,W9=Object.prototype.propertyIsEnumerable,C4=(e,t,r)=>t in e?jIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fh=(e,t)=>{for(var r in t||(t={}))U9.call(t,r)&&C4(e,r,t[r]);if(lS)for(var r of lS(t))W9.call(t,r)&&C4(e,r,t[r]);return e},Y9=(e,t)=>{var r={};for(var n in e)U9.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lS)for(var n of lS(e))t.indexOf(n)<0&&W9.call(e,n)&&(r[n]=e[n]);return r};const X9="[vue-draggable-plus]: ";function KIe(e){console.warn(X9+e)}function JIe(e){console.error(X9+e)}function T4(e,t,r){return r>=0&&r<e.length&&e.splice(r,0,e.splice(t,1)[0]),e}function QIe(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function eLe(e){return Object.keys(e).reduce((t,r)=>(typeof e[r]<"u"&&(t[QIe(r)]=e[r]),t),{})}function A4(e,t){return Array.isArray(e)&&e.splice(t,1),e}function D4(e,t,r){return Array.isArray(e)&&e.splice(t,0,r),e}function tLe(e){return typeof e>"u"}function rLe(e){return typeof e=="string"}function M4(e,t,r){const n=e.children[r];e.insertBefore(t,n)}function qT(e){e.parentNode&&e.parentNode.removeChild(e)}function nLe(e,t=document){var r;let n=null;return typeof(t==null?void 0:t.querySelector)=="function"?n=(r=t==null?void 0:t.querySelector)==null?void 0:r.call(t,e):n=document.querySelector(e),n||KIe(`Element not found: ${e}`),n}function iLe(e,t,r=null){return function(...n){return e.apply(r,n),t.apply(r,n)}}function aLe(e,t){const r=Fh({},e);return Object.keys(t).forEach(n=>{r[n]?r[n]=iLe(e[n],t[n]):r[n]=t[n]}),r}function oLe(e){return e instanceof HTMLElement}function I4(e,t){Object.keys(e).forEach(r=>{t(r,e[r])})}function sLe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const lLe=Object.assign;/**!
|
||
* Sortable 1.15.2
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function L4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L4(Object(r),!0).forEach(function(n){uLe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z_(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z_=function(t){return typeof t}:z_=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z_(e)}function uLe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function il(){return il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},il.apply(this,arguments)}function cLe(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function fLe(e,t){if(e==null)return{};var r=cLe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var hLe="1.15.2";function Zs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var cl=Zs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),bm=Zs(/Edge/i),P4=Zs(/firefox/i),Zp=Zs(/safari/i)&&!Zs(/chrome/i)&&!Zs(/android/i),Z9=Zs(/iP(ad|od|hone)/i),q9=Zs(/chrome/i)&&Zs(/android/i),j9={capture:!1,passive:!1};function hr(e,t,r){e.addEventListener(t,r,!cl&&j9)}function ar(e,t,r){e.removeEventListener(t,r,!cl&&j9)}function uS(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function dLe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function lo(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&uS(e,t):uS(e,t))||n&&e===r)return e;if(e===r)break}while(e=dLe(e))}return null}var E4=/\s+/g;function ea(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(E4," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(E4," ")}}function wt(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function ed(e,t){var r="";if(typeof e=="string")r=e;else do{var n=wt(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function K9(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,a=n.length;if(r)for(;i<a;i++)r(n[i],i);return n}return[]}function ts(){var e=document.scrollingElement;return e||document.documentElement}function gn(e,t,r,n,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==ts()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,u=a.right,c=a.height,f=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||r)&&e!==window&&(i=i||e.parentNode,!cl))do if(i&&i.getBoundingClientRect&&(wt(i,"transform")!=="none"||r&&wt(i,"position")!=="static")){var h=i.getBoundingClientRect();o-=h.top+parseInt(wt(i,"border-top-width")),s-=h.left+parseInt(wt(i,"border-left-width")),l=o+a.height,u=s+a.width;break}while(i=i.parentNode);if(n&&e!==window){var d=ed(i||e),v=d&&d.a,p=d&&d.d;d&&(o/=p,s/=v,f/=v,c/=p,l=o+c,u=s+f)}return{top:o,left:s,bottom:l,right:u,width:f,height:c}}}function R4(e,t,r){for(var n=ou(e,!0),i=gn(e)[t];n;){var a=gn(n)[r],o=void 0;if(o=i>=a,!o)return n;if(n===ts())break;n=ou(n,!1)}return!1}function _d(e,t,r,n){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!=="none"&&o[a]!==xt.ghost&&(n||o[a]!==xt.dragged)&&lo(o[a],r.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function UL(e,t){for(var r=e.lastElementChild;r&&(r===xt.ghost||wt(r,"display")==="none"||t&&!uS(r,t));)r=r.previousElementSibling;return r||null}function Pa(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==xt.clone&&(!t||uS(e,t))&&r++;return r}function k4(e){var t=0,r=0,n=ts();if(e)do{var i=ed(e),a=i.a,o=i.d;t+=e.scrollLeft*a,r+=e.scrollTop*o}while(e!==n&&(e=e.parentNode));return[t,r]}function vLe(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[r][n])return Number(r)}return-1}function ou(e,t){if(!e||!e.getBoundingClientRect)return ts();var r=e,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=wt(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return ts();if(n||t)return r;n=!0}}while(r=r.parentNode);return ts()}function pLe(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function jT(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var qp;function J9(e,t){return function(){if(!qp){var r=arguments,n=this;r.length===1?e.call(n,r[0]):e.apply(n,r),qp=setTimeout(function(){qp=void 0},t)}}}function gLe(){clearTimeout(qp),qp=void 0}function Q9(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function eY(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function tY(e,t,r){var n={};return Array.from(e.children).forEach(function(i){var a,o,s,l;if(!(!lo(i,t.draggable,e,!1)||i.animated||i===r)){var u=gn(i);n.left=Math.min((a=n.left)!==null&&a!==void 0?a:1/0,u.left),n.top=Math.min((o=n.top)!==null&&o!==void 0?o:1/0,u.top),n.right=Math.max((s=n.right)!==null&&s!==void 0?s:-1/0,u.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,u.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var ia="Sortable"+new Date().getTime();function mLe(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(n){if(!(wt(n,"display")==="none"||n===xt.ghost)){e.push({target:n,rect:gn(n)});var i=us({},e[e.length-1].rect);if(n.thisAnimationDuration){var a=ed(n,!0);a&&(i.top-=a.f,i.left-=a.e)}n.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(vLe(e,{target:r}),1)},animateAll:function(r){var n=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var i=!1,a=0;e.forEach(function(o){var s=0,l=o.target,u=l.fromRect,c=gn(l),f=l.prevFromRect,h=l.prevToRect,d=o.rect,v=ed(l,!0);v&&(c.top-=v.f,c.left-=v.e),l.toRect=c,l.thisAnimationDuration&&jT(f,c)&&!jT(u,c)&&(d.top-c.top)/(d.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(s=_Le(d,f,h,n.options)),jT(c,u)||(l.prevFromRect=u,l.prevToRect=c,s||(s=n.options.animation),n.animate(l,d,c,s)),s&&(i=!0,a=Math.max(a,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(t),i?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,n,i,a){if(a){wt(r,"transition",""),wt(r,"transform","");var o=ed(this.el),s=o&&o.a,l=o&&o.d,u=(n.left-i.left)/(s||1),c=(n.top-i.top)/(l||1);r.animatingX=!!u,r.animatingY=!!c,wt(r,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=yLe(r),wt(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),wt(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){wt(r,"transition",""),wt(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function yLe(e){return e.offsetWidth}function _Le(e,t,r,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*n.animation}var wh=[],KT={initializeByDefault:!0},wm={mount:function(e){for(var t in KT)KT.hasOwnProperty(t)&&!(t in e)&&(e[t]=KT[t]);wh.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),wh.push(e)},pluginEvent:function(e,t,r){var n=this;this.eventCanceled=!1,r.cancel=function(){n.eventCanceled=!0};var i=e+"Global";wh.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][i]&&t[a.pluginName][i](us({sortable:t},r)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](us({sortable:t},r)))})},initializePlugins:function(e,t,r,n){wh.forEach(function(o){var s=o.pluginName;if(!(!e.options[s]&&!o.initializeByDefault)){var l=new o(e,t,e.options);l.sortable=e,l.options=e.options,e[s]=l,il(r,l.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,t){var r={};return wh.forEach(function(n){typeof n.eventProperties=="function"&&il(r,n.eventProperties.call(t[n.pluginName],e))}),r},modifyOption:function(e,t,r){var n;return wh.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(n=i.optionListeners[t].call(e[i.pluginName],r))}),n}};function SLe(e){var t=e.sortable,r=e.rootEl,n=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,d=e.putSortable,v=e.extraEventProperties;if(t=t||r&&r[ia],!!t){var p,m=t.options,y="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!cl&&!bm?p=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(n,!0,!0)),p.to=o||r,p.from=s||r,p.item=i||r,p.clone=a,p.oldIndex=l,p.newIndex=u,p.oldDraggableIndex=c,p.newDraggableIndex=f,p.originalEvent=h,p.pullMode=d?d.lastPutMode:void 0;var S=us(us({},v),wm.getEventProperties(n,t));for(var b in S)p[b]=S[b];r&&r.dispatchEvent(p),m[y]&&m[y].call(t,p)}}var bLe=["evt"],Ni=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=fLe(r,bLe);wm.pluginEvent.bind(xt)(e,t,us({dragEl:$e,parentEl:Qr,ghostEl:Pt,rootEl:Ur,nextEl:Dc,lastDownEl:G_,cloneEl:Zr,cloneHidden:Yl,dragStarted:pp,putSortable:Gn,activeSortable:xt.active,originalEvent:n,oldIndex:Bh,oldDraggableIndex:jp,newIndex:ra,newDraggableIndex:$l,hideGhostForTarget:aY,unhideGhostForTarget:oY,cloneNowHidden:function(){Yl=!0},cloneNowShown:function(){Yl=!1},dispatchSortableEvent:function(a){di({sortable:t,name:a,originalEvent:n})}},i))};function di(e){SLe(us({putSortable:Gn,cloneEl:Zr,targetEl:$e,rootEl:Ur,oldIndex:Bh,oldDraggableIndex:jp,newIndex:ra,newDraggableIndex:$l},e))}var $e,Qr,Pt,Ur,Dc,G_,Zr,Yl,Bh,ra,jp,$l,W0,Gn,Ph=!1,cS=!1,fS=[],gc,ro,JT,QT,O4,N4,pp,xh,Kp,Jp=!1,Y0=!1,$_,Qn,eA=[],N2=!1,hS=[],Mb=typeof document<"u",X0=Z9,F4=bm||cl?"cssFloat":"float",wLe=Mb&&!q9&&!Z9&&"draggable"in document.createElement("div"),rY=function(){if(Mb){if(cl)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),nY=function(e,t){var r=wt(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=_d(e,0,t),a=_d(e,1,t),o=i&&wt(i),s=a&&wt(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+gn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var c=o.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=n&&r[F4]==="none"||a&&r[F4]==="none"&&l+u>n)?"vertical":"horizontal"},xLe=function(e,t,r){var n=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,o=r?t.left:t.top,s=r?t.right:t.bottom,l=r?t.width:t.height;return n===o||i===s||n+a/2===o+l/2},CLe=function(e,t){var r;return fS.some(function(n){var i=n[ia].options.emptyInsertThreshold;if(!(!i||UL(n))){var a=gn(n),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return r=n}}),r},iY=function(e){function t(i,a){return function(o,s,l,u){var c=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(i==null&&(a||c))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,s,l,u),a)(o,s,l,u);var f=(a?o:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=e.group;(!n||z_(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},aY=function(){!rY&&Pt&&wt(Pt,"display","none")},oY=function(){!rY&&Pt&&wt(Pt,"display","")};Mb&&!q9&&document.addEventListener("click",function(e){if(cS)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),cS=!1,!1},!0);var mc=function(e){if($e){e=e.touches?e.touches[0]:e;var t=CLe(e.clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[ia]._onDragOver(r)}}},TLe=function(e){$e&&$e.parentNode[ia]._isOutsideThisEl(e.target)};function xt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=il({},t),e[ia]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return nY(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:xt.supportPointer!==!1&&"PointerEvent"in window&&!Zp,emptyInsertThreshold:5};wm.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);iY(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:wLe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?hr(e,"pointerdown",this._onTapStart):(hr(e,"mousedown",this._onTapStart),hr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(hr(e,"dragover",this),hr(e,"dragenter",this)),fS.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),il(this,mLe())}xt.prototype={constructor:xt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(xh=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,$e):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=n.filter;if(RLe(r),!$e&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Zp&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=lo(s,n.draggable,r,!1),!(s&&s.animated)&&G_!==s)){if(Bh=Pa(s),jp=Pa(s,n.draggable),typeof u=="function"){if(u.call(this,e,s,this)){di({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),Ni("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=lo(l,c.trim(),r,!1),c)return di({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:r,toEl:r}),Ni("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!lo(l,n.handle,r,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,r){var n=this,i=n.el,a=n.options,o=i.ownerDocument,s;if(r&&!$e&&r.parentNode===i){var l=gn(r);if(Ur=i,$e=r,Qr=$e.parentNode,Dc=$e.nextSibling,G_=r,W0=a.group,xt.dragged=$e,gc={target:$e,clientX:(t||e).clientX,clientY:(t||e).clientY},O4=gc.clientX-l.left,N4=gc.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$e.style["will-change"]="all",s=function(){if(Ni("delayEnded",n,{evt:e}),xt.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!P4&&n.nativeDraggable&&($e.draggable=!0),n._triggerDragStart(e,t),di({sortable:n,name:"choose",originalEvent:e}),ea($e,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){K9($e,u.trim(),tA)}),hr(o,"dragover",mc),hr(o,"mousemove",mc),hr(o,"touchmove",mc),hr(o,"mouseup",n._onDrop),hr(o,"touchend",n._onDrop),hr(o,"touchcancel",n._onDrop),P4&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$e.draggable=!0),Ni("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(bm||cl))){if(xt.eventCanceled){this._onDrop();return}hr(o,"mouseup",n._disableDelayedDrag),hr(o,"touchend",n._disableDelayedDrag),hr(o,"touchcancel",n._disableDelayedDrag),hr(o,"mousemove",n._delayedDragTouchMoveHandler),hr(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&hr(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$e&&tA($e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ar(e,"mouseup",this._disableDelayedDrag),ar(e,"touchend",this._disableDelayedDrag),ar(e,"touchcancel",this._disableDelayedDrag),ar(e,"mousemove",this._delayedDragTouchMoveHandler),ar(e,"touchmove",this._delayedDragTouchMoveHandler),ar(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?hr(document,"pointermove",this._onTouchMove):t?hr(document,"touchmove",this._onTouchMove):hr(document,"mousemove",this._onTouchMove):(hr($e,"dragend",this),hr(Ur,"dragstart",this._onDragStart));try{document.selection?H_(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ph=!1,Ur&&$e){Ni("dragStarted",this,{evt:t}),this.nativeDraggable&&hr(document,"dragover",TLe);var r=this.options;!e&&ea($e,r.dragClass,!1),ea($e,r.ghostClass,!0),xt.active=this,e&&this._appendGhost(),di({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ro){this._lastX=ro.clientX,this._lastY=ro.clientY,aY();for(var e=document.elementFromPoint(ro.clientX,ro.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ro.clientX,ro.clientY),e!==t);)t=e;if($e.parentNode[ia]._isOutsideThisEl(e),t)do{if(t[ia]){var r=void 0;if(r=t[ia]._onDragOver({clientX:ro.clientX,clientY:ro.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);oY()}},_onTouchMove:function(e){if(gc){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Pt&&ed(Pt,!0),o=Pt&&a&&a.a,s=Pt&&a&&a.d,l=X0&&Qn&&k4(Qn),u=(i.clientX-gc.clientX+n.x)/(o||1)+(l?l[0]-eA[0]:0)/(o||1),c=(i.clientY-gc.clientY+n.y)/(s||1)+(l?l[1]-eA[1]:0)/(s||1);if(!xt.active&&!Ph){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(Pt){a?(a.e+=u-(JT||0),a.f+=c-(QT||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");wt(Pt,"webkitTransform",f),wt(Pt,"mozTransform",f),wt(Pt,"msTransform",f),wt(Pt,"transform",f),JT=u,QT=c,ro=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Pt){var e=this.options.fallbackOnBody?document.body:Ur,t=gn($e,!0,X0,!0,e),r=this.options;if(X0){for(Qn=e;wt(Qn,"position")==="static"&&wt(Qn,"transform")==="none"&&Qn!==document;)Qn=Qn.parentNode;Qn!==document.body&&Qn!==document.documentElement?(Qn===document&&(Qn=ts()),t.top+=Qn.scrollTop,t.left+=Qn.scrollLeft):Qn=ts(),eA=k4(Qn)}Pt=$e.cloneNode(!0),ea(Pt,r.ghostClass,!1),ea(Pt,r.fallbackClass,!0),ea(Pt,r.dragClass,!0),wt(Pt,"transition",""),wt(Pt,"transform",""),wt(Pt,"box-sizing","border-box"),wt(Pt,"margin",0),wt(Pt,"top",t.top),wt(Pt,"left",t.left),wt(Pt,"width",t.width),wt(Pt,"height",t.height),wt(Pt,"opacity","0.8"),wt(Pt,"position",X0?"absolute":"fixed"),wt(Pt,"zIndex","100000"),wt(Pt,"pointerEvents","none"),xt.ghost=Pt,e.appendChild(Pt),wt(Pt,"transform-origin",O4/parseInt(Pt.style.width)*100+"% "+N4/parseInt(Pt.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,n=e.dataTransfer,i=r.options;if(Ni("dragStart",this,{evt:e}),xt.eventCanceled){this._onDrop();return}Ni("setupClone",this),xt.eventCanceled||(Zr=eY($e),Zr.removeAttribute("id"),Zr.draggable=!1,Zr.style["will-change"]="",this._hideClone(),ea(Zr,this.options.chosenClass,!1),xt.clone=Zr),r.cloneId=H_(function(){Ni("clone",r),!xt.eventCanceled&&(r.options.removeCloneOnHide||Ur.insertBefore(Zr,$e),r._hideClone(),di({sortable:r,name:"clone"}))}),!t&&ea($e,i.dragClass,!0),t?(cS=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ar(document,"mouseup",r._onDrop),ar(document,"touchend",r._onDrop),ar(document,"touchcancel",r._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(r,n,$e)),hr(document,"drop",r),wt($e,"transform","translateZ(0)")),Ph=!0,r._dragStartId=H_(r._dragStarted.bind(r,t,e)),hr(document,"selectstart",r),pp=!0,Zp&&wt(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,n,i,a,o=this.options,s=o.group,l=xt.active,u=W0===s,c=o.sort,f=Gn||l,h,d=this,v=!1;if(N2)return;function p(W,z){Ni(W,d,us({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:a,dragRect:n,targetRect:i,canSort:c,fromSortable:f,target:r,completed:y,onMove:function(j,ee){return Z0(Ur,t,$e,n,j,gn(j),e,ee)},changed:S},z))}function m(){p("dragOverAnimationCapture"),d.captureAnimationState(),d!==f&&f.captureAnimationState()}function y(W){return p("dragOverCompleted",{insertion:W}),W&&(u?l._hideClone():l._showClone(d),d!==f&&(ea($e,Gn?Gn.options.ghostClass:l.options.ghostClass,!1),ea($e,o.ghostClass,!0)),Gn!==d&&d!==xt.active?Gn=d:d===xt.active&&Gn&&(Gn=null),f===d&&(d._ignoreWhileAnimating=r),d.animateAll(function(){p("dragOverAnimationComplete"),d._ignoreWhileAnimating=null}),d!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===$e&&!$e.animated||r===t&&!r.animated)&&(xh=null),!o.dragoverBubble&&!e.rootEl&&r!==document&&($e.parentNode[ia]._isOutsideThisEl(e.target),!W&&mc(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function S(){ra=Pa($e),$l=Pa($e,o.draggable),di({sortable:d,name:"change",toEl:t,newIndex:ra,newDraggableIndex:$l,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=lo(r,o.draggable,t,!0),p("dragOver"),xt.eventCanceled)return v;if($e.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||d._ignoreWhileAnimating===r)return y(!1);if(cS=!1,l&&!o.disabled&&(u?c||(a=Qr!==Ur):Gn===this||(this.lastPutMode=W0.checkPull(this,l,$e,e))&&s.checkPut(this,l,$e,e))){if(h=this._getDirection(e,r)==="vertical",n=gn($e),p("dragOverValid"),xt.eventCanceled)return v;if(a)return Qr=Ur,m(),this._hideClone(),p("revert"),xt.eventCanceled||(Dc?Ur.insertBefore($e,Dc):Ur.appendChild($e)),y(!0);var b=UL(t,o.draggable);if(!b||ILe(e,h,this)&&!b.animated){if(b===$e)return y(!1);if(b&&t===e.target&&(r=b),r&&(i=gn(r)),Z0(Ur,t,$e,n,r,i,e,!!r)!==!1)return m(),b&&b.nextSibling?t.insertBefore($e,b.nextSibling):t.appendChild($e),Qr=t,S(),y(!0)}else if(b&&MLe(e,h,this)){var w=_d(t,0,o,!0);if(w===$e)return y(!1);if(r=w,i=gn(r),Z0(Ur,t,$e,n,r,i,e,!1)!==!1)return m(),t.insertBefore($e,w),Qr=t,S(),y(!0)}else if(r.parentNode===t){i=gn(r);var C=0,x,A=$e.parentNode!==t,D=!xLe($e.animated&&$e.toRect||n,r.animated&&r.toRect||i,h),M=h?"top":"left",I=R4(r,"top","top")||R4($e,"top","top"),P=I?I.scrollTop:void 0;xh!==r&&(x=i[M],Jp=!1,Y0=!D&&o.invertSwap||A),C=LLe(e,r,i,h,D?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Y0,xh===r);var R;if(C!==0){var N=Pa($e);do N-=C,R=Qr.children[N];while(R&&(wt(R,"display")==="none"||R===Pt))}if(C===0||R===r)return y(!1);xh=r,Kp=C;var O=r.nextElementSibling,F=!1;F=C===1;var B=Z0(Ur,t,$e,n,r,i,e,F);if(B!==!1)return(B===1||B===-1)&&(F=B===1),N2=!0,setTimeout(DLe,30),m(),F&&!O?t.appendChild($e):r.parentNode.insertBefore($e,F?O:r),I&&Q9(I,0,P-I.scrollTop),Qr=$e.parentNode,x!==void 0&&!Y0&&($_=Math.abs(x-gn(r)[M])),S(),y(!0)}if(t.contains($e))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ar(document,"mousemove",this._onTouchMove),ar(document,"touchmove",this._onTouchMove),ar(document,"pointermove",this._onTouchMove),ar(document,"dragover",mc),ar(document,"mousemove",mc),ar(document,"touchmove",mc)},_offUpEvents:function(){var e=this.el.ownerDocument;ar(e,"mouseup",this._onDrop),ar(e,"touchend",this._onDrop),ar(e,"pointerup",this._onDrop),ar(e,"touchcancel",this._onDrop),ar(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(ra=Pa($e),$l=Pa($e,r.draggable),Ni("drop",this,{evt:e}),Qr=$e&&$e.parentNode,ra=Pa($e),$l=Pa($e,r.draggable),xt.eventCanceled){this._nulling();return}Ph=!1,Y0=!1,Jp=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),F2(this.cloneId),F2(this._dragStartId),this.nativeDraggable&&(ar(document,"drop",this),ar(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Zp&&wt(document.body,"user-select",""),wt($e,"transform",""),e&&(pp&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),(Ur===Qr||Gn&&Gn.lastPutMode!=="clone")&&Zr&&Zr.parentNode&&Zr.parentNode.removeChild(Zr),$e&&(this.nativeDraggable&&ar($e,"dragend",this),tA($e),$e.style["will-change"]="",pp&&!Ph&&ea($e,Gn?Gn.options.ghostClass:this.options.ghostClass,!1),ea($e,this.options.chosenClass,!1),di({sortable:this,name:"unchoose",toEl:Qr,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ur!==Qr?(ra>=0&&(di({rootEl:Qr,name:"add",toEl:Qr,fromEl:Ur,originalEvent:e}),di({sortable:this,name:"remove",toEl:Qr,originalEvent:e}),di({rootEl:Qr,name:"sort",toEl:Qr,fromEl:Ur,originalEvent:e}),di({sortable:this,name:"sort",toEl:Qr,originalEvent:e})),Gn&&Gn.save()):ra!==Bh&&ra>=0&&(di({sortable:this,name:"update",toEl:Qr,originalEvent:e}),di({sortable:this,name:"sort",toEl:Qr,originalEvent:e})),xt.active&&((ra==null||ra===-1)&&(ra=Bh,$l=jp),di({sortable:this,name:"end",toEl:Qr,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ni("nulling",this),Ur=$e=Qr=Pt=Dc=Zr=G_=Yl=gc=ro=pp=ra=$l=Bh=jp=xh=Kp=Gn=W0=xt.dragged=xt.ghost=xt.clone=xt.active=null,hS.forEach(function(e){e.checked=!0}),hS.length=JT=QT=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$e&&(this._onDragOver(e),ALe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,n=0,i=r.length,a=this.options;n<i;n++)t=r[n],lo(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||ELe(t));return e},sort:function(e,t){var r={},n=this.el;this.toArray().forEach(function(i,a){var o=n.children[a];lo(o,this.options.draggable,n,!1)&&(r[i]=o)},this),t&&this.captureAnimationState(),e.forEach(function(i){r[i]&&(n.removeChild(r[i]),n.appendChild(r[i]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return lo(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var n=wm.modifyOption(this,e,t);typeof n<"u"?r[e]=n:r[e]=t,e==="group"&&iY(r)},destroy:function(){Ni("destroy",this);var e=this.el;e[ia]=null,ar(e,"mousedown",this._onTapStart),ar(e,"touchstart",this._onTapStart),ar(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(ar(e,"dragover",this),ar(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fS.splice(fS.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Yl){if(Ni("hideClone",this),xt.eventCanceled)return;wt(Zr,"display","none"),this.options.removeCloneOnHide&&Zr.parentNode&&Zr.parentNode.removeChild(Zr),Yl=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Yl){if(Ni("showClone",this),xt.eventCanceled)return;$e.parentNode==Ur&&!this.options.group.revertClone?Ur.insertBefore(Zr,$e):Dc?Ur.insertBefore(Zr,Dc):Ur.appendChild(Zr),this.options.group.revertClone&&this.animate($e,Zr),wt(Zr,"display",""),Yl=!1}}};function ALe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Z0(e,t,r,n,i,a,o,s){var l,u=e[ia],c=u.options.onMove,f;return window.CustomEvent&&!cl&&!bm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=i||t,l.relatedRect=a||gn(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),c&&(f=c.call(u,l,o)),f}function tA(e){e.draggable=!1}function DLe(){N2=!1}function MLe(e,t,r){var n=gn(_d(r.el,0,r.options,!0)),i=tY(r.el,r.options,Pt),a=10;return t?e.clientX<i.left-a||e.clientY<n.top&&e.clientX<n.right:e.clientY<i.top-a||e.clientY<n.bottom&&e.clientX<n.left}function ILe(e,t,r){var n=gn(UL(r.el,r.options.draggable)),i=tY(r.el,r.options,Pt),a=10;return t?e.clientX>i.right+a||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+a||e.clientX>n.right&&e.clientY>n.top}function LLe(e,t,r,n,i,a,o,s){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o){if(s&&$_<u*i){if(!Jp&&(Kp===1?l>c+u*a/2:l<f-u*a/2)&&(Jp=!0),Jp)h=!0;else if(Kp===1?l<c+$_:l>f-$_)return-Kp}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return PLe(t)}return h=h||o,h&&(l<c+u*a/2||l>f-u*a/2)?l>c+u/2?1:-1:0}function PLe(e){return Pa($e)<Pa(e)?1:-1}function ELe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function RLe(e){hS.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&hS.push(n)}}function H_(e){return setTimeout(e,0)}function F2(e){return clearTimeout(e)}Mb&&hr(document,"touchmove",function(e){(xt.active||Ph)&&e.cancelable&&e.preventDefault()});xt.utils={on:hr,off:ar,css:wt,find:K9,is:function(e,t){return!!lo(e,t,e,!1)},extend:pLe,throttle:J9,closest:lo,toggleClass:ea,clone:eY,index:Pa,nextTick:H_,cancelNextTick:F2,detectDirection:nY,getChild:_d};xt.get=function(e){return e[ia]};xt.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(xt.utils=us(us({},xt.utils),n.utils)),wm.mount(n)})};xt.create=function(e,t){return new xt(e,t)};xt.version=hLe;var pn=[],gp,B2,V2=!1,rA,nA,dS,mp;function kLe(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?hr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?hr(document,"pointermove",this._handleFallbackAutoScroll):r.touches?hr(document,"touchmove",this._handleFallbackAutoScroll):hr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ar(document,"dragover",this._handleAutoScroll):(ar(document,"pointermove",this._handleFallbackAutoScroll),ar(document,"touchmove",this._handleFallbackAutoScroll),ar(document,"mousemove",this._handleFallbackAutoScroll)),B4(),U_(),gLe()},nulling:function(){dS=B2=gp=V2=mp=rA=nA=null,pn.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var n=this,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,a);if(dS=t,r||this.options.forceAutoScrollFallback||bm||cl||Zp){iA(t,this.options,o,r);var s=ou(o,!0);V2&&(!mp||i!==rA||a!==nA)&&(mp&&B4(),mp=setInterval(function(){var l=ou(document.elementFromPoint(i,a),!0);l!==s&&(s=l,U_()),iA(t,n.options,l,r)},10),rA=i,nA=a)}else{if(!this.options.bubbleScroll||ou(o,!0)===ts()){U_();return}iA(t,this.options,ou(o,!1),!1)}}},il(e,{pluginName:"scroll",initializeByDefault:!0})}function U_(){pn.forEach(function(e){clearInterval(e.pid)}),pn=[]}function B4(){clearInterval(mp)}var iA=J9(function(e,t,r,n){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,l=ts(),u=!1,c;B2!==r&&(B2=r,U_(),gp=t.scroll,c=t.scrollFn,gp===!0&&(gp=ou(r,!0)));var f=0,h=gp;do{var d=h,v=gn(d),p=v.top,m=v.bottom,y=v.left,S=v.right,b=v.width,w=v.height,C=void 0,x=void 0,A=d.scrollWidth,D=d.scrollHeight,M=wt(d),I=d.scrollLeft,P=d.scrollTop;d===l?(C=b<A&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),x=w<D&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(C=b<A&&(M.overflowX==="auto"||M.overflowX==="scroll"),x=w<D&&(M.overflowY==="auto"||M.overflowY==="scroll"));var R=C&&(Math.abs(S-i)<=o&&I+b<A)-(Math.abs(y-i)<=o&&!!I),N=x&&(Math.abs(m-a)<=o&&P+w<D)-(Math.abs(p-a)<=o&&!!P);if(!pn[f])for(var O=0;O<=f;O++)pn[O]||(pn[O]={});(pn[f].vx!=R||pn[f].vy!=N||pn[f].el!==d)&&(pn[f].el=d,pn[f].vx=R,pn[f].vy=N,clearInterval(pn[f].pid),(R!=0||N!=0)&&(u=!0,pn[f].pid=setInterval((function(){n&&this.layer===0&&xt.active._onTouchMove(dS);var F=pn[this.layer].vy?pn[this.layer].vy*s:0,B=pn[this.layer].vx?pn[this.layer].vx*s:0;typeof c=="function"&&c.call(xt.dragged.parentNode[ia],B,F,e,dS,pn[this.layer].el)!=="continue"||Q9(pn[this.layer].el,B,F)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&h!==l&&(h=ou(h,!1)));V2=u}},30),sY=function(e){var t=e.originalEvent,r=e.putSortable,n=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=r||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:n,putSortable:r}))}};function WL(){}WL.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var n=_d(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:sY};il(WL,{pluginName:"revertOnSpill"});function YL(){}YL.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,n=r||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:sY};il(YL,{pluginName:"removeOnSpill"});xt.mount(new kLe);xt.mount(YL,WL);function OLe(e){return e==null?e:JSON.parse(JSON.stringify(e))}function NLe(e){ns()&&Zg(e)}function FLe(e){ns()?ol(e):Af(e)}let lY=null,uY=null;function V4(e=null,t=null){lY=e,uY=t}function BLe(){return{data:lY,clonedData:uY}}const z4=Symbol("cloneElement");function VLe(...e){var t,r;const n=(t=ns())==null?void 0:t.proxy;let i=null;const a=e[0];let[,o,s]=e;Array.isArray(q(o))||(s=o,o=null);let l=null;const{immediate:u=!0,clone:c=OLe,customUpdate:f}=(r=q(s))!=null?r:{};function h(D){var M;const{from:I,oldIndex:P,item:R}=D;i=Array.from(I.childNodes);const N=q((M=q(o))==null?void 0:M[P]),O=c(N);V4(N,O),R[z4]=O}function d(D){const M=D.item[z4];if(!tLe(M)){if(qT(D.item),vt(o)){const I=[...q(o)];o.value=D4(I,D.newDraggableIndex,M);return}D4(q(o),D.newDraggableIndex,M)}}function v(D){const{from:M,item:I,oldIndex:P,oldDraggableIndex:R,pullMode:N,clone:O}=D;if(M4(M,I,P),N==="clone"){qT(O);return}if(vt(o)){const F=[...q(o)];o.value=A4(F,R);return}A4(q(o),R)}function p(D){if(f){f(D);return}const{from:M,item:I,oldIndex:P,oldDraggableIndex:R,newDraggableIndex:N}=D;if(qT(I),M4(M,I,P),vt(o)){const O=[...q(o)];o.value=T4(O,R,N);return}T4(q(o),R,N)}function m(D){const{newIndex:M,oldIndex:I,from:P,to:R}=D;let N=null;const O=M===I&&P===R;try{if(O){let F=null;i==null||i.some((B,W)=>{if(F&&(i==null?void 0:i.length)!==R.childNodes.length)return P.insertBefore(F,B.nextSibling),!0;const z=R.childNodes[W];F=R==null?void 0:R.replaceChild(B,z)})}}catch(F){N=F}finally{i=null}Af(()=>{if(V4(),N)throw N})}const y={onUpdate:p,onStart:h,onAdd:d,onRemove:v,onEnd:m};function S(D){const M=q(a);return D||(D=rLe(M)?nLe(M,n==null?void 0:n.$el):M),D&&!oLe(D)&&(D=D.$el),D||JIe("Root element not found"),D}function b(){var D;const M=(D=q(s))!=null?D:{},I=Y9(M,["immediate","clone"]);return I4(I,(P,R)=>{sLe(P)&&(I[P]=(N,...O)=>{const F=BLe();return lLe(N,F),R(N,...O)})}),aLe(o===null?{}:y,I)}const w=D=>{D=S(D),l&&C.destroy(),l=new xt(D,b())};Sr(()=>s,()=>{l&&I4(b(),(D,M)=>{l==null||l.option(D,M)})},{deep:!0});const C={option:(D,M)=>l==null?void 0:l.option(D,M),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},x=()=>C==null?void 0:C.option("disabled",!0),A=()=>C==null?void 0:C.option("disabled",!1);return FLe(()=>{u&&w()}),NLe(C.destroy),Fh({start:w,pause:x,resume:A},C)}const z2=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],zLe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...z2.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],G4=qt({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:zLe,emits:["update:modelValue",...z2],setup(e,{slots:t,emit:r,expose:n,attrs:i}){const a=z2.reduce((c,f)=>{const h=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[h]=(...d)=>r(f,...d),c},{}),o=at(()=>{const c=bee(e),f=Y9(c,["modelValue"]),h=Object.entries(f).reduce((d,[v,p])=>{const m=q(p);return m!==void 0&&(d[v]=m),d},{});return Fh(Fh({},a),eLe(Fh(Fh({},i),h)))}),s=at({get:()=>e.modelValue,set:c=>r("update:modelValue",c)}),l=Ye(),u=Du(VLe(e.target||l,s,o));return n(u),()=>{var c;return Wo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),GLe={class:"flex rounded bg-base-200 lg:flex-col"},$Le=qt({__name:"TableSettings",setup(e){const t=Ye(Object.values(or).filter(r=>!Mc.value.includes(r)));return(r,n)=>(oe(),ve(it,null,[X("div",null,Ie(r.$t("customTableColumns"))+":",1),X("div",GLe,[ze(q(G4),{class:"flex flex-1 flex-col gap-2 bg-base-300 p-2 lg:flex-row",modelValue:q(Mc),"onUpdate:modelValue":n[0]||(n[0]=i=>vt(Mc)?Mc.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:ig(()=>[(oe(!0),ve(it,null,lr(q(Mc),i=>(oe(),ve("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Ie(r.$t(i)),1))),128))]),_:1},8,["modelValue"]),ze(q(G4),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":n[1]||(n[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:ig(()=>[(oe(!0),ve(it,null,lr(t.value,i=>(oe(),ve("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Ie(r.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),HLe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},ULe={class:"card card-compact bg-base-100 shadow-lg"},WLe={class:"card-title px-4 pt-4 text-primary"},YLe={class:"indicator"},XLe={key:0,class:"indicator-item flex"},ZLe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},qLe={class:"card-body gap-4"},jLe={class:"flex items-center gap-2"},KLe=["value"],JLe={class:"flex items-center gap-2"},QLe=["value","label"],ePe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},tPe={class:"card card-compact bg-base-100 shadow-lg"},rPe={class:"card-title px-4 pt-4"},nPe={class:"card-body gap-4"},iPe={key:0,class:"flex items-center gap-2"},aPe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},oPe={class:"card card-compact bg-base-100 shadow-lg"},sPe={class:"card-title px-4 pt-4"},lPe={class:"card-body"},uPe={class:"flex items-center gap-2"},cPe=["value"],fPe={class:"flex items-center gap-2"},hPe={class:"flex items-center gap-2"},dPe={key:0,class:"flex items-center gap-2"},vPe={class:"flex items-center gap-2"},pPe={class:"flex items-center gap-2 sm:hidden"},gPe={class:"flex items-center gap-2"},mPe={class:"shrink-0"},yPe={class:"flex items-center gap-2"},_Pe={class:"shrink-0"},SPe={class:"flex items-center gap-2"},bPe={class:"shrink-0"},wPe={class:"shrink-0"},xPe={class:"card card-compact bg-base-100 shadow-lg"},CPe={class:"card-title px-4 pt-4"},TPe={class:"card-body"},APe={class:"flex items-center gap-2"},DPe={key:0,class:"flex items-center gap-2"},MPe=qt({__name:"SettingsPage",setup(e){const t=Ye(!1),r=async()=>{if(!t.value){t.value=!0;try{await Lie(),t.value=!1}catch{t.value=!1}}},n=Ye(!1),i=Ye(!1),a=async()=>{if(!i.value){i.value=!0;try{await Iie(),i.value=!1}catch{i.value=!1}}};ol(async()=>{n.value=await Oie()});const o=Ye(!1),s=async()=>{if(!o.value){o.value=!0;try{await Mie(),o.value=!1}catch{o.value=!1}}},l=async()=>{var h;await g$({tun:{enable:(h=Xo.value)==null?void 0:h.tun.enable}})},u=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"],c=()=>{const h={};for(const m in localStorage)(m.startsWith("config/")||m.startsWith("setup/"))&&(h[m]=localStorage.getItem(m));const d=new Blob([JSON.stringify(h,null,2)],{type:"application/json"}),v=URL.createObjectURL(d),p=document.createElement("a");p.href=v,p.download="zashboard-settings",p.click(),URL.revokeObjectURL(v)},f=()=>{const h=document.createElement("input");h.type="file",h.accept=".json",h.onchange=async()=>{var p;const d=(p=h.files)==null?void 0:p[0];if(!d)return;const v=new FileReader;v.onload=async()=>{const m=JSON.parse(v.result);for(const y in m)localStorage.setItem(y,m[y]);location.reload()},v.readAsText(d)},h.click()};return(h,d)=>{var v;return oe(),ve("div",HLe,[X("div",ULe,[X("div",WLe,[X("div",YLe,[n.value?(oe(),ve("span",XLe,d[17]||(d[17]=[X("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),X("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):Ut("",!0),X("a",ZLe,"zashboard v"+Ie(q(GG)),1)])]),X("div",qLe,[X("div",jLe,[Xt(Ie(h.$t("theme"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":d[0]||(d[0]=p=>vt(r_)?r_.value=p:null)},[(oe(),ve(it,null,lr(u,p=>X("option",{key:p,value:p},Ie(p),9,KLe)),64))],512),[[po,q(r_)]])]),X("div",JLe,[Xt(Ie(h.$t("language"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":d[1]||(d[1]=p=>vt(sa)?sa.value=p:null),onChange:d[2]||(d[2]=()=>q(Db).global.locale=q(sa))},[(oe(!0),ve(it,null,lr(Object.values(q(So)),p=>(oe(),ve("option",{key:p,value:p,label:h.$t(p)},null,8,QLe))),128))],544),[[po,q(sa)]])]),X("div",ePe,[q(Vc)?Ut("",!0):(oe(),ve(it,{key:0},[X("button",{class:Tt(q(Tr)("btn btn-primary btn-xs sm:btn-sm",i.value?"animate-pulse":"")),onClick:a},Ie(h.$t("upgradeUI")),3),d[18]||(d[18]=X("div",{class:"sm:hidden"},null,-1))],64)),X("button",{class:"btn btn-xs sm:btn-sm",onClick:c},Ie(h.$t("exportSettings")),1),X("button",{class:"btn btn-xs sm:btn-sm",onClick:f},Ie(h.$t("importSettings")),1)])])]),X("div",tPe,[X("div",rPe,Ie(h.$t("backend")),1),X("div",nPe,[ze(w$),!q(Vc)&&((v=q(Xo))!=null&&v.tun)?(oe(),ve("div",iPe,[Xt(Ie(h.$t("tunMode"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[3]||(d[3]=p=>q(Xo).tun.enable=p),onChange:l},null,544),[[Ea,q(Xo).tun.enable]])])):Ut("",!0),X("div",aPe,[q(Vc)?Ut("",!0):(oe(),ve(it,{key:0},[X("button",{class:Tt(q(Tr)("btn btn-primary btn-xs sm:btn-sm",t.value?"animate-pulse":"")),onClick:r},Ie(h.$t("upgradeCore")),3),d[19]||(d[19]=X("div",{class:"sm:hidden"},null,-1))],64)),X("button",{class:Tt(q(Tr)("btn btn-xs sm:btn-sm",o.value?"animate-pulse":"")),onClick:s},Ie(h.$t("reloadConfigs")),3),X("button",{class:"btn btn-xs sm:btn-sm",onClick:d[4]||(d[4]=(...p)=>q(yk)&&q(yk)(...p))},Ie(h.$t("flushFakeIP")),1)])])]),X("div",oPe,[X("div",sPe,Ie(h.$t("proxies")),1),X("div",lPe,[X("div",uPe,[Xt(Ie(h.$t("proxyPreviewType"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs","onUpdate:modelValue":d[5]||(d[5]=p=>vt(Dp)?Dp.value=p:null)},[(oe(!0),ve(it,null,lr(Object.values(q(ug)),p=>(oe(),ve("option",{key:p,value:p},Ie(h.$t(p)),9,cPe))),128))],512),[[po,q(Dp)]])]),X("div",fPe,[Xt(Ie(h.$t("truncateProxyName"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[6]||(d[6]=p=>vt(Ap)?Ap.value=p:null)},null,512),[[Ea,q(Ap)]])]),X("div",hPe,[Xt(Ie(h.$t("automaticDisconnection"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[7]||(d[7]=p=>vt(a_)?a_.value=p:null)},null,512),[[Ea,q(a_)]])]),q(Vc)?(oe(),ve("div",dPe,[Xt(Ie(h.$t("showGlobalProxy"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[8]||(d[8]=p=>vt(n_)?n_.value=p:null)},null,512),[[Ea,q(n_)]])])):Ut("",!0),X("div",vPe,[Xt(Ie(h.$t("twoColumnProxyGroup"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[9]||(d[9]=p=>vt(xp)?xp.value=p:null)},null,512),[[Ea,q(xp)]])]),X("div",pPe,[Xt(Ie(h.$t("twoColumnNodeForMobile"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[10]||(d[10]=p=>vt(Jc)?Jc.value=p:null)},null,512),[[Ea,q(Jc)]])]),X("div",gPe,[X("span",mPe,Ie(h.$t("speedtestUrl"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm input-bordered w-60 sm:w-96","onUpdate:modelValue":d[11]||(d[11]=p=>vt(Cp)?Cp.value=p:null)},null,512),[[oa,q(Cp)]])]),X("div",yPe,[X("span",_Pe,Ie(h.$t("speedtestTimeout"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm input-bordered w-60 sm:w-96","onUpdate:modelValue":d[12]||(d[12]=p=>vt(Tp)?Tp.value=p:null)},null,512),[[oa,q(Tp)]])]),X("div",SPe,[X("span",bPe,Ie(h.$t("lowLatencyDesc"))+": ",1),Qt(X("input",{type:"number",class:"input input-sm input-bordered w-16","onUpdate:modelValue":d[13]||(d[13]=p=>vt(Zl)?Zl.value=p:null)},null,512),[[oa,q(Zl)]]),X("span",wPe,Ie(h.$t("mediumLatencyDesc"))+": ",1),Qt(X("input",{type:"number",class:"input input-sm input-bordered w-16","onUpdate:modelValue":d[14]||(d[14]=p=>vt(Ns)?Ns.value=p:null)},null,512),[[oa,q(Ns)]])])])]),X("div",xPe,[X("div",CPe,Ie(h.$t("connections")),1),X("div",TPe,[X("div",APe,[Xt(Ie(h.$t("connectionStyle"))+": "+Ie(h.$t("table"))+" ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[15]||(d[15]=p=>vt(Fc)?Fc.value=p:null)},null,512),[[Ea,q(Fc)]]),Xt(" "+Ie(h.$t("card")),1)]),q(Fc)?(oe(),ve("div",DPe,[Xt(Ie(h.$t("compactCard"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[16]||(d[16]=p=>vt(s_)?s_.value=p:null)},null,512),[[Ea,q(s_)]])])):(oe(),er($Le,{key:1})),ze(qIe)])])])}}});/*!
|
||
* vue-router v4.5.0
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Eh=typeof document<"u";function cY(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IPe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cY(e.default)}const yr=Object.assign;function aA(e,t){const r={};for(const n in t){const i=t[n];r[n]=xo(i)?i.map(e):e(i)}return r}const Qp=()=>{},xo=Array.isArray,fY=/#/g,LPe=/&/g,PPe=/\//g,EPe=/=/g,RPe=/\?/g,hY=/\+/g,kPe=/%5B/g,OPe=/%5D/g,dY=/%5E/g,NPe=/%60/g,vY=/%7B/g,FPe=/%7C/g,pY=/%7D/g,BPe=/%20/g;function XL(e){return encodeURI(""+e).replace(FPe,"|").replace(kPe,"[").replace(OPe,"]")}function VPe(e){return XL(e).replace(vY,"{").replace(pY,"}").replace(dY,"^")}function G2(e){return XL(e).replace(hY,"%2B").replace(BPe,"+").replace(fY,"%23").replace(LPe,"%26").replace(NPe,"`").replace(vY,"{").replace(pY,"}").replace(dY,"^")}function zPe(e){return G2(e).replace(EPe,"%3D")}function GPe(e){return XL(e).replace(fY,"%23").replace(RPe,"%3F")}function $Pe(e){return e==null?"":GPe(e).replace(PPe,"%2F")}function Hg(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HPe=/\/$/,UPe=e=>e.replace(HPe,"");function oA(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=ZPe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:Hg(o)}}function WPe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function $4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YPe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Sd(t.matched[n],r.matched[i])&&gY(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Sd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gY(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XPe(e[r],t[r]))return!1;return!0}function XPe(e,t){return xo(e)?H4(e,t):xo(t)?H4(t,e):e===t}function H4(e,t){return xo(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZPe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const kl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ug;(function(e){e.pop="pop",e.push="push"})(Ug||(Ug={}));var eg;(function(e){e.back="back",e.forward="forward",e.unknown=""})(eg||(eg={}));function qPe(e){if(!e)if(Eh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UPe(e)}const jPe=/^[^#]+#/;function KPe(e,t){return e.replace(jPe,"#")+t}function JPe(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Ib=()=>({left:window.scrollX,top:window.scrollY});function QPe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=JPe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function U4(e,t){return(history.state?history.state.position-t:-1)+e}const $2=new Map;function eEe(e,t){$2.set(e,t)}function tEe(e){const t=$2.get(e);return $2.delete(e),t}let rEe=()=>location.protocol+"//"+location.host;function mY(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),$4(l,"")}return $4(r,e)+n+i}function nEe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=mY(e,location),v=r.value,p=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=p?h.position-p.position:0}else n(d);i.forEach(y=>{y(r.value,v,{delta:m,type:Ug.pop,direction:m?m>0?eg.forward:eg.back:eg.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(yr({},h.state,{scroll:Ib()}),"")}function f(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function W4(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Ib():null}}function iEe(e){const{history:t,location:r}=window,n={value:mY(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:rEe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[c?"replace":"assign"](h)}}function o(l,u){const c=yr({},t.state,W4(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=yr({},i.value,t.state,{forward:l,scroll:Ib()});a(c.current,c,!0);const f=yr({},W4(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function aEe(e){e=qPe(e);const t=iEe(e),r=nEe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=yr({location:"",base:e,go:n,createHref:KPe.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function oEe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),aEe(e)}function sEe(e){return typeof e=="string"||e&&typeof e=="object"}function yY(e){return typeof e=="string"||typeof e=="symbol"}const _Y=Symbol("");var Y4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Y4||(Y4={}));function bd(e,t){return yr(new Error,{type:e,[_Y]:!0},t)}function Ms(e,t){return e instanceof Error&&_Y in e&&(t==null||!!(e.type&t))}const X4="[^/]+?",lEe={sensitive:!1,strict:!1,start:!0,end:!0},uEe=/[.+*?^${}()[\]/\\]/g;function cEe(e,t){const r=yr({},lEe,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=40+(r.sensitive?.25:0);if(h.type===0)f||(i+="/"),i+=h.value.replace(uEe,"\\$&"),d+=40;else if(h.type===1){const{value:v,repeatable:p,optional:m,regexp:y}=h;a.push({name:v,repeatable:p,optional:m});const S=y||X4;if(S!==X4){d+=10;try{new RegExp(`(${S})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${S}): `+w.message)}}let b=p?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),i+=b,d+=20,m&&(d+=-8),p&&(d+=-20),S===".*"&&(d+=-50)}c.push(d)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let h=1;h<c.length;h++){const d=c[h]||"",v=a[h-1];f[v.name]=d&&v.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===0)c+=d.value;else if(d.type===1){const{value:v,repeatable:p,optional:m}=d,y=v in u?u[v]:"";if(xo(y)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const S=xo(y)?y.join("/"):y;if(!S)if(m)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=S}}return c||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function fEe(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function SY(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=fEe(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(Z4(n))return 1;if(Z4(i))return-1}return i.length-n.length}function Z4(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const hEe={type:0,value:""},dEe=/[a-zA-Z0-9_]/;function vEe(e){if(!e)return[[]];if(e==="/")return[[hEe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),r=1):h();break;case 4:h(),r=n;break;case 1:l==="("?r=2:dEe.test(l)?h():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),i}function pEe(e,t,r){const n=cEe(vEe(e.path),r),i=yr(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function gEe(e,t){const r=[],n=new Map;t=J4({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,h,d){const v=!d,p=j4(f);p.aliasOf=d&&d.record;const m=J4(t,f),y=[p];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of w)y.push(j4(yr({},p,{components:d?d.record.components:p.components,path:C,aliasOf:d?d.record:p})))}let S,b;for(const w of y){const{path:C}=w;if(h&&C[0]!=="/"){const x=h.record.path,A=x[x.length-1]==="/"?"":"/";w.path=h.record.path+(C&&A+C)}if(S=pEe(w,h,m),d?d.alias.push(S):(b=b||S,b!==S&&b.alias.push(S),v&&f.name&&!K4(S)&&o(f.name)),bY(S)&&l(S),p.children){const x=p.children;for(let A=0;A<x.length;A++)a(x[A],S,d&&d.children[A])}d=d||S}return b?()=>{o(b)}:Qp}function o(f){if(yY(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){const h=_Ee(f,r);r.splice(h,0,f),f.record.name&&!K4(f)&&n.set(f.record.name,f)}function u(f,h){let d,v={},p,m;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw bd(1,{location:f});m=d.record.name,v=yr(q4(h.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&q4(f.params,d.keys.map(b=>b.name))),p=d.stringify(v)}else if(f.path!=null)p=f.path,d=r.find(b=>b.re.test(p)),d&&(v=d.parse(p),m=d.record.name);else{if(d=h.name?n.get(h.name):r.find(b=>b.re.test(h.path)),!d)throw bd(1,{location:f,currentLocation:h});m=d.record.name,v=yr({},h.params,f.params),p=d.stringify(v)}const y=[];let S=d;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:p,params:v,matched:y,meta:yEe(y)}}e.forEach(f=>a(f));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function q4(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function j4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mEe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mEe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function K4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yEe(e){return e.reduce((t,r)=>yr(t,r.meta),{})}function J4(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function _Ee(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;SY(e,t[a])<0?n=a:r=a+1}const i=SEe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function SEe(e){let t=e;for(;t=t.parent;)if(bY(t)&&SY(e,t)===0)return t}function bY({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bEe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(hY," "),o=a.indexOf("="),s=Hg(o<0?a:a.slice(0,o)),l=o<0?null:Hg(a.slice(o+1));if(s in t){let u=t[s];xo(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function Q4(e){let t="";for(let r in e){const n=e[r];if(r=zPe(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(xo(n)?n.map(a=>a&&G2(a)):[n&&G2(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function wEe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=xo(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const xEe=Symbol(""),ez=Symbol(""),ZL=Symbol(""),qL=Symbol(""),H2=Symbol("");function qv(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Hl(e,t,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(bd(4,{from:r,to:t})):h instanceof Error?l(h):sEe(h)?l(bd(2,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function sA(e,t,r,n,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(cY(l)){const c=(l.__vccOpts||l)[t];c&&a.push(Hl(c,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=IPe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&Hl(d,r,n,o,s,i)()}))}}return a}function tz(e){const t=vo(ZL),r=vo(qL),n=at(()=>{const l=q(e.to);return t.resolve(l)}),i=at(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const h=f.findIndex(Sd.bind(null,c));if(h>-1)return h;const d=rz(l[u-2]);return u>1&&rz(c)===d&&f[f.length-1].path!==d?f.findIndex(Sd.bind(null,l[u-2])):h}),a=at(()=>i.value>-1&&MEe(r.params,n.value.params)),o=at(()=>i.value>-1&&i.value===r.matched.length-1&&gY(r.params,n.value.params));function s(l={}){if(DEe(l)){const u=t[q(e.replace)?"replace":"push"](q(e.to)).catch(Qp);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:at(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function CEe(e){return e.length===1?e[0]:e}const TEe=qt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tz,setup(e,{slots:t}){const r=Du(tz(e)),{options:n}=vo(ZL),i=at(()=>({[nz(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[nz(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&CEe(t.default(r));return e.custom?a:Wo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),AEe=TEe;function DEe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function MEe(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!xo(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function rz(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nz=(e,t,r)=>e??t??r,IEe=qt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=vo(H2),i=at(()=>e.route||n.value),a=vo(ez,0),o=at(()=>{let u=q(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=at(()=>i.value.matched[o.value]);Q0(ez,at(()=>o.value+1)),Q0(xEe,s),Q0(H2,i);const l=Ye();return Sr(()=>[l.value,s.value,e.name],([u,c,f],[h,d,v])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Sd(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return iz(r.default,{Component:h,route:u});const d=f.props[c],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=Wo(h,yr({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return iz(r.default,{Component:m,route:u})||m}}});function iz(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const wY=IEe;function LEe(e){const t=gEe(e.routes,e),r=e.parseQuery||bEe,n=e.stringifyQuery||Q4,i=e.history,a=qv(),o=qv(),s=qv(),l=bS(kl);let u=kl;Eh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=aA.bind(null,se=>""+se),f=aA.bind(null,$Pe),h=aA.bind(null,Hg);function d(se,he){let pe,ye;return yY(se)?(pe=t.getRecordMatcher(se),ye=he):ye=se,t.addRoute(ye,pe)}function v(se){const he=t.getRecordMatcher(se);he&&t.removeRoute(he)}function p(){return t.getRoutes().map(se=>se.record)}function m(se){return!!t.getRecordMatcher(se)}function y(se,he){if(he=yr({},he||l.value),typeof se=="string"){const U=oA(r,se,he.path),ie=t.resolve({path:U.path},he),_e=i.createHref(U.fullPath);return yr(U,ie,{params:h(ie.params),hash:Hg(U.hash),redirectedFrom:void 0,href:_e})}let pe;if(se.path!=null)pe=yr({},se,{path:oA(r,se.path,he.path).path});else{const U=yr({},se.params);for(const ie in U)U[ie]==null&&delete U[ie];pe=yr({},se,{params:f(U)}),he.params=f(he.params)}const ye=t.resolve(pe,he),xe=se.hash||"";ye.params=c(h(ye.params));const ke=WPe(n,yr({},se,{hash:VPe(xe),path:ye.path})),H=i.createHref(ke);return yr({fullPath:ke,hash:xe,query:n===Q4?wEe(se.query):se.query||{}},ye,{redirectedFrom:void 0,href:H})}function S(se){return typeof se=="string"?oA(r,se,l.value.path):yr({},se)}function b(se,he){if(u!==se)return bd(8,{from:he,to:se})}function w(se){return A(se)}function C(se){return w(yr(S(se),{replace:!0}))}function x(se){const he=se.matched[se.matched.length-1];if(he&&he.redirect){const{redirect:pe}=he;let ye=typeof pe=="function"?pe(se):pe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=S(ye):{path:ye},ye.params={}),yr({query:se.query,hash:se.hash,params:ye.path!=null?{}:se.params},ye)}}function A(se,he){const pe=u=y(se),ye=l.value,xe=se.state,ke=se.force,H=se.replace===!0,U=x(pe);if(U)return A(yr(S(U),{state:typeof U=="object"?yr({},xe,U.state):xe,force:ke,replace:H}),he||pe);const ie=pe;ie.redirectedFrom=he;let _e;return!ke&&YPe(n,ye,pe)&&(_e=bd(16,{to:ie,from:ye}),te(ye,ye,!0,!1)),(_e?Promise.resolve(_e):I(ie,ye)).catch(fe=>Ms(fe)?Ms(fe,2)?fe:ee(fe):z(fe,ie,ye)).then(fe=>{if(fe){if(Ms(fe,2))return A(yr({replace:H},S(fe.to),{state:typeof fe.to=="object"?yr({},xe,fe.to.state):xe,force:ke}),he||ie)}else fe=R(ie,ye,!0,H,xe);return P(ie,ye,fe),fe})}function D(se,he){const pe=b(se,he);return pe?Promise.reject(pe):Promise.resolve()}function M(se){const he=Pe.values().next().value;return he&&typeof he.runWithContext=="function"?he.runWithContext(se):se()}function I(se,he){let pe;const[ye,xe,ke]=PEe(se,he);pe=sA(ye.reverse(),"beforeRouteLeave",se,he);for(const U of ye)U.leaveGuards.forEach(ie=>{pe.push(Hl(ie,se,he))});const H=D.bind(null,se,he);return pe.push(H),Ue(pe).then(()=>{pe=[];for(const U of a.list())pe.push(Hl(U,se,he));return pe.push(H),Ue(pe)}).then(()=>{pe=sA(xe,"beforeRouteUpdate",se,he);for(const U of xe)U.updateGuards.forEach(ie=>{pe.push(Hl(ie,se,he))});return pe.push(H),Ue(pe)}).then(()=>{pe=[];for(const U of ke)if(U.beforeEnter)if(xo(U.beforeEnter))for(const ie of U.beforeEnter)pe.push(Hl(ie,se,he));else pe.push(Hl(U.beforeEnter,se,he));return pe.push(H),Ue(pe)}).then(()=>(se.matched.forEach(U=>U.enterCallbacks={}),pe=sA(ke,"beforeRouteEnter",se,he,M),pe.push(H),Ue(pe))).then(()=>{pe=[];for(const U of o.list())pe.push(Hl(U,se,he));return pe.push(H),Ue(pe)}).catch(U=>Ms(U,8)?U:Promise.reject(U))}function P(se,he,pe){s.list().forEach(ye=>M(()=>ye(se,he,pe)))}function R(se,he,pe,ye,xe){const ke=b(se,he);if(ke)return ke;const H=he===kl,U=Eh?history.state:{};pe&&(ye||H?i.replace(se.fullPath,yr({scroll:H&&U&&U.scroll},xe)):i.push(se.fullPath,xe)),l.value=se,te(se,he,pe,H),ee()}let N;function O(){N||(N=i.listen((se,he,pe)=>{if(!Oe.listening)return;const ye=y(se),xe=x(ye);if(xe){A(yr(xe,{replace:!0,force:!0}),ye).catch(Qp);return}u=ye;const ke=l.value;Eh&&eEe(U4(ke.fullPath,pe.delta),Ib()),I(ye,ke).catch(H=>Ms(H,12)?H:Ms(H,2)?(A(yr(S(H.to),{force:!0}),ye).then(U=>{Ms(U,20)&&!pe.delta&&pe.type===Ug.pop&&i.go(-1,!1)}).catch(Qp),Promise.reject()):(pe.delta&&i.go(-pe.delta,!1),z(H,ye,ke))).then(H=>{H=H||R(ye,ke,!1),H&&(pe.delta&&!Ms(H,8)?i.go(-pe.delta,!1):pe.type===Ug.pop&&Ms(H,20)&&i.go(-1,!1)),P(ye,ke,H)}).catch(Qp)}))}let F=qv(),B=qv(),W;function z(se,he,pe){ee(se);const ye=B.list();return ye.length?ye.forEach(xe=>xe(se,he,pe)):console.error(se),Promise.reject(se)}function j(){return W&&l.value!==kl?Promise.resolve():new Promise((se,he)=>{F.add([se,he])})}function ee(se){return W||(W=!se,O(),F.list().forEach(([he,pe])=>se?pe(se):he()),F.reset()),se}function te(se,he,pe,ye){const{scrollBehavior:xe}=e;if(!Eh||!xe)return Promise.resolve();const ke=!pe&&tEe(U4(se.fullPath,0))||(ye||!pe)&&history.state&&history.state.scroll||null;return Af().then(()=>xe(se,he,ke)).then(H=>H&&QPe(H)).catch(H=>z(H,se,he))}const me=se=>i.go(se);let Ae;const Pe=new Set,Oe={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:p,resolve:y,options:e,push:w,replace:C,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:j,install(se){const he=this;se.component("RouterLink",AEe),se.component("RouterView",wY),se.config.globalProperties.$router=he,Object.defineProperty(se.config.globalProperties,"$route",{enumerable:!0,get:()=>q(l)}),Eh&&!Ae&&l.value===kl&&(Ae=!0,w(i.location).catch(xe=>{}));const pe={};for(const xe in kl)Object.defineProperty(pe,xe,{get:()=>l.value[xe],enumerable:!0});se.provide(ZL,he),se.provide(qL,Lz(pe)),se.provide(H2,l);const ye=se.unmount;Pe.add(se),se.unmount=function(){Pe.delete(se),Pe.size<1&&(u=kl,N&&N(),N=null,l.value=kl,Ae=!1,W=!1),ye()}}};function Ue(se){return se.reduce((he,pe)=>he.then(()=>M(pe)),Promise.resolve())}return Oe}function PEe(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Sd(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Sd(u,l))||i.push(l))}return[r,n,i]}function xY(e){return vo(qL)}const xm=LEe({history:oEe("./"),routes:[{path:"/proxies",name:Pr.proxies,component:RIe},{path:"/connections",name:Pr.connections,component:TMe},{path:"/logs",name:Pr.logs,component:LMe},{path:"/rules",name:Pr.rules,component:UIe},{path:"/settings",name:Pr.settings,component:MPe},{path:"/:catchAll(.*)",redirect:Pr.proxies}]}),az=Ire("zashboard"),CY=e=>{typeof e=="string"&&ql.value?az.value=`zashboard | ${Db.global.t(e)}`:az.value="zashboard"};xm.afterEach(e=>{CY(e.name)});Sr(sa,()=>{CY(xm.currentRoute.value.name)});const EEe={class:"flex flex-col gap-4 text-xs"},REe={class:"flex flex-col items-center justify-center"},kEe={class:"flex flex-col items-center justify-center"},OEe={class:"flex flex-col items-center justify-center"},NEe={class:"flex flex-col items-center justify-center"},FEe={class:"flex flex-col items-center justify-center"},BEe=qt({__name:"VerticalInfos",setup(e){return(t,r)=>(oe(),ve("div",EEe,[X("div",REe,[ze(q(_M),{class:"h-4 w-4"}),Xt(" "+Ie(q(Yo).length),1)]),X("div",kEe,[ze(q(ZG),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(n1)))+" ",1),X("span",null,Ie(q(Wr)(q(xM)))+"/s ",1)]),X("div",OEe,[ze(q(jG),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(i1)))+" ",1),X("span",null,Ie(q(Wr)(q(CM)))+"/s ",1)]),X("div",NEe,[ze(q(Qie),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(wM),{binary:!0})),1)]),X("div",FEe,[X("button",{class:"btn btn-circle btn-sm",onClick:r[0]||(r[0]=n=>Kc.value=!1)},[ze(q(Kie),{class:"h-5 w-5"})])])]))}}),VEe={class:"drawer-side z-30"},zEe={class:"menu flex-1 pb-0"},GEe=["onClick"],$Ee={class:"card bg-base-100 shadow-lg"},HEe=qt({__name:"SideBar",setup(e){const t={[Pr.connections]:d$,[Pr.logs]:v$,[Pr.proxies]:_$,[Pr.rules]:b$},r={[Pr.proxies]:e$,[Pr.connections]:_M,[Pr.rules]:o$,[Pr.logs]:QG,[Pr.settings]:JG},n=at(()=>i.name?t[i.name]:null),i=xY(),a=Object.values(Pr);return(o,s)=>(oe(),ve("div",VEe,[s[0]||(s[0]=X("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),X("div",{class:Tt(q(Tr)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",q(Kc)?"w-18 px-0":"w-[21rem]"))},[X("ul",zEe,[(oe(!0),ve(it,null,lr(q(a),l=>(oe(),ve("li",{key:l},[X("a",{class:Tt(l===q(i).name?"active":"inactive"),onClick:()=>q(xm).push({name:l})},[(oe(),er(du(r[l]),{class:"h-5 w-5"})),q(Kc)?Ut("",!0):(oe(),ve(it,{key:0},[Xt(Ie(o.$t(l)),1)],64))],10,GEe)]))),128))]),q(Kc)?(oe(),er(BEe,{key:0})):(oe(),ve(it,{key:1},[X("div",$Ee,[n.value?(oe(),er(du(n.value),{key:0})):Ut("",!0),ze(coe)]),ze(f2e)],64))],2)]))}}),UEe={class:"w-128 drawer md:drawer-open"},WEe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/50 md:relative md:w-auto"},YEe={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},XEe={class:"menu menu-horizontal flex flex-1"},ZEe=["href"],qEe={for:"sidebar"},jEe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},KEe=qt({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[Pr.proxies]:e$,[Pr.connections]:_M,[Pr.rules]:o$,[Pr.logs]:QG,[Pr.settings]:JG},n={[Pr.connections]:d$,[Pr.logs]:v$,[Pr.proxies]:_$,[Pr.rules]:b$},i=xY(),a=Object.values(Pr),o=at(()=>n[i.name]),{proxiesTabShow:s}=NS();return Sr(Fs,()=>{Lp.value=nd.RULES,s.value=hf.PROXIES,p$(),id(),s1(),Nie(),AA(),roe()},{immediate:!0}),(l,u)=>(oe(),ve("div",UEe,[u[0]||(u[0]=X("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ze(HEe),X("div",WEe,[o.value&&q(Kc)?(oe(),er(du(o.value),{key:0,horizontal:!0})):Ut("",!0),ze(q(wY),{class:Tt(`${q(t)?"mb-24":"mb-12"} md:mb-0`)},null,8,["class"]),X("div",{class:Tt(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${q(t)?"h-24 pb-12":"h-12"}`)},[X("div",YEe,[X("ul",XEe,[(oe(!0),ve(it,null,lr(q(a),c=>(oe(),ve("li",{key:c,class:"flex-1"},[X("a",{class:Tt(["flex items-center justify-center",c===q(i).name?"active":"inactive"]),href:`#${c}`},[(oe(),er(du(r[c]),{class:"h-5 w-5"}))],10,ZEe)]))),128))]),X("label",qEe,[X("div",jEe,[ze(q(Jie),{class:"h-4 w-4"})])])])],2)])]))}}),JEe={class:"flex h-full w-full items-center justify-center"},QEe={key:0,class:"toast toast-start toast-top max-w-64 whitespace-normal text-sm"},eRe={class:"breaks-all alert alert-warning w-72 whitespace-normal"},tRe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank"},rRe={class:"absolute bottom-4 right-4"},nRe=["value","label"],iRe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},aRe={class:"mb-4 text-2xl font-semibold"},oRe={class:"form-control mb-4"},sRe={class:"label"},lRe={class:"label-text"},uRe={class:"form-control mb-4"},cRe={class:"label"},fRe={class:"label-text"},hRe={class:"form-control mb-4"},dRe={class:"label"},vRe={class:"label-text"},pRe={class:"form-control"},gRe={class:"label"},mRe={class:"label-text"},yRe={class:"flex flex-col gap-2 pt-4"},_Re=["onClick"],SRe=["onClick"],bRe=qt({__name:"SetupPage",setup(e){var a,o;const t=Du({protocol:"http",host:"127.0.0.1",port:9090,password:""}),r=Ye(!1),n=async(s,l=!1)=>{const{protocol:u,host:c,port:f,password:h}=s;if(!u||!c||!f){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&u==="http"&&!l&&(r.value=!0,setTimeout(()=>{r.value=!1},1e4));const d=await fetch(`${u}://${c}:${f}/version`,{method:"GET",headers:{Authorization:`Bearer ${h}`}}),{version:v,message:p}=await d.json();if(!v){l||alert(p);return}zre(s),xm.push({name:"proxies"})},i=new URLSearchParams(window.location.search||((o=(a=location.hash.match(/\?.*$/))==null?void 0:a[0])==null?void 0:o.replace("?","")));return i.has("hostname")?n({protocol:window.location.protocol.replace(":",""),host:i.get("hostname"),port:Number(i.get("port")),password:i.get("secret")}):n(t,!0),(s,l)=>(oe(),ve("div",JEe,[r.value?(oe(),ve("div",QEe,[X("div",eRe,[X("a",tRe,Ie(s.$t("protocolTips")),1)])])):Ut("",!0),X("div",rRe,[Xt(Ie(s.$t("language"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":l[0]||(l[0]=u=>vt(sa)?sa.value=u:null),onChange:l[1]||(l[1]=()=>q(Db).global.locale=q(sa))},[(oe(!0),ve(it,null,lr(Object.values(q(So)),u=>(oe(),ve("option",{key:u,value:u,label:s.$t(u)},null,8,nRe))),128))],544),[[po,q(sa)]])]),X("div",iRe,[X("h1",aRe,Ie(s.$t("setup")),1),X("div",oRe,[X("label",sRe,[X("span",lRe,Ie(s.$t("protocol")),1)]),Qt(X("select",{class:"select select-bordered w-full","onUpdate:modelValue":l[2]||(l[2]=u=>t.protocol=u)},l[7]||(l[7]=[X("option",{value:"http"},"HTTP",-1),X("option",{value:"https"},"HTTPS",-1)]),512),[[po,t.protocol]])]),X("div",uRe,[X("label",cRe,[X("span",fRe,Ie(s.$t("host")),1)]),Qt(X("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":l[3]||(l[3]=u=>t.host=u)},null,512),[[oa,t.host]])]),X("div",hRe,[X("label",dRe,[X("span",vRe,Ie(s.$t("port")),1)]),Qt(X("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":l[4]||(l[4]=u=>t.port=u)},null,512),[[oa,t.port]])]),X("div",pRe,[X("label",gRe,[X("span",mRe,Ie(s.$t("password")),1)]),Qt(X("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":l[5]||(l[5]=u=>t.password=u)},null,512),[[oa,t.password]])]),X("button",{class:"btn btn-primary mt-4 w-full",onClick:l[6]||(l[6]=u=>n(t))},Ie(s.$t("submit")),1),X("div",yRe,[(oe(!0),ve(it,null,lr(q(pf),u=>(oe(),ve("div",{key:u.uuid,class:"flex items-center gap-2"},[X("button",{class:"btn btn-xs flex-1",onClick:c=>Fs.value=u.uuid},Ie(u.protocol)+"://"+Ie(u.host)+":"+Ie(u.port),9,_Re),X("button",{class:"btn btn-circle btn-xs",onClick:()=>q(Gre)(u.uuid)},[ze(q(r$),{class:"h-4 w-4"})],8,SRe)]))),128))])])]))}}),wRe=["data-theme"],xRe=qt({__name:"App",setup(e){const t=Ye();return ol(()=>{const r=getComputedStyle(t.value).getPropertyValue("background-color").trim(),n=document.querySelector('meta[name="theme-color"]');n&&n.setAttribute("content",r)}),(r,n)=>(oe(),ve("div",{ref_key:"app",ref:t,class:"font-twemoji flex h-dvh w-screen overflow-x-hidden bg-base-100","data-theme":q(r_)},[q(ql)?(oe(),er(KEe,{key:1})):(oe(),er(bRe,{key:0}))],8,wRe))}}),jL=are(xRe);hu.extend(NQ);jL.use(xm);jL.use(Db);jL.mount("#app");
|